Skip to content

Commit 1000822

Browse files
author
Rafael Kassner
committed
Add missing order_data array to EmailSender classes
1 parent f3df323 commit 1000822

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

app/code/Magento/Sales/Model/Order/Creditmemo/Sender/EmailSender.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ public function send(
111111
'store' => $order->getStore(),
112112
'formattedShippingAddress' => $this->getFormattedShippingAddress($order),
113113
'formattedBillingAddress' => $this->getFormattedBillingAddress($order),
114+
'order_data' => [
115+
'customer_name' => $order->getCustomerName(),
116+
'is_not_virtual' => $order->getIsNotVirtual(),
117+
'email_customer_note' => $order->getEmailCustomerNote(),
118+
'frontend_status_label' => $order->getFrontendStatusLabel()
119+
]
114120
];
115121
$transportObject = new DataObject($transport);
116122

app/code/Magento/Sales/Model/Order/Invoice/Sender/EmailSender.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ public function send(
111111
'store' => $order->getStore(),
112112
'formattedShippingAddress' => $this->getFormattedShippingAddress($order),
113113
'formattedBillingAddress' => $this->getFormattedBillingAddress($order),
114+
'order_data' => [
115+
'customer_name' => $order->getCustomerName(),
116+
'is_not_virtual' => $order->getIsNotVirtual(),
117+
'email_customer_note' => $order->getEmailCustomerNote(),
118+
'frontend_status_label' => $order->getFrontendStatusLabel()
119+
]
114120
];
115121
$transportObject = new DataObject($transport);
116122

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,13 @@ public function send(
110110
'payment_html' => $this->getPaymentHtml($order),
111111
'store' => $order->getStore(),
112112
'formattedShippingAddress' => $this->getFormattedShippingAddress($order),
113-
'formattedBillingAddress' => $this->getFormattedBillingAddress($order)
113+
'formattedBillingAddress' => $this->getFormattedBillingAddress($order),
114+
'order_data' => [
115+
'customer_name' => $order->getCustomerName(),
116+
'is_not_virtual' => $order->getIsNotVirtual(),
117+
'email_customer_note' => $order->getEmailCustomerNote(),
118+
'frontend_status_label' => $order->getFrontendStatusLabel()
119+
]
114120
];
115121
$transportObject = new DataObject($transport);
116122

0 commit comments

Comments
 (0)