在电子邮件模板中定位非美国客户 (NVelocity)

发布于 2024-08-26 06:34:23 字数 155 浏览 6 评论 0原文

我正在使用 Able Commerce,需要自定义客户订单通知电子邮件模板。我相信 Able 使用 NVelocity 进行电子邮件模板定制。

我只想向非美国客户显示一条消息。换句话说,我想阻止美国客户看到不特定于他们的消息。

我该怎么做?

谢谢!

I am using Able Commerce and need to customize the Customer Order Notification email template. I believe Able uses NVelocity for its email templates customization.

I would like to display a message to Non-US customers only. In other words, I would like to prevent the US customer from seeing a message not specific to them.

How do I do this?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你丑哭了我 2024-09-02 06:34:23

对于任何对此解决方案感兴趣的人,以下是我最终使用的内容:

#if($order.User.PrimaryAddress.CountryCode!="US")
给国际客户的文字
#end

因此,我从用户订单中提取了主要地址,如果他们的国家/地区代码不是美国,则显示国际客户文本。

谢谢,

For anyone interested in the solution, here is what I ended up using:

#if($order.User.PrimaryAddress.CountryCode!="US")
text for international customers
#end

So, I pulled the primary address from the users order and displayed the international customer text if their country code was not US.

Thanks,
Joe

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文