From fc637f8083cf794b768b2609623bd49de105efa5 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 30 Apr 2012 08:41:53 +0000 Subject: [PATCH] // Fix bug with product price was badly set to 0 if a specific price rule with 0 as price is applyed to the product --- classes/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index 211697d20..fb763ab39 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2423,7 +2423,7 @@ class ProductCore extends ObjectModel } $result = self::$_pricesLevel2[$cache_id_2]; - if (!$specific_price) + if (!$specific_price || $specific_price['price'] <= 0) $price = (float)$result['price']; else $price = (float)$specific_price['price'];