[-] FO : you need to execute CartRule::autoAddToCart() after CartRule::autoRemoveFromCart(), everytime #PSCFV-7674

This commit is contained in:
Damien Metzger
2013-02-05 18:19:22 +01:00
parent 38cc7103fb
commit 063e6597e3
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1191,6 +1191,7 @@ class CartCore extends ObjectModel
// refresh cache of self::_products // refresh cache of self::_products
$this->_products = $this->getProducts(true); $this->_products = $this->getProducts(true);
CartRule::autoRemoveFromCart(); CartRule::autoRemoveFromCart();
CartRule::autoAddToCart();
return $return; return $return;
} }
+1
View File
@@ -257,6 +257,7 @@ class CartControllerCore extends FrontController
} }
$removed = CartRule::autoRemoveFromCart(); $removed = CartRule::autoRemoveFromCart();
CartRule::autoAddToCart();
if (count($removed) && (int)Tools::getValue('allow_refresh')) if (count($removed) && (int)Tools::getValue('allow_refresh'))
$this->ajax_refresh = true; $this->ajax_refresh = true;
} }