Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    1
    Plugin Contributions
    0

    Default 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??

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Aug 2006
    Posts
    197
    Plugin Contributions
    1

    Re: trying to hide product from search

    Quote Originally Posted by Ajeh View Post
    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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

 

 

Similar Threads

  1. v139h How to hide a product from search engines ?
    By Akasashasha in forum General Questions
    Replies: 1
    Last Post: 8 Mar 2016, 03:31 AM
  2. Replies: 16
    Last Post: 2 May 2014, 10:07 PM
  3. Hide category from search
    By jagge in forum General Questions
    Replies: 5
    Last Post: 11 Oct 2013, 06:05 AM
  4. Hide Search box from certain categories
    By pixelpadre in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Aug 2011, 01:49 AM
  5. hide product from the search Result
    By hossam in forum General Questions
    Replies: 0
    Last Post: 14 May 2006, 07:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg