Magento 2 – Order Items Layout Not Appearing in Email Template

email-templatesmagento2

I'm setting up a website running on Magento 2.3.4

I've run into an issue with sending emails to buyers. The email template I created through the admin interface is supposed to show the items bought. However it isn't rendering the section with the layout directive.

This is the line I'm talking about:

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

If i send an email using the default template meant for a new order, then the email contains the itemized list

I'm not quite sure why, but the new strict mode introduced in 2.3.4 seems to have broken how the layout directive works.

Does anyone know how to render the itemized list from the order in the email?

Best Answer

Temp solution is:

set in db table: email_template column is_legacy = 1 for this new order email template.

Related Topic