// id_product_attribute is not necessary in the cache name of Product::getPriceStatic for cart_quantity
This commit is contained in:
+1
-1
@@ -2470,7 +2470,7 @@ class ProductCore extends ObjectModel
|
|||||||
if ((int)$id_cart)
|
if ((int)$id_cart)
|
||||||
{
|
{
|
||||||
$condition = '';
|
$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)
|
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('
|
self::$_cart_quantity[$cache_name] = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
|
||||||
SELECT SUM(`quantity`)
|
SELECT SUM(`quantity`)
|
||||||
|
|||||||
Reference in New Issue
Block a user