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

This commit is contained in:
dMetzger
2012-08-01 12:03:32 +00:00
parent dd8085d99f
commit b6142f42e7
+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