Zen Cart Logo
Forums / General Questions / Limit quick-Search To Product Headers

Limit quick-Search To Product Headers

Locked

Views: 864

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Nov 2008, 1:23 AM
#1
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Limit quick-Search To Product Headers

I am trying to limit the search function to the products title when the customer use the search is the header. The reason I want that done is that I have set up the products so the Car Makes are listed in the Title so now when a customer search for a Car make and that car make is listed in some product description the result will include 100's of results that are irrelevant to what the search was for.

Is there a simple way to do that.

27 Nov 2008, 3:51 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Limit quick-Search To Product Headers

In your tpl_search_header.php file you'll see a that it draws a field for search_in_description, whose value is set to 1 by default. Change that to 0 and it will not search descriptions unless the customer goes to the advanced search and chooses the description option.

  $content .= zen_draw_hidden_field('search_in_description', [B]'0'[/B]) . zen_hide_session_id();
28 Nov 2008, 2:57 AM
#3
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Limit quick-Search To Product Headers

Thank You. That did the trick.