π«Collection object
These Shopify REST-backed Liquid objects are legacy. The product and variant Liquid objects no longer work, and Shopify is phasing out the REST Admin API that these objects depend on. Use GraphQL for new work; see the Shopify REST Admin API notice and migration guides.
How to access it
Use
{{ collection }}in tasks responding to shopify/collections eventsLook 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
What it contains
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 updated
Was this helpful?