Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Posts
    158
    Plugin Contributions
    0

    Default Limit the search default to only search titles and not description

    I am trying to add links to other products that people need in the descriptions of my listings but the problem I am facing is if they search on a product that has links elsewhere in other item descriptions, they also receive the search results for those other products as well and the real item they are searching for ends up in a mess of other products in with the thing they are trying to find.

    Is there a way to limit the way the search defaults so that it only returns results that match in the item title not the description? I have seen that under the Advanced Search area you are able to untick 'search in product descriptions'. I would like that off for all standard searches and if they want to search in the description they can go to advanced and turn that on.

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

    Default Re: Limit the search default to only search titles and not description

    There is a setting that you can use on the search to enable/disable the search in the description ...

    For example, the tpl_search_header.php sidebox template file has the setting:
    Code:
      $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
    If you change that to:
    Code:
      $content .= zen_draw_hidden_field('search_in_description', '0') . zen_hide_session_id();
    it will not search the Product Description ...

    NOTE: be sure to use your templates and overrides to make the change ...
    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: v1.5.5]
    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
    Jul 2009
    Posts
    158
    Plugin Contributions
    0

    Default Re: Limit the search default to only search titles and not description

    I changed it to 0 in my current template and overwrote the file but it is still returning search results with the keywords in the description rather than only looking in the title.

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

    Default Re: Limit the search default to only search titles and not description

    Is there perhaps a link to your site and some examples of what you are searching for that we could peek at?
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Jul 2009
    Posts
    158
    Plugin Contributions
    0

    Default Re: Limit the search default to only search titles and not description

    I just went to get the links and it is working now and only returning results from the title and not the description. I'm sorry, I thought I had done everything to clear the cache properly.

    Thanks so much for your help.

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

    Default Re: Limit the search default to only search titles and not description

    Not a problem ... computers are spookie ...
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Nov 2010
    Posts
    64
    Plugin Contributions
    0

    Default Re: Limit the search default to only search titles and not description

    Hello everyone,

    I'm having an issue with the search result on my site.
    It's advanced search, even if I uncheck the "Search In Product Descriptions" it keeps searching in the description. The site is on Zen 1.3.9h

    Any help appreciated.

    Thanks

 

 

Similar Threads

  1. v151 Want to search by title and not description (already checked the other post)
    By mrcastle in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 May 2015, 01:58 AM
  2. Can I make the Search Sidebox Search the Titles Only ?
    By milobloom in forum General Questions
    Replies: 4
    Last Post: 30 Apr 2011, 06:20 AM
  3. Removing the 'Advanced Search' and changing basic search to title only
    By val-ent in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Aug 2008, 11:39 PM
  4. I need to search only titles and not descriptions (help/edit)
    By MrPotatoes in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Jul 2006, 09:33 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