Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    287
    Plugin Contributions
    0

    Default Excluding a product type from search

    Hi There!

    I want to exclude product_type 5 from the displaying in the search results, I'm pretty sure I would have to change something in /includes/modules/pages/advanced_search_result/header_php.php But i'm not sure what? I was thinking it would be a:

    if (product_type = 1) {
    somethingsomethingsomething
    }

    Think anyone could give me a solution?

    danny

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

    Default Re: Excluding a product type from search

    Around line 355 in the:
    /includes/modules/pages/advanced_search_results/header_php.php

    you can add the code in RED to block a Product Type:
    Code:
    //die('I SEE ' . $where_str);
    
    // bof: exclude Product Type 5 from search
    $where_str .= " and p.products_type != 5 ";
    // eof: exclude Product Type from search
    
    if (isset($_GET['dfrom']) && zen_not_null($_GET['dfrom']) && ($_GET['dfrom'] != DOB_FORMAT_STRING)) {
    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
    Dec 2011
    Posts
    287
    Plugin Contributions
    0

    Default Re: Excluding a product type from search

    Perfect! Thankyou!


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

    Default Re: Excluding a product type from search

    Thanks for the update that this is now working for you ...
    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. Excluding sold products from the search
    By Lisk in forum General Questions
    Replies: 9
    Last Post: 16 May 2011, 05:57 PM
  2. Excluding a product or category from best selling list
    By Moncia in forum Basic Configuration
    Replies: 33
    Last Post: 14 Nov 2010, 04:06 AM
  3. Excluding category from search
    By kgeoffrey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Jan 2009, 12:46 AM
  4. Product Type cloned from General Type
    By mhfein in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Jan 2009, 04:37 PM
  5. Excluding sideboxes from product list pages
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Jul 2008, 12:56 AM

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