If statement 不遵守的购物价格条件
我不知道为什么这些条件不适用于我的collection-item.liquid模板If statement 不遵守的购物价格条件,if-statement,shopify,price,If Statement,Shopify,Price,我不知道为什么这些条件不适用于我的collection-item.liquid模板 {% if product.price >= 5000 && product.price <= 50000 %} <img src="https:{{ '01.png' | asset_url }}" /> {% elsif product.price > 50000 && product.price <= 100000 %}
{% if product.price >= 5000 && product.price <= 50000 %}
<img src="https:{{ '01.png' | asset_url }}" />
{% elsif product.price > 50000 && product.price <= 100000 %}
<img src="https:{{ '02.png' | asset_url }}" />
{% elsif product.price > 100000 %}
<img src="https:{{ '03.png' | asset_url }}" />
{% endif %}
…我可以看到产品价格显示正确(例如,50美元的产品返回5000美元)
我还尝试将值作为字符串而不是整数,但这并没有解决问题
我做错了什么?我的坏-Shopify不支持作为操作员的
&
。它必须是和
{{ product.price }}