Zen Cart Logo

"Invisible" category

Locked

Views: 1,425

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
31 Oct 2006, 5:24 AM
#1
cropinstop avatar

cropinstop

New Zenner

Join Date:
Oct 2006
Location:
Surprise Arizona
Posts:
73
Plugin Contributions:
0

"Invisible" category

Can any of the PHP experts give me a mod to category_tree.php that will cause a category (and all of its sub-categories and contained products) named "invisible" to not be displayed in the normal list of categories displayed in the categories sidebox.

I want to use this special category to enter subcategories and products, via the administrative interface, that will only be accessible if the product is referenced by html in internal or external link. I want to use this category to offer specials to select customers or to offer additional Free Shipping products when a buyer has selected a product from the same distribution warehouse.

31 Oct 2006, 6:39 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: "Invisible" category

Why not just disable the category, and then manually re-enable all the products inside it? That will cause it not to be listed.

2 Nov 2006, 3:56 AM
#3
cropinstop avatar

cropinstop

New Zenner

Join Date:
Oct 2006
Location:
Surprise Arizona
Posts:
73
Plugin Contributions:
0

Re: "Invisible" category

Thanks Dr..:smile:

Do you have a solution just as easy to prevent products in my "invisible" category(s) from showing up in the "New Items' and "All Products" lists?

2 Nov 2006, 4:46 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: "Invisible" category

You can change the products_date_added to older than your New Product Limit setting in the Maximum Values ...

But for the All Products you would need to customize the select statement so that it ignores products where the categories_id is exclued from the select ...