Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Setting Up Categories, Products, Attributes / Hide subcategory in cat sidebox and centerbox view if 0 product in that category?

Hide subcategory in cat sidebox and centerbox view if 0 product in that category?

Locked

Started by dumoti on 4 Feb 2007, 6:27 AM · Views: 2,347

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
4 Feb 2007, 6:27 AM
#1
dumoti avatar

dumoti

New Zenner

Join Date:
Nov 2006
Location:
Columbus, OH
Posts:
16
Plugin Contributions:
0

Hide subcategory in cat sidebox and centerbox view if 0 product in that category?

The title pretty much explains it.

If a category contains 0 product, do not show that category in the Category sidebox or the centerbox view.

I've poured through code and options for hours and can't find anything. Any help would be most appreciated. Thanks!

4 Feb 2007, 7:10 AM
#2
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Hide subcategory in cat sidebox and centerbox view if 0 product in that category?

Admin>Configuration>Layout Settings>Categories with 0 Products Status

4 Feb 2007, 7:23 AM
#3
dumoti avatar

dumoti

New Zenner

Join Date:
Nov 2006
Location:
Columbus, OH
Posts:
16
Plugin Contributions:
0

Re: Hide subcategory in cat sidebox and centerbox view if 0 product in that category?

Louis - thanks for the response. I believe that setting is used for if you have your category counts turned on, you have the option of showing "0" or not.

I'd like to be able to hide the entire category from appearing if there is 0 product. Any ideas?

Thanks again!

4 Feb 2007, 3:47 PM
#5
dumoti avatar

dumoti

New Zenner

Join Date:
Nov 2006
Location:
Columbus, OH
Posts:
16
Plugin Contributions:
0

Re: Hide subcategory in cat sidebox and centerbox view if 0 product in that category?

Misty,

Thanks for the link. That seems overly complicated and not really what i'm trying to do.

I simply want a category/subcategory to not appear if there are no products currently active/loaded in it, without having to manually go in and activate/deactivate categories. I'm going to be working with a lot of categories and doing this manually would create way too much work.

Thanks for the responses so far. I'm sure there's a way to do this :cool:

-j

5 Feb 2007, 1:28 AM
#6
dumoti avatar

dumoti

New Zenner

Join Date:
Nov 2006
Location:
Columbus, OH
Posts:
16
Plugin Contributions:
0

Re: Hide subcategory in cat sidebox and centerbox view if 0 product in that category?

Another question in addition to my original:

Can the category sidebox:

  1. Not show the category if there is 0 product in the category

  2. Only show subcategories in the category sidebox. I have two main Categories, we'll call them Cat1 and Cat2. I want to keep them separate. If you are in Cat2, you only see all subcategories under Cat2 in the category box. You would not see anything from Cat1 (not even the name 'Cat1') in the category box.

Please say this is possible with reasonable effort :)