2

I made an order in my Magento store and received the order confirmation in my mailbox. However, the markup didn't converted to normal text. It keeps {{htmlescape var=$order.getCustomerName()}} as text and the email also contains some HTML tags.

enter image description here

What should I do to fix this?

2
  • How about your issue? Commented Feb 19, 2017 at 11:00
  • It is fixed. I upvoted and accepted your answer. Thanks! Sorry for the late reaction.
    – Kevin
    Commented Feb 21, 2017 at 20:53

1 Answer 1

1

In your case, directive {{htmlescape}} and {{escapehtml}} are obsolete. Use {{var}} instead.

See more here: http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/templates/template-email.html

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.