Zen Cart Logo
Forums / General Questions / Can I make the Search Sidebox Search the Titles Only ?

Can I make the Search Sidebox Search the Titles Only ?

Views: 1,071

Results 1 to 5 of 5
13 Jan 2011, 8:03 PM
#1
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

https://www.AllForYourWedding.com

Thanks

13 Jan 2011, 9:49 PM
#2
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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?

16 Jan 2011, 1:57 PM
#3
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

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

16 Jan 2011, 6:58 PM
#4
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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?

30 Apr 2011, 5:20 AM
#5
sohotech avatar

sohotech

New Zenner

Join Date:
Mar 2008
Posts:
13
Plugin Contributions:
0

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

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

After

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