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

    Default product hidden in search results

    hello and thanks for your support.
    how can I make a product invisible to the search?
    i thought i have to modify sequel database.

    regards

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: product hidden in search results

    in includes/modules/pages/advanced_search_results/header_php.php,
    find this code
    PHP Code:
    $where_str " WHERE p.products_status = 1
                   AND p.products_id = pd.products_id
                   AND pd.language_id = :languagesID
                   AND p.products_id = p2c.products_id
                   AND p2c.categories_id = c.categories_id "

    and add an extra condition
    PHP Code:
    AND p.products_id <> xxx 
    where xxx is the product id of that which you don't want displayed in the results.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Apr 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: product hidden in search results

    thanks. but it doesn't work. i can see the item in the results. id number is correct.
    maybe we have to specify other things?

  4. #4
    Join Date
    Apr 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: product hidden in search results

    now it works. i miss to move a ". thank you very much.

    i don't know well php code. how could I add more invisible product?

    i mean: AND p.products_id <> xxx and xxx and xxx

    thanks for your answers!

 

 

Similar Threads

  1. Show custom product fields in search results?
    By DigitalShadow in forum General Questions
    Replies: 2
    Last Post: 24 Jul 2011, 01:06 AM
  2. Hidden products are shown in search results (1.3.7)
    By ellivir in forum Basic Configuration
    Replies: 0
    Last Post: 7 Sep 2009, 08:36 PM
  3. Hidden field in product description but search can see it
    By mediathing in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 Apr 2008, 02:15 AM
  4. Is there a way to have advanced search results open the results in a new window?
    By member in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Mar 2008, 08:27 PM
  5. Replies: 8
    Last Post: 5 Dec 2006, 10:52 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR