The list-collections.liquid template is used to render a page where all of the collections in the shop are listed. This template can be accessed by going to
/collections of the shop.
Re-ordering the collections
When you loop through the
collections array, the collections will be output in alphabetical order by default.
There may be instances where you want to re-order the collections listed or pick and choose which collections to display. In such cases, you can load the collections from a menu instead: see Taking control of the collections listing page for more information.
Display a product image if a collection image does not exist
If a collection does not have a collection image, it is a good practice to show a product image instead. The example below is an
if statement that loads the featured image of the first product in the collection if the collection does not have its own collection image.