[-] FO : #PSCFV-3014 - On account creation, address delivery of all cart products must be set with the user address
This commit is contained in:
@@ -210,6 +210,8 @@ class AddressControllerCore extends FrontController
|
||||
// Update id address of the current cart if necessary
|
||||
if (isset($address_old) && $address_old->isUsed())
|
||||
$this->context->cart->updateAddressId($address_old->id, $address->id);
|
||||
else // Update cart address
|
||||
$this->context->cart->autosetProductAddress();
|
||||
|
||||
if ($this->ajax)
|
||||
{
|
||||
|
||||
@@ -558,6 +558,10 @@ class AuthControllerCore extends FrontController
|
||||
|
||||
// If a logged guest logs in as a customer, the cart secure key was already set and needs to be updated
|
||||
$this->context->cart->update();
|
||||
|
||||
// Avoid articles without delivery address on the cart
|
||||
$this->context->cart->autosetProductAddress();
|
||||
|
||||
Hook::exec('actionCustomerAccountAdd', array(
|
||||
'_POST' => $_POST,
|
||||
'newCustomer' => $customer
|
||||
|
||||
Reference in New Issue
Block a user