// id_product_attribute is not necessary in the cache name of Product::getPriceStatic for cart_quantity

This commit is contained in:
Rémi Gaillard
2013-04-30 12:33:52 +02:00
parent ad8291353b
commit fb3291a08f
+1 -1
View File
@@ -2470,7 +2470,7 @@ class ProductCore extends ObjectModel
if ((int)$id_cart)
{
$condition = '';
$cache_name = (int)$id_cart.'_'.(int)$id_product.'_'.(int)$id_product_attribute;
$cache_name = (int)$id_cart.'_'.(int)$id_product;
if (!isset(self::$_cart_quantity[$cache_name]) || self::$_cart_quantity[$cache_name] != (int)$quantity)
self::$_cart_quantity[$cache_name] = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
SELECT SUM(`quantity`)