[-] FO : fixed voucher highlighting in the cart #PSCFV-6422

This commit is contained in:
Damien Metzger
2013-01-15 20:07:44 +01:00
parent 571f6a4d71
commit 57727a4cfa
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -219,7 +219,6 @@ class CartRuleCore extends ObjectModel
cr.`id_customer` = '.(int)$id_customer.'
'.($includeGeneric ? 'OR cr.`id_customer` = 0' : '').'
)
AND highlight = 1
'.($active ? 'AND cr.`active` = 1' : '').'
'.($inStock ? 'AND cr.`quantity` > 0' : ''));
+1 -1
View File
@@ -329,7 +329,7 @@ class ParentOrderControllerCore extends FrontController
$cart_cart_rules = $this->context->cart->getCartRules();
foreach ($available_cart_rules as $key => $available_cart_rule)
{
if (strpos($available_cart_rule['code'], 'BO_ORDER_') === 0)
if (!$available_cart_rule['highlight'] || strpos($available_cart_rule['code'], 'BO_ORDER_') === 0)
{
unset($available_cart_rules[$key]);
continue;