// variable misnamed

This commit is contained in:
dMetzger
2012-05-21 14:28:34 +00:00
parent aaf437a3e0
commit 3a9557dc9e
+1 -1
View File
@@ -743,7 +743,7 @@ class CartRuleCore extends ObjectModel
// Do not give a reduction on free products!
$order_total = $context->cart->getOrderTotal($useTax, Cart::ONLY_PRODUCTS, $package_products);
foreach ($context->cart->getCartRules(CartRule::FILTER_ACTION_GIFT) as $cart_rule)
$order_total -= Tools::ps_round($cart_rule['obj']->getContextualValue($useTax, $context, CartRule::FILTER_ACTION_GIFT, $package_products), 2);
$order_total -= Tools::ps_round($cart_rule['obj']->getContextualValue($useTax, $context, CartRule::FILTER_ACTION_GIFT, $package), 2);
$reduction_value += $order_total * $this->reduction_percent / 100;
}