From 2435edc98c9159b1bb047e96d30aef225c9d8e25 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 adbcea1f0..3e2a69b66 100644 --- a/controllers/front/CartController.php +++ b/controllers/front/CartController.php @@ -195,7 +195,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'];