开发者

Target Non-US Customers In Email Template (NVelocity)

开发者 https://www.devze.com 2022-12-24 18:48 出处:网络
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 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 N开发者_运维技巧on-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!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号