[-] FO : you need to execute CartRule::autoAddToCart() after CartRule::autoRemoveFromCart(), everytime #PSCFV-7674
This commit is contained in:
@@ -1191,6 +1191,7 @@ class CartCore extends ObjectModel
|
||||
// refresh cache of self::_products
|
||||
$this->_products = $this->getProducts(true);
|
||||
CartRule::autoRemoveFromCart();
|
||||
CartRule::autoAddToCart();
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user