[-] FO : fixed voucher highlighting in the cart #PSCFV-6422
This commit is contained in:
@@ -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' : ''));
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user