Subcategories
Subcategories
Subcategories can be created to help organize content. They can also be used for applying filters and for Subcategory descriptions and other assets. (ex: the compare bases section on a mattress product page uses the subcategory image and description)
Creating a Subcategory
- In the Products menu → Select the Product Categories tab → uncollapse
▼ Malouf Home. - Select the
…button on the Parent Category → chooseCreate sub-category. - Enter Name and any other options (description, image, etc.)
- Save
Adding products
Products can be added to Categories and Subcategories on creation or edit. They can also belong to multiple categories/subcategories. If you are creating a new subcategory and would like add items from the main category to it, here’s a quick way to go about it:
- In the Category View page → Select
…button on the parent Category →View products. - Select a product from the list.
- In the Categories section → ☑ check subcategory*
- Save and repeat
*Leave parent category checked or it will not be visible on the parents page!
While adding products to a hidden subcategory isn’t necessary, It can still be usefull for orginization and for making sure all products have the proper custom fields for filtering.
Hiding Subcategories
Showing all the available subcategories in the Navbar quickly overclutters it so, here’s how to hide all subcategories of a category:
- Access Pagebuilder (Channel Manager tab → Storefronts →
Edit theme) - Open the
🎨Theme Stylestab on the left-hand side. - Select
Menu >from the list. - Add the Category ID* to “Category ID’s to Hide Subcategories” textbox
*Category ID’s can be found in the URL on the category page. similar to Product ID’s
Filtering
Product subcategories will not be added to category filters by default. To do this, products in the subcategory will need to use a custom field. Most of these custom field names for Subcategories will be “type” but it can be changed to whatever is needed. To add the Subcategory custom field:
- In the Category View page → Select
…button on the Subcategory →View products. - Select a Product.
- Go to the Custom Fields section → Set the “Name” to “type”and “Value” to the Subcategory Name(or desired filter name)*.
*All lowercase and double check spelling for both