Re: How to change the search method's default?
Quote:
Originally Posted by Saman
Hello every one,
How can i change the search method deafault from "All Words" to "Any Word"?
Because this way more likely my potential costumers will find what they are looking for!
looking forward to hearing from any of you.
Thanks
|
Edit the ' skin1/customer/main/search_result.tpl' template. Replace:
PHP Code:
<td width="5"><input type="radio" id="including_all" name="posted_data[including]" value="all"{if $is_empty_search_prefilled or $search_prefilled.including eq '' or $search_prefilled.including eq 'all'} checked="checked"{/if} /></td>
<td nowrap="nowrap"><label for="including_all">{$lng.lbl_all_word}</label> </td>
<td width="5"><input type="radio" id="including_any" name="posted_data[including]" value="any"{if $search_prefilled.including eq 'any'} checked="checked"{/if} /></td>
<td nowrap="nowrap"><label for="including_any">{$lng.lbl_any_word}</label> </td>
with the
PHP Code:
<td width="5"><input type="radio" id="including_all" name="posted_data[including]" value="all"{if $search_prefilled.including eq 'all'} checked="checked"{/if} /></td>
<td nowrap="nowrap"><label for="including_all">{$lng.lbl_all_word}</label> </td>
<td width="5"><input type="radio" id="including_any" name="posted_data[including]" value="any"{if $is_empty_search_prefilled or $search_prefilled.including eq '' or $search_prefilled.including eq 'any'} checked="checked"{/if} /></td>
<td nowrap="nowrap"><label for="including_any">{$lng.lbl_any_word}</label> </td>
Then edit the ' skin1/customer/search.tpl' and replace:
PHP Code:
<input type="hidden" name="posted_data[including]" value="all" />
with the
PHP Code:
<input type="hidden" name="posted_data[including]" value="any" />
__________________
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid: http://www.ecwid.com/ (since Sept 2009)
ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager - X-Cart hosting
ex-X-Cart Technical Support Engineer
Note: For the official guaranteed tech support services please turn to the Customers HelpDesk.
|