Add a collection / product overview page to a Shopify shop


Taking control of the collections listing page:

Shopify Theme Guide:

Use this template:

<div id="collections-listing">
   {% if collections.present? %}

   {% for collection in collections %}
   <a href="{{collection.url}}">

       {% for temp in collection.all_products limit: 1 %}
           <img src="{{ temp.images.first | product_img_url: 'small' }}" />
       {% endfor %}

           <div>{{ collection.title }}</div>
           <small>{{ collection.products_count }} Artikel</small>
    {% endfor %}

    {% else %}

    <p>Keine Kategorien gefunden...</p>

    {% endif %}

Leave a Reply

Your email address will not be published.

For spam filtering purposes, please copy the number 2207 to the field below: