Jump to content

Do not show empty subcategories on category page.


MrBaseball34

Recommended Posts

PS v1.2.5

When I click on a category, it shows the subcategories for that category.
I do not want to show sub categories that have no products.

I know I'm going to have to modify Category->getSubCategories() but I'm
not sure how to write the SQL to place a product count in the results so I can test if it == 0
in category.tpl.

Has anyone already done this? My searches don't find anything.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...