Hello,
I have 11 categories in my shop.
Many of them have subcategories.
I have two separate product archive views:
1. For these categories that have no subcategories, I’m displaying product list right away (photo #1)
2. For these categories that have subcategories, when you choose such main category in the category filter (photo #2) it shows a different view – sub-category archive. (photo #3)
What I need advice in:
For now, I have achieved it in such way:
-Different Layout for “product archive” (standalone categories)
-Different Layout for “sub-category archive” (categories with subcategories) (Photos #4 and #5)
-In “sub-category” archive I’ve added “product categories” -> custom query -> Here I’ve selected by hand all the sub-categories to show for certain category (for example: 07.01, 07.02, 07.03… to appear under 07. main category) (Photo #6)
The problem is: That way I would need to create XX-number of separate Layouts for every single category that has sub-categories and custom query all of the given sub-categories one by one.
Is there any way to make it automatic so that I use only two Layouts: for standalone categories and for these with subcategories and make them show certain subcategories for a given main category?
Thank you!
Attachments:
You must be
logged in to view attached files.