I have magento 2 and a requirement to show a certain category, subcategories and product pages in those categories using a different layout then other product pages on my store.
So just to be clear:
- I have a category page which shows a list of subcategories
- I have a sub category page which shows a list of products
and a product page
each one of the above has a different functionality then other categories/products of my site.
So, I have a theme that I created that I assigned to the category and the subcategories that I need. It works great. But, I did not find a way to assign a theme to a product page. I had to assign the theme to the entire site for the theme to be applied to product pages. This defeats what I need to do
Am I missing something? What is the right approach?
Best Answer
So here the general idea I would follow: