From fb3291a08ff9e58abb07f1bdd63e86c5f9cc7a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 30 Apr 2013 12:33:52 +0200 Subject: [PATCH] // id_product_attribute is not necessary in the cache name of Product::getPriceStatic for cart_quantity --- classes/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index 4c32d433f..d253d87f7 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -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`)