Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Can I make the Search Sidebox Search the Titles Only ?

    Can I make the Search Sidebox Search the Titles Only ?

    I have so many products the descriptions keep messing up the results when people put keywords in the search box.

    Its the Orange Box to the right

    www.AllForYourWedding.com

    Thanks

  2. #2
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Re: Can I make the Search Sidebox Search the Titles Only ?

    Spent alot of time looking with no results.

    I just want the small search box to show results from the titles only.
    Is there just some code I can comment out?

  3. #3
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Re: Can I make the Search Sidebox Search the Titles Only ?

    Any Suggestions? Just trying to make the simple search easier....

  4. #4
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Re: Can I make the Search Sidebox Search the Titles Only ?

    I found this clip of code for the Header:

    http://www.zen-cart.com/forum/showthread.php?t=130603


    So Now I have the Header Search doing the functionality...

    Can I do the same for the Search Box Side Box?

    Or do I have to create my own New Sidebox?

  5. #5
    Join Date
    Mar 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Can I make the Search Sidebox Search the Titles Only ?

    You need to edit the file tpl_search.php
    found includes/templates/template_default/sideboxes/

    Approximatelty Line 15 change 1 to 0.

    Before

    Code:
    $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
    After

    Code:
    $content .= zen_draw_hidden_field('search_in_description', '0') . zen_hide_session_id();

 

 

Similar Threads

  1. v154 How to make the search box shorter on the right sidebox?
    By lina0962 in forum General Questions
    Replies: 5
    Last Post: 26 Nov 2015, 05:22 PM
  2. v139h Limit the search default to only search titles and not description
    By amyleew in forum General Questions
    Replies: 6
    Last Post: 31 Dec 2013, 07:22 AM
  3. how to make the contents of sidebox search-result relevant?
    By mybiz9999 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Nov 2011, 10:08 AM
  4. how can I expand the width of the search field amd search button?
    By watzursn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Sep 2009, 09:22 PM
  5. How do i get the basic search to only search title?
    By filfish in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Aug 2009, 01:51 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