Hi,
We have cscart Multi-vendor.
We've encountered a problem.
We have set a shipping fee dependent on the customer's state (department) and we're using a single shipping method,When a customer is buying from 2 different vendors,the shipping charge doubles and each shipping appears in the checkout page and in the cart page.
we want to the shipping fee to stay the same no matter how many vendors the customer are buying from,we want to be related to the rate area.
can any one help us.
Thanks.
I am afraid, this is not possible out of the box. Additional code changes are required
Hi, I want to do it too. Try to override the $cart['shipping_cost'], but it doesn't work
function fn_vmk_shipping_calculate_cart_items(&$cart, $cart_products, $auth, $apply_cart_promotions)
{
$cart['calculate_shipping'] = false;
}
function fn_vmk_shipping_calculate_cart_content_before_shipping_calculation(
$cart,
$auth,
&$calculate_shipping,
$calculate_taxes,
$options_style,
$apply_cart_promotions,
$shipping_cache_tables,
$shipping_cache_key
)
{
$calculate_shipping = ‘S’;
}
function fn_vmk_shipping_calculate_cart_content_after_shipping_calculation(
&$cart,
$auth,
$calculate_shipping,
$calculate_taxes,
$options_style,
$apply_cart_promotions,
$lang_code,
$area,
$cart_products,
$product_groups
)
{
$cart[‘shipping_cost’] = 20;
}