Hide categories and their images

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
WHen I click on a category first it shows its subcategories and then the products.
I dont want categories to be shown just the products. Also dont want to show category images.

How can I achieve above functionality?


Thanks in advance
5 years ago
To show products from child categories enable the setting Include products from subcategories from Catalog Settings page.

To hide subcategories, edit the file Views/Catalog/CategoryTemplate.ProductsInGridOrLines.cshtml (or relevant theme file in case you are using some custom theme) and remove the code to display subcategories (line 80-103 in default theme).

Hope that helps.
Best Regards,
Anshul
5 years ago
Thank you very much
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.