Skip to content

collection

A collection.

Available in: Collection template; also collections[‘handle’].

Property Type Description
collection.id string ID.
collection.title string Title.
collection.handle string Handle.
collection.url string URL.
collection.description html Description.
collection.image image Image.
collection.products array of product Products (use paginate for more than 50).
collection.products_count number Products after filters.
collection.all_products_count number All products.
collection.filters array Storefront filters.
collection.sort_by string Current sort order.
collection.sort_options array Sort orders (name, value).
collection.default_sort_by string Default sort order.
collection.current_type string Type, on /collections/types?q=.
collection.current_vendor string Vendor, on /collections/vendors?q=.
collection.template_suffix string Alternate template.
Liquid
{{ collection.title }}: {% for p in collection.products limit: 2 %}{{ p.title }}{% unless forloop.last %}, {% endunless %}{% endfor %}
Output
Abayas: Embroidered linen abaya, Royal oud gift set

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?