diff --git a/classes/CartRule.php b/classes/CartRule.php index be680011d..300a93092 100644 --- a/classes/CartRule.php +++ b/classes/CartRule.php @@ -225,6 +225,8 @@ class CartRuleCore extends ObjectModel cr.`id_customer` = '.(int)$id_customer.' '.($includeGeneric ? 'OR cr.`id_customer` = 0' : '').' ) + AND cr.date_from < "'.date('Y-m-d H:i:s').'" + AND cr.date_to > "'.date('Y-m-d H:i:s').'" '.($active ? 'AND cr.`active` = 1' : '').' '.($inStock ? 'AND cr.`quantity` > 0' : ''));