0
我想知道,如果它可以打印一个信息给用户,当他们申请优惠券到他们的车,这样的事情:Shopify - 有条件的折扣码
{% if discount = testcoupon123 %}
You will get a free item!
{% endif %}
谁能告诉我,为什么这并未”请工作吗?
我想知道,如果它可以打印一个信息给用户,当他们申请优惠券到他们的车,这样的事情:Shopify - 有条件的折扣码
{% if discount = testcoupon123 %}
You will get a free item!
{% endif %}
谁能告诉我,为什么这并未”请工作吗?
尝试:
{% for discount in discounts %}
{% if discount.code = "testcoupon123" %}
You will get a free item!
{% endif %}
{% endfor %}
尝试'{%如果折扣= 'testcoupon123' %}' – BenM