We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5b1b8 commit 17b76e6Copy full SHA for 17b76e6
app/code/Magento/Quote/Model/Quote/Address.php
@@ -1653,7 +1653,7 @@ public function setCustomerId($customerId)
1653
public function getEmail()
1654
{
1655
$email = $this->getData(self::KEY_EMAIL);
1656
- if (!$email && $this->getQuote() && $this->getQuote()->dataHasChangedFor('customer_email')) {
+ if ($this->getQuote() && (!$email || $this->getQuote()->dataHasChangedFor('customer_email'))) {
1657
$email = $this->getQuote()->getCustomerEmail();
1658
$this->setEmail($email);
1659
}
0 commit comments