Skip to content

Commit 113eab1

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

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

app/code/Magento/Sales/Model/Order/Shipment.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class Shipment extends AbstractModel implements EntityInterface, ShipmentInterfa
4646

4747
const XML_PATH_STORE_COUNTRY_ID = 'shipping/origin/country_id';
4848

49+
const XML_PATH_STORE_EMAIL = 'shipping/origin/email';
50+
4951
/**
5052
* Order entity type
5153
*

app/code/Magento/Shipping/etc/adminhtml/system.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
<field id="street_line2" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="0">
3434
<label>Street Address Line 2</label>
3535
</field>
36+
<field id="email" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
37+
<label>Email</label>
38+
<validate>validate-email</validate>
39+
<backend_model>Magento\Config\Model\Config\Backend\Email\Address</backend_model>
40+
</field>
3641
</group>
3742
<group id="shipping_policy" translate="label" type="text" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1">
3843
<label>Shipping Policy Parameters</label>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<country_id>US</country_id>
1313
<postcode>90034</postcode>
1414
<region_id>12</region_id>
15+
<email>forshipping@example.com</email>
1516
</origin>
1617
</shipping>
1718
</default>

0 commit comments

Comments
 (0)