//add Cart ID into $cache_id

This commit is contained in:
PrestaEdit
2012-11-26 22:51:37 +01:00
parent f5d4fbccfd
commit 76e7fc15ee
+1 -1
View File
@@ -2471,7 +2471,7 @@ class CartCore extends ObjectModel
if (!Address::addressExists($address_id)) if (!Address::addressExists($address_id))
$address_id = null; $address_id = null;
$cache_id = 'getPackageShippingCost_'.(int)$address_id.'_'.(int)$id_carrier.'_'.(int)$use_tax.'_'.(int)$default_country->id; $cache_id = 'getPackageShippingCost_'.(int)$this->id.'_'.(int)$address_id.'_'.(int)$id_carrier.'_'.(int)$use_tax.'_'.(int)$default_country->id;
if ($products) if ($products)
foreach ($products as $product) foreach ($products as $product)
$cache_id .= '_'.(int)$product['id_product'].'_'.(int)$product['id_product_attribute']; $cache_id .= '_'.(int)$product['id_product'].'_'.(int)$product['id_product_attribute'];