X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to change the search method's default? (https://forum.x-cart.com/showthread.php?t=37407)

Saman 02-07-2008 03:25 AM

How to change the search method's default?
 
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

balinor 02-07-2008 04:34 AM

Re: How to change the search method's default?
 
The default search in X-Cart is AWFUL...I strongly recommend this:

http://www.alteredcart.com/product.php?productid=6

phicaloma 07-21-2008 12:51 AM

Re: How to change the search method's default?
 
Quote:

Originally Posted by balinor
The default search in X-Cart is AWFUL...I strongly recommend this:

http://www.alteredcart.com/product.php?productid=6


Yeah, ok Balinor, but at $149.99 it's about three times what most of us are ready to spend on such a mod.

Actually I have customers who are able to find the products (yes, products!) they are looking for just by using the not-so-good Xc search. It all comes down (mostly) to have nice and usefull products titles and descriptions.

Well it is just one opinion.

Cheers,

Philippe

Ene 07-21-2008 01:28 AM

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>&nbsp;&nbsp;</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>&nbsp;&nbsp;</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>&nbsp;&nbsp;</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>&nbsp;&nbsp;</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" /> 



All times are GMT -8. The time now is 06:11 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.