I want add custom attribute value in new order email template.

Please help me in this.


If it's a static string you can do this in your transactional email template



You can the value of custom attribute in the order email using the following code:

{{trans "%custom_attribute" custom_attribute=$order.getCustomAttribute()}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.