Objects
collectionslooks up a collection by slug,collections['all']lists every product, and looping overcollectionslists 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,handleandurl. 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/alllists every product.
Pagination
{% paginate collection.products by 24 %}paginates any of these lists. Inside the tag the list holds the current page, and thepaginateobject hascurrent_page,pages,items,previous,nextandparts. See paginate.- The older form with an id and
itemsstill works, but it is deprecated.