<div class="row">
{% for product in collections.all.products %}
{% if product.tags contains 'frontpagedeal' %}
{% if product.price_min < product.compare_at_price_min %}
{% include 'today-sale' %}
{% endif %}
{% endif %}
{% endfor %}
</div>
我尝试在下面的代码,但这也不起作用。仅通过shopify中的特定标签在页面上显示一种产品
<div class="row">
{% for product in collections.Daily_Deals.products %}
{% if product.tags contains 'frontpagedeal' %}
{% include 'dailydeal-countdown' %}
{% endif %}
{% endfor %}
</div>
我怎么能只显示一个具有特定标签的产品?
我想的是{%的产品在collections.all.products%} { 如果%含有product.tags 'frontpagedeal' %} {%包括 'dailydeal-倒计时' %} { ENDIF%%} {%endfor%}但没有产品展示 – user3436031