【发布时间】:2020-05-31 19:58:31
【问题描述】:
我想在新订单电子邮件通知模板中显示折扣代码,使用此代码:
{% for discount in discounts %}
{{ discount.code }} : {{ discount.savings | money_with_currency }}
{% endfor %}
显示折扣金额,但不显示折扣代码名称/标题。即使在创建订单时在后端手动输入折扣,它也会返回空白。
无论在哪里输入折扣码,我如何才能显示折扣码?
【问题讨论】: