0

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

Please help me in this.

0

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

https://docs.magento.com/m2/ce/user_guide/marketing/variables-custom.html

0

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.