Display All Subcat Products in Parent Cat
I am trying to display all products under a subcategory when a user opens its parent category. Let me illustrate: If we have CategoryA with SubcategoryA1 and SubcategoryA2 and they have SubcategoryA1i and SubcategoryA1ii. In addition we have CategoryB with SubcategoryB1 and SubcategoryB2 and they have SubcategoryB1i and SubcategoryB1ii.
I would like when a user clicks on CategoryA, it shows all products in all categories beneath it (SubcategoryA1, SubcategoryA2, SubcategoryA1i, and SubcategoryAii), but not any under CategoryB. I hope this makes sense.
I realize the easy way out would be to add all categories to their parent category as an additional category. Is there any loop I could create that would automatically display all products in subcategories beneath the current level?
__________________
X-Cart Gold v4.1.3
|