[-] FO : improvements with OPC, Cart Rules and refresh #PSCFV-377 #PSCFV-2196
This commit is contained in:
1 parent
eeae0bd37c
commit
ff958d5d3c
4 files changed
+11
-4
No files matched your search
@@ -242,7 +242,8 @@ class ParentOrderControllerCore extends FrontController
|
||||
return false;
|
||||
|
||||
// Carrier has changed, so we check if the cart rules still apply
|
||||
CartRule::autoRemoveFromCart();
|
||||
CartRule::autoRemoveFromCart($this->context);
|
||||
CartRule::autoAddToCart($this->context);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -373,7 +374,8 @@ class ParentOrderControllerCore extends FrontController
|
||||
$this->context->cart->update();
|
||||
|
||||
// Address has changed, so we check if the cart rules still apply
|
||||
CartRule::autoRemoveFromCart();
|
||||
CartRule::autoRemoveFromCart($this->context);
|
||||
CartRule::autoAddToCart($this->context);
|
||||
}
|
||||
|
||||
/* If delivery address is valid in cart, assign it to Smarty */
|
||||
|
||||
Reference in new issue
Block a user