Skip to content

Commit bb1d1f5

Browse files
author
Vladyslav Shcherbyna
committed
MAGETWO-44827: Add shipping email
1 parent 113eab1 commit bb1d1f5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/code/Magento/Quote/Model/Quote/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ public function setCustomerId($customerId)
15621562
public function getEmail()
15631563
{
15641564
$email = $this->getData(self::KEY_EMAIL);
1565-
if (!$email) {
1565+
if (!$email && $this->getQuote()) {
15661566
$email = $this->getQuote()->getCustomerEmail();
15671567
$this->setEmail($email);
15681568
}

app/code/Magento/Shipping/etc/config.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<country_id>US</country_id>
1313
<postcode>90034</postcode>
1414
<region_id>12</region_id>
15-
<email>forshipping@example.com</email>
1615
</origin>
1716
</shipping>
1817
</default>

0 commit comments

Comments
 (0)