Magento订单评论更新 - 通知客户电子邮件格式化问题 [英] Magento Order comment update - Notify customer email formatting issue

查看:318
本文介绍了Magento订单评论更新 - 通知客户电子邮件格式化问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在论坛上的第一篇文章,我现在一直潜伏着。关于时间说你好!我确实使用了搜索,但是没有其他人有这个特定的问题,或者他们不按照我们的方式使用评论部分。



我们喜欢发送更新到客户通过订单页面的订单注释部分。发送的电子邮件不包含原始评论中使用的任何换行符。如果您有5个单独的句子,电子邮件将显示一个大段落。



这真的很烦人,因为我们的消息变得很糟糕。我们必须向客户提供一系列有关其订单的信息,以及如何处理手头上的问题的说明。
这是我正在谈论的两个图像



我有图像,但我不能发布,因为我需要10个代表。 hmm ..







正如你所看到的,这只是一个例子,而不是一个长的评论,但是我们的常规电子邮件可以有很多信息,也许有些

解决方案

我还没有自己测试,但是

基本上,他建议通过nl2br运行评论,将换行符转换成HTML电子邮件中呈现的
标签,如下所示:

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


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}}

这篇关于Magento订单评论更新 - 通知客户电子邮件格式化问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆