View Single Post
  #234  
Old 04-23-2007, 02:48 PM
 
enpix enpix is offline
 

Newbie
  
Join Date: Feb 2007
Posts: 1
 

Default Re: Improved Search Function

Quote:
Originally Posted by xgarb
For anyone looking for a quick solution for 4.0.18 (and possibly 0.19)

unzip and copy attached to /include/search.php

References for this are....
just the instructions at the bottom of http://forum.x-cart.com/showpost.php?p=98217&postcount=152
the code from.. http://forum.x-cart.com/showpost.php?p=98220&postcount=153
with the 4.0.18 alteration.. http://forum.x-cart.com/showpost.php?p=128493&postcount=200

Works for me.. not perfect but loads better than standard.

Thanks guys!
xgarb

works great!
here is my addition for 4.0.19.

Add below code to the form tag in customer\search.tpl and it will search through the extra field by default.
Code:
{if $active_modules.Extra_Fields && $extra_fields ne ''} {foreach from=$extra_fields item=v} <INPUT type="hidden" name="posted_data[extra_fields][{$v.fieldid}]" value="Y"> {/foreach} {/if}
Reply With Quote