【发布时间】:2015-01-22 10:06:20
【问题描述】:
我需要为 paypal 付款的“待付款”和“已取消”发送相同的电子邮件模板,除非我通知客户他们有待付款强>应该说Your order is in pending payment。如果我在管理员中点击取消按钮,邮件内容应该是unfortunately your order has been cancelled。
我已经在我的邮件模板中尝试过这个:
{{if order.getStatusLabel() == 'canceled'}}
<p>unfortunately your order has been cancelled</p>
{{else}}<p>Your order is in pending payment</p>
{{/if}}
但unfortunately your order has been cancelled 已发送两种订单状态。
- 我的 if 条件 似乎不起作用。任何想法为什么不呢?
- 订单状态有时会返回已取消,有时会返回已取消。我不确定为什么不一致!
【问题讨论】: