trimble wrote:I think, it would be great to have the option to show categories only in the frontend if they associated with an enabled product.
In which scenario categories should be hidden?
1.) If a category contains no products at all
It's possible but requires executing a least one additional query and a filtering of the category nodes afterwards. This is quite expensive and what is if child categories have products associated? If you have a category with no products associated, you can easily disable it in the admin interface or during a product import.
2.) If a category doesn't contain any products matching the current filter