[-] FO : wrong calcul of the free shipping in multi-shipping

This commit is contained in:
dMetzger
2012-05-21 17:08:16 +00:00
parent 7646d3e5d6
commit 21dfaf816b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -720,7 +720,7 @@ class CartRuleCore extends ObjectModel
if ($this->free_shipping && ($filter == CartRule::FILTER_ACTION_ALL || $filter == CartRule::FILTER_ACTION_SHIPPING))
{
if (!$this->carrier_restriction)
$reduction_value += $context->cart->getTotalShippingCost(null, $useTax, $context->country);
$reduction_value += $context->cart->getPackageShippingCost(is_null($package) ? null : $package['id_carrier'], $useTax, $context->country, is_null($package) ? null : $package['products']);
else
{
$data = Db::getInstance()->executeS('