I am using a tree of categories, the last category in the tree has products. All the others have only links to subcategories or texts (static blocks). Here is an example:
Category A --> Category A1 ----> Category A11 ---> Category A111
Category A page has image links to category A1 and texts. Categories A11 has image links to A111. Only A111 has products associated.
"Browse By" side block shows 0 products for a category without products inside (A1 and A11). I would like to keep showing products numbers for categories but only for those which have products inside.
I guess it is an if statement inside a file, but I need advice. This can be solved in an elegant way by using a check box or select dropdown Yes/Now when creating a category. If that category doesn't have products inside, just static blocks, you can select "Not show product count numbers" (in case it is enabled). Based on this option in Browse By you won't get zero products for this category.
As it is now Magento has a seriously logical issues. This is bad because a visitor won't go inside when seeing zero products.