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
    Rocky Mountains, Colorado
    Posts
    2,936
    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...
    www.customcartmods.com

  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!

 

 

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
  •