Guest User

Untitled

a guest
Jun 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. {% assign vendor = product.vendor %}
  2. {% assign handle = product.handle %}
  3. {% assign counter = '' %}
  4. {% for product in collections.all.products %}
  5. {% if vendor == product.vendor and counter.size < 4 and handle != product.handle %}
  6. {% capture temp %}{{ counter }}*{% endcapture %}
  7. {% assign counter = temp %}
  8. {% include 'product-grid-item' %}
  9. {% endif %}
  10. {% endfor %}
Add Comment
Please, Sign In to add comment