It’s no surprise that Shopify is the most popular platform for creating online stores as well as websites. Moreover, everyone loves Shopify, but sometimes we need to tailor the platform according to our requirements and needs.
Creating Collections is probably your first step in jazzing it up. And what is a Collection in Shopify? We call any group of products that have anything in common a Collection. Collections make the shopping experience for your customers clearer and more seamless. With collections, a user is likely to find the desired product without spending long hours browsing your online store. In today’s article, we are going to discuss how to create Shopify sub-collections, as well as collections.
How to Create a Shopify Collections List Page
In order to create a collection list page, you have to go to your HTML/CSS editor. Then go to “Add a new template”, and you are two clicks away from creating a new collection list page for your Shopify store.
Creating Shopify collections won’t take you a long time to create since they are very simple. But the key point is how your theme deals with Shopify collections pages and sections.
By now, you have created “list.collections.liquid”. This template will be used for rendering the collections page placed at https://your-store.myshopify.com/collections.
Don’t forget to save the page and make it accessible to your visitors. Your next step is to add one more line of code to control collections. Now your page template is complete.
After you add this line of code, you can put your page template into action. First, you should create the “page.list-collections.template” file. Don’t forget to create or add the link lists with the collections you would like to add. How do you manage a link list? You can do so through your Shopify admin panel under navigation. All you need to do is to add each collection to the link list.
But wait, how to set it live on our site? The page won’t work unless it has the same handle as your link list. As soon as the handles are the same, the collections page will appear.
Adding Shopify Collections Within Collections
If you have used Shopify for a long time, you will probably realize that it doesn’t support nested categories for all your items. But if you have less than a million products for sale, Shopify is right up your alley. In this section, we are going to find out how to add Shopify sub-collections within collections.
Again, you can’t go without link lists (see above for how to create link lists). To make sub-categories or sub-collections on Shopify, it’s better to create a simple hierarchy tree. This is pretty simple – point out your main collections, and then create the tree with your navigation link list.
The hierarchy tree may look like:
T-shirts and Tops
When creating new collections as well as sub-collections, don’t forget about the handle. It works as a parent collection, i.e. the main one. In our case, Clothes is your main collection.
You can create your sub-collections however you would like. There is nothing special about adding them, they are just standard collections. You can choose either to add products manually or by a particular criteria.
As soon as you create the link list, add all your sub-collections to it.There aren’t any special rules on how to place or name sub-collections when you want to add more. Everything is up to you. You can order them and name however you like.
Adjust Your Shopify Theme
Without adding a new file to your templates called “collection.sub-collections.liquid”, the sub-collections won’t work.
Below you can find a basic code pattern to bring sub-collections into action.
Basically, you are browsing the link list and printing out each sub-collection as a new link. Look through Shopify docs to find out how to add images, descriptions, and products to your collections. To check if everything works, go to your admin panel and set the collection template to collection.sub-collections. If every step is done properly, you will see a breakdown of your sub-collections.
Sub-Collections Improve the Shopping Experience
The best reason to use sub-collections is that they improve the shopping experience for your customers. The more customers you have, the bigger profit you will earn. Moreover, you can add and manage sub-collections with a few clicks. All the settings are accessible from your Shopify Admin Panel.
To summarize, you have to go through several procedures to add sub-collections to your store. First, you have to create a link list, then a collection list page, and finally you can add sub-collections to your online store.