{% for product in collection.products limit: 10 %}
{% schema %} { "name": "Featured collection", "settings": [ { "type": "text", "id": "title", "label": "Heading", "default": "Featured collection" }, { "id": "collection", "type": "collection", "label": "Collection" } ], "presets": [ { "name": "Featured collection", "category": "Collection" } ] } {% endschema %}
{% for tag in product.tags %} {% if tag contains "show-sales" %} Sale {% endif %} {% endfor %} {% if product.available != true %} Soldout {% endif %} {% for tag in product.tags %} {% if tag contains "show-new" %} New {% endif %} {% if tag contains "show-popular" %} Popular {% endif %} {% endfor %} {% if product.featured_image != blank %} {{ product.featured_image.src | img_url: '640x' | img_tag: product.title }} {% endif %}
{% endfor %}{{ product.title }}
{{ product.price | money }} {% if product.compare_at_price_max > product.price %} {% if product.compare_at_price > product.price %} {{ product.compare_at_price | money }} {% endif %} {% endif %}
{% for variant in product.variants %} {% capture swatch_file_name %}color-{{ variant.title | downcase | replace: ' ', '-' }}.png{% endcapture %}
{% endfor %}