From 3a9557dc9ecd50e299d2289b804694917f6844e6 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Mon, 21 May 2012 14:28:34 +0000 Subject: [PATCH] // variable misnamed --- classes/CartRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/CartRule.php b/classes/CartRule.php index e790b8b77..462fe6bd5 100644 --- a/classes/CartRule.php +++ b/classes/CartRule.php @@ -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; }