Guide
Shopify Liquid Cheat Sheet 2026
Collection Object
Available on collection templates, and anywhere through collections['handle'].
collections['the-handle']
Access any collection by handle.
{% for product in collections['best-sellers'].products limit: 8 %}…{% endfor %}collection.id / title / handle / url
Core identifiers.
<a href="{{ collection.url }}">{{ collection.title }}</a>collection.description
The collection's description (HTML).
{{ collection.description }}collection.image / collection.featured_image
The collection's image, or the first product image if none is set.
{{ collection.featured_image | image_url: width: 800 | image_tag }}collection.products
Products in the collection — paginate for more than 50.
{% paginate collection.products by 24 %}…{% endpaginate %}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 }}collection.all_products
CorrectedNot listed in Shopify's current collection object reference. Use collection.products with pagination instead.
{% paginate collection.products by 50 %}…{% endpaginate %}collection.all_types / all_vendors
Every product type and vendor in the collection.
{% for vendor in collection.all_vendors %}{{ vendor | link_to_vendor }}{% endfor %}collection.tags / all_tags
Tags on the products currently shown, and across the whole collection.
{{ collection.all_tags | join: ', ' }}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 %}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 stores that convert, rank higher, scale and sell more.
Builds, SEO and CRO from a Shopify Plus partner team.
Monthly send · Unsubscribe any time · Privacy policy
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




