2

Can someone tell me how to get the order increment id in the email template subject in Magento 2. In Magento 1 we got it with:

{{var order.increment_id}}

1 Answer 1

6

you can call like below in email template subject with increment id,

{{trans "%increment_id," increment_id=$order.getIncrementId()}}
0

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.