Comment on page
Collection object
- Use
{{ collection }}
in tasks responding to shopify/collections events - Look up specific collections by their ID, using
{{ shop.collections[1234567890] }}
- Locate it in the array of product collections, using
{{ products.collections[0] }}
, in tasks responding to shopify/products events
- Every property from the Collection resource in the Shopify REST Admin API — see documentation for custom collections, and for automatic/smart collections
- An array of related product objects, ordered by their position in the collection:
{{ collection.products }}
Last modified 2yr ago