Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Not displaying the category when no product in it

Not displaying the category when no product in it

Locked

Views: 866

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Sep 2007, 7:31 PM
#1
fcegarra avatar

fcegarra

New Zenner

Join Date:
Jul 2007
Posts:
61
Plugin Contributions:
0

Not displaying the category when no product in it

Hello,

I can not find my answer anywhere.

Like I wrote in the subject I don't want to display the category name(in the category box) if there is no product in it. I would like to know if something exists for it. I insert my products with with a php script and I would like to have something "automatic" for the category displaying.

I hope you understand what I mean.
Thanks

F.

28 Sep 2007, 8:00 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Not displaying the category when no product in it

There is not a setting for this. The Categories with no Products Status setting in Configuration > Layout Settings determines whether to display the count if it is 0; this information could be captured and used to turn off the whole category name display. Moderate PHP coding skill required.

28 Sep 2007, 8:40 PM
#3
fcegarra avatar

fcegarra

New Zenner

Join Date:
Jul 2007
Posts:
61
Plugin Contributions:
0

Re: Not displaying the category when no product in it

Yes but I don't know how to do it. I guess it is in the file /includes/templates/template_default/sideboxes/tpl_categories.php
but I am not sure..

Someone has any idea?
thanks a lot

François