<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