Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% assign vendor = product.vendor %}
- {% assign handle = product.handle %}
- {% assign counter = '' %}
- {% for product in collections['shop-all'].products %}
- {% if vendor == product.vendor and counter.size < 4 and handle != product.handle %}
- {% capture temp %}{{ counter }}*{% endcapture %}
- {% assign counter = temp %}
- <div class="recommendations_img">
- <a href="{{ product.url | within: collection }}" title="{{ product.title }}">
- <img src="{{ product.images.first | product_img_url: 'small' }}" alt="{{ product.title }}" />
- </a>
- </div><!-- .recommendations_img -->
- {% endif %}
- {% endfor %}
- {% assign vendor_handle = vendor | handleize %}
- {% for product in all_products[vendor_handle].vendor %}
- <a href="{{ product.url }}" title="{{ product.title }}">
- <img src="{{ product.images.first | product_img_url: 'small' }}" alt="{{ product.title }}" />
- {% endfor %}
Add Comment
Please, Sign In to add comment