// Fix bug with product price was badly set to 0 if a specific price rule with 0 as price is applyed to the product
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14972 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -2423,7 +2423,7 @@ class ProductCore extends ObjectModel
|
|||||||
}
|
}
|
||||||
$result = self::$_pricesLevel2[$cache_id_2];
|
$result = self::$_pricesLevel2[$cache_id_2];
|
||||||
|
|
||||||
if (!$specific_price)
|
if (!$specific_price || $specific_price['price'] <= 0)
|
||||||
$price = (float)$result['price'];
|
$price = (float)$result['price'];
|
||||||
else
|
else
|
||||||
$price = (float)$specific_price['price'];
|
$price = (float)$specific_price['price'];
|
||||||
|
|||||||
Reference in New Issue
Block a user