Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

products and subcategories in a cat

21 Mar 2011, 8:32 PM
#1
geeker avatar

geeker

New Zenner

Join Date:
Mar 2011
Posts:
52
Plugin Contributions:
0

Post #1 by geeker

I am setting up my first zen cart site. I have main categories and sub categories. I would like my sub category items to display on the main page of the category and if someone wants to filter further they can click on the sub category links.

I have this working by putting all items in the main category and linking them to the sub cats. The only problem is I get an error message telling me that this is fine if it's temporary but is in general not allowed.

My question is what are the consequences of doing this?

Thanks in advance.

21 Mar 2011, 8:45 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

It will mess up the way in which products are linked to categories and category counts are calculated in ways that are difficult to predict. You may wish to take a look at the cetegory_tree class which will give an indication of the complexity and detail of the tree walk needed to perform some core product management tasks.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

21 Mar 2011, 11:00 PM
#3
geeker avatar

geeker

New Zenner

Join Date:
Mar 2011
Posts:
52
Plugin Contributions:
0

Post #3 by geeker

Is there a better way to achieve this?

21 Mar 2011, 11:41 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #4 by kuroi

You could adapt the new products box. It can be set to not apply a time limit, and therefore show all products, and the text could be changed to remove the references to "new".

I believe too that the contents of the box will be automatically filtered to match any category selected.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Mar 2011, 12:34 PM
#5
geeker avatar

geeker

New Zenner

Join Date:
Mar 2011
Posts:
52
Plugin Contributions:
0

Post #5 by geeker

thanks I will look in that direction