From c59464ae86fbe5a84aa92caa4de3e93e23ae5d6a Mon Sep 17 00:00:00 2001 From: dMetzger Date: Fri, 25 May 2012 11:27:33 +0000 Subject: [PATCH] [-] FO : Cart products cache fixed (when you remove a product from the cart) --- classes/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Cart.php b/classes/Cart.php index 9e134c97a..1c8a5a633 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -1166,9 +1166,9 @@ class CartCore extends ObjectModel if ($result) { + $return = $this->update(true); // refresh cache of self::_products $this->_products = $this->getProducts(true); - $return = $this->update(true); // If there isn't any product left (which does not belong to a cart rule), remove all the cart rules associated to this cart // Compare the quantity of products in the cart and the quantity of product offered (you can't simply compare the product itself, because the same product can be paid and free (2 products bought, 1 free))