collections_all
The collections_all template shows a page listing all product categories in the store. This page is found at the /collections-all URL.

Location
The collections_all template is in the theme's templates directory:
└── theme
├── layout
├── templates
| ...
| ├── collections_all.json
| ...
...
Content
You can include the following in the collections list template or in a section within the template:
The collections object
You can use the Handlebars collections object to display the store's product categories.
Usage
When using the collections_all template, you should know the following:
Tip
If you use a JSON template, any HTML or Handlebars code needs to be in the sections referenced by the template.
Showing the collection list
Usually, this template includes the following code to show all product categories:
{{#for collections as |collection_item|}}
{{! collection_item details }}
{{/for}}
Was this article helpful to you?