Forums / Setting Up Categories, Products, Attributes / trying to hide product from search

trying to hide product from search

Locked

Views: 1,588

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
10 Aug 2006, 7:01 PM
#1
nresponse avatar

nresponse

New Zenner

Join Date:
Aug 2006
Posts:
1
Plugin Contributions:
0

trying to hide product from search

I have created a hidden category and placed products in there that I do not want to show up on my category pages but I do wish to link to from other places. I have also changed the date added for these items in order to hide them from my categories and the new products display. However, this leaves me with one problem ... when I type in a keyword or use the advanced search it still brings up those products. Any suggestions on how I would go about "hiding" them from the search??:blink:

10 Aug 2006, 7:10 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: trying to hide product from search

You will need to alter either the select statements in the /includes/index_filters or you will need to alter what happens in the products_listing as to what shows/hides

On the dates ... that would have to be changed in phpMyAdmin as the products_date_added is not something you can edit in the Zen Cart Admin ...

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!

10 Oct 2006, 5:03 PM
#3
bgroup99 avatar

bgroup99

Zen Follower

Join Date:
Aug 2006
Posts:
197
Plugin Contributions:
0

Re: trying to hide product from search

Ajeh:

You will need to alter either the select statements in the /includes/index_filters or you will need to alter what happens in the products_listing as to what shows/hides

On the dates ... that would have to be changed in phpMyAdmin as the products_date_added is not something you can edit in the Zen Cart Admin ...

Hi,

I'm trying to hide a product too. Could you please explain how to do the 2 things above in a little more detail. If you could specifically tell me which code to modify I would really appreciate it.

Thanks,

Nate

11 Oct 2006, 2:32 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: trying to hide product from search

When Products are added, there is a date set in the products table in the field called: products_date_added

This date is what is used to determin New Products ...

When you don't want Products to ever show up as New Products ... you need to alter the date on the Product so that the products_date_added is not within the time period that you set in the Maximum Values for the New Products:

New Product Listing - Limited to ...
Limit the New Product Listing to
0= All Products
1= Current Month
7= 7 Days
14= 14 Days
30= 30 Days
60= 60 Days
90= 90 Days
120= 120 Days

All throughout the code are SELECT statements ...

These gather the data on Products or Categories etc.

To change how something functions, you may need to adjust the SELECT statements ...

Most SELECT statements are readily visible in a module or template etc. or in a /includes/modules/page/something file ...

There are other SELECT statements that exist in more obscure places such as the /includes/index_filters files ...

It really depends on exactly what you are trying to do ...

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!