// Retro compatibility for Discount

This commit is contained in:
dMetzger
2011-11-02 10:47:01 +00:00
parent e7c0b0bdf9
commit 7f830c2f4e
6 changed files with 215 additions and 481 deletions

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))
// {