From 6fd7f0114ea3b2bea08ba2a63f2eb5ff3fba1c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 26 Aug 2013 17:17:26 +0200 Subject: [PATCH] // small fix --- controllers/front/CartController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/CartController.php b/controllers/front/CartController.php index e6c71f4a2..d9572f5ed 100644 --- a/controllers/front/CartController.php +++ b/controllers/front/CartController.php @@ -197,7 +197,7 @@ class CartControllerCore extends FrontController if (is_array($cart_products)) foreach ($cart_products as $cart_product) { - if ((isset($this->id_product_attribute) && $cart_product['id_product_attribute'] == $this->id_product_attribute && $this->id_product_attribute) || + if ((!isset($this->id_product_attribute) || $cart_product['id_product_attribute'] == $this->id_product_attribute) && (isset($this->id_product) && $cart_product['id_product'] == $this->id_product)) { $qty_to_check = $cart_product['cart_quantity'];