Skip to content

Order Items in New Order Email not showing after upgrade

I upgraded our Magento version from 2.3.4 to 2.4.3. After the upgrade the items in the order aren’t showing in the email. The email template shows the items using:

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

Per answers in this question I have tried updating the is_legacy column from 0 to 1 in the email_template table. I have also tried the following:

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

None have worked. Is there something I’m missing?