Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to change the search method's default?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-07-2008, 03:25 AM
 
Saman Saman is offline
 

Member
  
Join Date: Nov 2007
Location: London
Posts: 28
 

Post 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
__________________
Saman
-------------------
Having:
X-Cart 4.1.9
X-RMA
X-Special Offers
X-Survey
Reply With Quote
  #2  
Old 02-07-2008, 04:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-21-2008, 12:51 AM
  phicaloma's Avatar 
phicaloma phicaloma is offline
 

Advanced Member
  
Join Date: Nov 2007
Location: Paris - France
Posts: 34
 

Default 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
__________________
X-Cart Gold 4.1.9 - 4.2.0 - 4.2.2
Telafirma: Dynamic Images, Narrow by Manufacturer, Product Page manufacturer, Static Pages Categories, Multicolumn Recommends
Firetank Software: Featured Products, Feed Manager, Newest Products, Sitemap Pro, Marketing Manager
Xcartmods: Ultimate Minicart, 4 Level Horizontal (and Vcal) Flyout

BCSE: Reviews Edit, Multiple Upselling
MagenticOne: Tag Cloud, Store Manager, Custom Data Feed
Websitecm: Xnews, Xnews SEO, CDSEO Pro
Jon Langevin: Gone With The Wind !
Reply With Quote
  #4  
Old 07-21-2008, 01:28 AM
  Ene's Avatar 
Ene Ene is offline
 

X-Cart team
  
Join Date: Aug 2004
Posts: 907
 

Default 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" /> 
__________________
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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:34 AM.

   

 
X-Cart forums © 2001-2020