This template is used to display collection pages.
This resource is required
<h1>{{ collection.name }}</h1> Total number of items: {{ collection.count }} <ul> {% for item in collection.list %} <li> {{ item.name }} </li> {% endfor %} </ul>
From /templates/collection.liquid you have access to the following variables:
Variable | Type | Description |
---|---|---|
collection | Object | An object containing all collection data |
collection.name | String | The name of the collection |
collection.list | <Product> list | The list of products in the current collection. This object contains all the variables defined in the product template. |
collection.count | Int | The total number of items in the collection |
Blog • Privacy Policy • Terms & Conditions • Copyright 2024 Ticket Rewards