// variable misnamed
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15512 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -743,7 +743,7 @@ class CartRuleCore extends ObjectModel
|
|||||||
// Do not give a reduction on free products!
|
// Do not give a reduction on free products!
|
||||||
$order_total = $context->cart->getOrderTotal($useTax, Cart::ONLY_PRODUCTS, $package_products);
|
$order_total = $context->cart->getOrderTotal($useTax, Cart::ONLY_PRODUCTS, $package_products);
|
||||||
foreach ($context->cart->getCartRules(CartRule::FILTER_ACTION_GIFT) as $cart_rule)
|
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;
|
$reduction_value += $order_total * $this->reduction_percent / 100;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user