Forums / Basic Configuration / SEARCH TAB - How to make " " compulsory on site?

SEARCH TAB - How to make " " compulsory on site?

Views: 988

Results 1 to 3 of 3
25 Sep 2012, 4:00 PM
#1
christospur avatar

christospur

New Zenner

Join Date:
Sep 2012
Posts:
40
Plugin Contributions:
0

SEARCH TAB - How to make " " compulsory on site?

Hello all,

We have realised that the search function returns incorrect results if someone searches something with a common part, such as 'vita' - which will return "vitamin" as well as anything mentioning "vitality" and "vita". :shocking:

This problem is avoided if the search keyword is put in speech marks, ie "vita".

How do I make this (" ") compulsory, or force the search to ONLY search category/product names?

Thank you everyone

26 Sep 2012, 4:27 PM
#2
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

Re: SEARCH TAB - How to make " " compulsory on site?

how to narrow the search’s scope only within products’ name?

\includes\templates\yourtemplate\sideboxes\tpl_search_header.php

modify

zen_draw_hidden_field(‘search_in_description’, ’1′)

to

zen_draw_hidden_field(‘search_in_description’, ’0′)

focus on the open source for online shoping website.
my site: best shop 24h.com

11 Mar 2013, 5:58 PM
#3
christospur avatar

christospur

New Zenner

Join Date:
Sep 2012
Posts:
40
Plugin Contributions:
0

Re: SEARCH TAB - How to make " " compulsory on site?

Hello,
that didnt work unfortunately...

How do you make speech marks compulsory in the search bar, so it will narrow everything down to things within the "" ?

Guidance please...