From 3cf9a1aa211451c2e3fffcc830820ee13923d75a Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 4 Feb 2013 10:51:43 +0100 Subject: [PATCH] [-] FO : fixed customer discounts #PSCFV-7479 --- classes/CartRule.php | 2 ++ 1 file changed, 2 insertions(+) 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' : ''));