// #PSCFV-3434 but still need to refresh the page

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16643 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-01 12:03:32 +00:00
parent 9158cadf6c
commit 8d8593d3de
+4
View File
@@ -192,6 +192,10 @@ class OrderOpcControllerCore extends ParentOrderController
if (!$this->context->cart->update())
$this->errors[] = Tools::displayError('An error occurred while updating your cart.');
// Address has changed, so we check if the cart rules still apply
CartRule::autoRemoveFromCart($this->context);
CartRule::autoAddToCart($this->context);
if (!$this->context->cart->isMultiAddressDelivery())
$this->context->cart->setNoMultishipping(); // As the cart is no multishipping, set each delivery address lines with the main delivery address