[-] FO : #PSFV-604 - Fix bug with undefined address on the cart (when the address is removed)
// Fix bug with multishipping when tax calculation use delivery address and not billing git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13992 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -248,6 +248,9 @@ class OrderControllerCore extends ParentOrderController
|
||||
if (!$this->context->cart->update())
|
||||
$this->errors[] = Tools::displayError('An error occurred while updating your cart.');
|
||||
|
||||
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
|
||||
|
||||
if (Tools::isSubmit('message'))
|
||||
$this->_updateMessage(Tools::getValue('message'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user