From Spiffy Stores Knowledge Base

This template is used to render a collection of products.

You can access all the products related to the current collection using collection.products.

For example:

{% for product in collection.products %}
  <li><a href="{{ product.url }}">{{ product.title }}</a></li>
{% endfor %}


In collection.liquid you have access to the following variables:

  • collection - The current collection being displayed.
  • handle - The handle of the collection.
  • current_tags - The current tags filtering this collection.

In addition, all global variables are available.