Commit a0483cc7 authored by marthinal's avatar marthinal Committed by bojanz

Issue #2836002 by marthinal: Add the order to the parameters to build the email

parent 542e189c
......@@ -88,6 +88,7 @@ class OrderReceiptSubscriber implements EventSubscriberInterface {
],
'from' => $order->getStore()->getEmail(),
'subject' => $this->t('Order #@number confirmed', ['@number' => $order->getOrderNumber()]),
'order' => $order,
];
if ($receipt_bcc = $order_type->getReceiptBcc()) {
$params['headers']['Bcc'] = $receipt_bcc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment