[-] FO : #PSCFV-3014 - On account creation, address delivery of all cart products must be set with the user address

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16206 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-07-04 08:35:41 +00:00
parent d3cb83022b
commit 72d36e4878
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -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)
{
+4
View File
@@ -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