I'm trying to get order in my custom template.

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

And $block->getOrder() method don't work in my template.. It worked in version 2.4.3 How do I translate this into the new 2.4.5 requirement?

1 Answer 1


Migration of email templates is described here in detail https://developer.adobe.com/commerce/frontend-core/guide/templates/email-migration/

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.