Skip to content

Objects ​

Last updated View as Markdown
  • collections looks up a collection by slug, collections['all'] lists every product, and looping over collections lists the top-level collections. See collections.
  • Every collection has products (the first 50, in the collection's sort order), products_count, all_products_count, title, handle and url. See category.
  • all_products['slug'] looks up a product by slug, up to 20 per page. See all_products.
  • The collection page also sets collection, and /collections/all lists every product.

Pagination ​

  • {% paginate collection.products by 24 %} paginates any of these lists. Inside the tag the list holds the current page, and the paginate object has current_page, pages, items, previous, next and parts. See paginate.
  • The older form with an id and items still works, but it is deprecated.

Last updated: