Marketing- Small

{% capture hide_unavailable %}true{% endcapture %} {% for product in loader.activeProducts %} {% if hide_unavailable == "true" and product.available == false %} {% continue %} {% endif %}
{% if product.variants.size > 1 %} {% assign currentColor = "" %} {% assign colorCount = 0 %} {% for variant in product.variants %} {% unless currentColor contains variant.option1 or variant.available == false %} {% assign colorHandle = variant.option1 | downcase | replace: " ", "-" | prepend: 'hide-' %} {% unless product.tags contains colorHandle %} {% assign colorCount = colorCount | plus: 1 %} {% endunless %} {% endunless %} {% if colorCount == 4 %} + {% break %} {% endif %} {% assign currentColor = variant.option1 %} {% endfor %} {% endif %}
{% endfor %}
    {% assign active = 'dim' %} {% if loader.pendingBatchIndex == 0 %} {% assign active = 'disabled' %} {% endif %}
  • {% assign max_batch_index = loader.batches | minus: 1 %} {% for i in (0..max_batch_index) %} {% assign batchoffset = loader.pendingBatchIndex | minus: i | abs %} {% assign active = '' %} {% if loader.pendingBatchIndex == i %} {% assign active = 'active' %} {% endif %}
  • {{i | plus: 1}}
  • {% endfor %}

Loading Products