collection
A group of products with filtering, sorting, and pagination. Available on collection pages.
Example
{{ collection.title }} ({{ collection.products_count }} products)Output:
Candles (24 products)Properties
| Property | Description |
|---|---|
collection.all_brands | — |
collection.all_products_count | — |
collection.all_tags | Every tag across products. |
collection.all_types | Every product type. |
collection.all_user_product_types | — |
collection.all_vendors | Every vendor. |
collection.count | — |
collection.current_brand | — |
collection.current_tag | — |
collection.current_tags | — |
collection.current_type | — |
collection.current_user_product_type | — |
collection.current_vendor | — |
collection.default_sort_by | Default sort key. |
collection.description | Description (HTML). |
collection.ensureMetaReady | — |
collection.featured_image | The featured image. |
collection.filters | Storefront filters with values and active state. |
collection.getAggregations | — |
collection.getBaseFilters | — |
collection.handle | URL-safe unique slug. |
collection.id | Unique identifier. |
collection.image | Primary image. |
collection.isOSActiveForResults | — |
collection.metafields | Metafields on this resource. |
collection.next_product | — |
collection.previous_product | — |
collection.primeAggs | — |
collection.products | Products in scope. |
collection.products_count | Number of products. |
collection.products_proxy | — |
collection.published_at | Publish timestamp. |
collection.seo_description | — |
collection.seo_title | — |
collection.sort_by | Active sort key. |
collection.sort_options | Available sort options. |
collection.tags | Tags as an array of strings. |
collection.template_suffix | — |
collection.title | Display title. |
collection.toArray | — |
collection.url | Relative URL of the resource. |
Property list is generated from the storefront engine (CollectionDrop), so it always matches what your theme can use. Inspect live values with {{ collection | json }}.