// Retro compatibility for Discount

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9789 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2011-11-02 10:47:01 +00:00
parent 9413c697d6
commit 953cb8b872
6 changed files with 215 additions and 481 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ abstract class PaymentModuleCore extends Module
$cartRules = ObjectModel::hydrateCollection('CartRule', $result, (int)$order->id_lang);
foreach ($cartRules AS $cartRule)
{
$value = $cartRule->getValue(true);
$value = $cartRule->getContextualValue(true);
// Todo: repair shrunk
// if ($shrunk AND ($total_discount_value + $value) > ($order->total_products_wt + $order->total_shipping + $order->total_wrapping))
// {