// BugFix with carrier module and multishipping
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10267 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
174be2bfce
commit
eda71ac8fb
1 file changed
+4
-1
+4
-1
@@ -1785,7 +1785,10 @@ class CartCore extends ObjectModel
|
|||||||
if (array_key_exists('id_carrier', $module))
|
if (array_key_exists('id_carrier', $module))
|
||||||
$module->id_carrier = $carrier->id;
|
$module->id_carrier = $carrier->id;
|
||||||
if ($carrier->need_range)
|
if ($carrier->need_range)
|
||||||
$shipping_cost = $module->getPackageShippingCost($this, $shipping_cost);
|
if (method_exists($module, 'getPackageShippingCost'))
|
||||||
|
$shipping_cost = $module->getPackageShippingCost($this, $shipping_cost, $products);
|
||||||
|
else
|
||||||
|
$shipping_cost = $module->getOrderShippingCost($this, $shipping_cost);
|
||||||
else
|
else
|
||||||
$shipping_cost = $module->getOrderShippingCostExternal($this);
|
$shipping_cost = $module->getOrderShippingCostExternal($this);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user