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

Drop Down Search List

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-12-2007, 05:05 PM
 
IconAdmin IconAdmin is offline
 

Member
  
Join Date: Aug 2005
Posts: 22
 

Red face Drop Down Search List

Hi I want to search on pre defined Item discriptions, it works if you type them in
but i want the user to select from a drop down anybody got a bit of code for this?

Andy
__________________
X-cart gold version 4.1.6
Reply With Quote
  #2  
Old 04-13-2007, 07:47 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Drop Down Search List

For 4.0.x, this should do it:

Code:
<form method="GET" action="search.php"> <input type="hidden" name="simple_search" value="Y" /> <input type="hidden" name="mode" value="search" /> <input type="hidden" name="posted_data[by_title]" value="Y" /> <input type="hidden" name="posted_data[by_shortdescr]" value="Y" /> <input type="hidden" name="posted_data[by_fulldescr]" value="Y" /> <select name="posted_data[substring]"> <option>Text 1</option> <option>Text 2</option> <option>Text 3</option> <option>Text $</option> </select> </form>
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 11:00 AM.

   

 
X-Cart forums © 2001-2020