Skip to content

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

PropertyDescription
collection.all_brands
collection.all_products_count
collection.all_tagsEvery tag across products.
collection.all_typesEvery product type.
collection.all_user_product_types
collection.all_vendorsEvery 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_byDefault sort key.
collection.descriptionDescription (HTML).
collection.ensureMetaReady
collection.featured_imageThe featured image.
collection.filtersStorefront filters with values and active state.
collection.getAggregations
collection.getBaseFilters
collection.handleURL-safe unique slug.
collection.idUnique identifier.
collection.imagePrimary image.
collection.isOSActiveForResults
collection.metafieldsMetafields on this resource.
collection.next_product
collection.previous_product
collection.primeAggs
collection.productsProducts in scope.
collection.products_countNumber of products.
collection.products_proxy
collection.published_atPublish timestamp.
collection.seo_description
collection.seo_title
collection.sort_byActive sort key.
collection.sort_optionsAvailable sort options.
collection.tagsTags as an array of strings.
collection.template_suffix
collection.titleDisplay title.
collection.toArray
collection.urlRelative 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 }}.