Skip to content

Magento 2.4.4 new email syntax

Previously I had been using the code below to get the payment method title of an order and placing it in an email

     {{var order.getPayment().getMethodInstance().getTitle()}}

However, since the upgrade to Magento 2.4.4 this no longer works because of the changes to do with the improved email syntax.

I thought just doing the below would have worked, however when I do that it breaks all emails and nothing sends

  {{var order_data.getPayment().getMethodInstance().getTitle()}}