Forums / General Questions / Searching only in the titles of products

Searching only in the titles of products

Started by retched on 9 Feb 2012, 8:46 PM · Views: 941

Results 1 to 2 of 2
9 Feb 2012, 8:46 PM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Searching only in the titles of products

(This can also be applied to v1.5.0 as well I suppose)

Is there a way to wire the Basic/Quick Search of a store to only look in the Titles while having Advanced Search look into everything?

9 Feb 2012, 10:09 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Searching only in the titles of products

In the tpl_search_header sidebox template change:

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

to read:

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

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!