6

Is there anyone knows how or where to update the file for the email order notification template.

{{layout handle="sales_email_order_items" order=$order area="frontend"}}

Thank you, JM

3 Answers 3

8

You can update in the file :

vendor/magento/module-sales/view/frontend/templates/email/items.phtml

Or override in your custom module :

app\design\frontend\our-template\default\layout\sales.xml

app\design\frontend\our-template\default\template\sales\order\items.phtml

You can find all emails template in the folder path :

vendor/magento/module-sales/view/frontend/email/

And for the item of order email template :

vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml

8
3

New Magento (2.4.3-p2 in this moment) requires following update in the email template, to show order line items in the Order Confirmation email:

From:

{{layout handle="sales_email_order_items" order=$order area="frontend"}}

To:

{{layout handle="sales_email_order_items" order_id=$order_id area="frontend"}}
1
  • 1
    Correct information! Thanks
    – Jackom
    Commented May 16, 2022 at 15:49
0

How can we call this layout in phtml block which we added in email template ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.