Skip to content

Commit

Permalink
MAGETWO-64714: [GitHub] [PR] Fix quote's outdated shipping address ov…
Browse files Browse the repository at this point in the history
…erwriting PayPal Express shipping address #8568
  • Loading branch information
vrann authored Mar 31, 2017
2 parents e4a5d38 + 3b63da0 commit 0737b31
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,10 @@ private function updateAddressData(Address $address, array $addressData)
$address->setRegionCode($addressData['region']);
$address->setCountryId($addressData['countryCodeAlpha2']);
$address->setPostcode($addressData['postalCode']);

// PayPal's address supposes not saving against customer account
$address->setSaveInAddressBook(false);
$address->setSameAsBilling(false);
$address->setCustomerAddressId(null);
}
}

0 comments on commit 0737b31

Please sign in to comment.