Forums / Setting Up Categories, Products, Attributes / showing all products under category

showing all products under category

Locked

Started by raimond on 12 Jul 2008, 9:18 AM · Views: 1,123

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
12 Jul 2008, 9:18 AM
#1
raimond avatar

raimond

Zen Follower

Join Date:
Jul 2004
Location:
The Netherlands, Wierden
Posts:
423
Plugin Contributions:
0

showing all products under category

Hi,

I have a store with categories, sub-categories and more sub-categories. I want that under the categories all products will be shown of the categorie and subcategories. How can i do this with a sql-statement.

For example:
Category a,
-product 1
-product 2
-product 3
-product 4
--Subactegory a1,
---product 5
---product 6
---product 7
----Subcategory a2,
-----product 8
-----product 9
-----product 10
------Subcategory a3,
-------product 11
-------product 12

So when I click on category a I will see product 1 to 12
when i click on Subactegory a1 I will see product 5 to 12
when i click on Subactegory a1 I will see product 8 to 12
when i click on Subactegory a1 I will see product 11 to 12

And of course the samewith category b, b1, b2, c, c1.....

I can do this manually by linking products. But that is a lot off work, it must be done, that this goes automatic.

Who can help me with this?

12 Jul 2008, 6:13 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: showing all products under category

Categories hold Products or Categories, never both ...

To force both, you will end up with pricing issues, search issues, etc. etc. etc. ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jul 2008, 10:26 AM
#3
raimond avatar

raimond

Zen Follower

Join Date:
Jul 2004
Location:
The Netherlands, Wierden
Posts:
423
Plugin Contributions:
0

Re: showing all products under category

Ajeh:

Categories hold Products or Categories, never both ...

To force both, you will end up with pricing issues, search issues, etc. etc. etc. ...

Thnx Ajeh,

I am aware of that, and i will take that risk. But i know there is somewhere a statement for categories that it has to show all products of the category and i like to change that to show that for the category and his subcategories.