All guides

Guide

Shopify Liquid Cheat Sheet 2026

Collection Object

Available on collection templates, and anywhere through collections['handle'].

01

collections['the-handle']

Access any collection by handle.

{% for product in collections['best-sellers'].products limit: 8 %}…{% endfor %}
02

collection.id / title / handle / url

Core identifiers.

<a href="{{ collection.url }}">{{ collection.title }}</a>
03

collection.description

The collection's description (HTML).

{{ collection.description }}
05

collection.products

Products in the collection — paginate for more than 50.

{% paginate collection.products by 24 %}…{% endpaginate %}
06

collection.products_count / all_products_count

Products in the current (filtered) view, and in the whole collection.

{{ collection.products_count }} of {{ collection.all_products_count }}
07

collection.all_products

Corrected

Not listed in Shopify's current collection object reference. Use collection.products with pagination instead.

{% paginate collection.products by 50 %}…{% endpaginate %}
08

collection.all_types / all_vendors

Every product type and vendor in the collection.

{% for vendor in collection.all_vendors %}{{ vendor | link_to_vendor }}{% endfor %}
09

collection.tags / all_tags

Tags on the products currently shown, and across the whole collection.

{{ collection.all_tags | join: ', ' }}
10

collection.filters

Storefront filters (price, availability, product options) for building filter UIs — the modern replacement for tag filtering.

{% for filter in collection.filters %}{{ filter.label }}{% endfor %}
11

collection.next_product / previous_product

On a product page reached through a collection, the adjacent products in that collection.

{% if collection.next_product %}
  <a href="{{ collection.next_product.url }}">Next</a>
{% endif %}

Shopify experts

Let's talk ecommerce, Shopify & Shopify Plus solutions.

DROPSHIP HUBS helps ecommerce brands build, improve, and grow Shopify stores. We support new builds, migrations, ongoing development, SEO, and conversion optimisation.

Our team can help plan the right approach based on your store, goals, and current challenges.

Get in touch