[-] FO : improvements with OPC, Cart Rules and refresh #PSCFV-377 #PSCFV-2196

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15118 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-05-09 14:36:53 +00:00
parent 1f4a6f1623
commit 7cb052a52b
4 changed files with 11 additions and 4 deletions
+4 -2
View File
@@ -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 */