简体   繁体   中英

Magento Order comment update - Notify customer email formatting issue

This is my first post on the forums, i've been lurking forever now. About time to say hello! I did use the search, but either nobody else has this specific issue, or they don't utilize the comment section the way we do.

We like to send updates to customers through the order comment section of the order page. The email that is sent does not hold any of the line breaks that were used in the original comment. If you have 5 separate sentences, the email shows one big paragraph.

This is really annoying, because our message becomes a big mess. We have to give the customer a series of information about their order, and instructions on how to process with the issue on hand. Here's two images of what i'm talking about

I have images but I can't post them because I need 10 rep. hmm..

订单截图

电子邮件警报屏幕截图

As you can see, this is just an example and not a long comment, But our regular emails can have a lot of information, and maybe some up-selling.

I haven't tested it myself, but David Manners' answer on this question on the Magento Stack Exchange sounds promising.

Basically he suggests running the comments through nl2br to convert the newlines to
tags that would render in HTML email, like this:

{{var data.comment:escape|nl2br}}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM