diff --git a/classes/Cart.php b/classes/Cart.php index 9b0b477e4..90ef11ea3 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -1191,6 +1191,7 @@ class CartCore extends ObjectModel // refresh cache of self::_products $this->_products = $this->getProducts(true); CartRule::autoRemoveFromCart(); + CartRule::autoAddToCart(); return $return; } diff --git a/controllers/front/CartController.php b/controllers/front/CartController.php index 2dddaee6f..af84b5e59 100644 --- a/controllers/front/CartController.php +++ b/controllers/front/CartController.php @@ -257,6 +257,7 @@ class CartControllerCore extends FrontController } $removed = CartRule::autoRemoveFromCart(); + CartRule::autoAddToCart(); if (count($removed) && (int)Tools::getValue('allow_refresh')) $this->ajax_refresh = true; }