Subcategory Menu Page

When you click on a category, it shows all products in that category. Is there a setting or hack I can employ that instead of showing all products in the category, if the category has subcategories, display the subcategories (their images and title) in a grid, then you can click on the subcategory to get a list of products in that subcategory.

In logic speak, if number of subcategories > 0 display subcategories instead of products.

I found the setting in general settings but strangely only one subcategory is displayed despite having products in multiple subcategories. I do have the menu bar drop down set to only show top level, but I wouldn't expect it to effect that. I'm also using compact list mode.

--- edit --

That option didn't do what I intended for it to do as the product was just a stray product that wasn't in a category. So still wondering how to make top level category links show subcategory list instead of product view.

Well the "workaround" is to turn of the subcategory product display and just edit the category description manually to show the subcategory images/labels. It is of course much more preferable for it to automatically build the subcategory grid view, especially if you have many categories with many subcategories.

Well the "workaround" is to turn of the subcategory product display and just edit the category description manually to show the subcategory images/labels. It is of course much more preferable for it to automatically build the subcategory grid view, especially if you have many categories with many subcategories.


You can add small modification to do this.

edit the "design/themes/responsive/templates/views/categories/view.tpl" file and replace

{if $products}
with this:
{if $products && !$subcategories}

In this case the products will be displayed only if there are now subcategories.

As for the "Show products from subcategories of the selected category:" option at Settings-> General. If it is unchecked than only products from selected category are displayed and subcategories products are not displayed. Take a look at this page: http://demo.cs-cart.com/electronics/- you see over 100 products, all these products are from subcategories, and they shown because mentioned option is enabled.

This option does not affect on displaying subcategories list.