Forums / Setting Up Categories, Products, Attributes / Display all products in subcategories when category selected

Display all products in subcategories when category selected

Locked

Started by paperboard on 28 Oct 2009, 4:46 PM · Views: 908

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Oct 2009, 4:46 PM
#1
paperboard avatar

paperboard

New Zenner

Join Date:
Oct 2009
Posts:
9
Plugin Contributions:
0

Display all products in subcategories when category selected

Hello,

How can I display all the products of a category that has subcategories?

For instance:

Cat1
-Sub11
--Pro111
--Pro112
-Sub12
--Pro121
--Pro122

I would like to use the side bar to select the category I am in and have the center column display all the products of that category, along with any subcategories.

So if i chose Cat1 in the side bar the center column would display:
Pro111
Pro112
Pro121
Pro122

But if I chose Sub12 in the side bar the center column would display:
Pro121
Pro122

What should I do to accomplish this?

Thanks in advance!

28 Oct 2009, 6:41 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Display all products in subcategories when category selected

The code is not written to do what you desire

It will display all subs when selected or when a sub is selected all products but but not both

Zen-Venom Get Bitten