Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Customize the Search
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

maxq
Starting Member

12 Posts

Posted - February 26 2008 :  17:53:18  Show Profile  Visit maxq's Homepage  Reply with Quote
I want to be a able to add a search category using a drop down list from one of the fields in the database (currently other1)

Does anyone know how to do this or is there a plugin or add on?

Thanks

devshb
Senior Member

United Kingdom
1904 Posts

Posted - February 27 2008 :  01:36:25  Show Profile  Visit devshb's Homepage  Reply with Quote
shopquery.asp?pother1=myvalue

you need to encode the value being searched on, eg if embedding it within vbscript/asp then you'd use something like:

shopquery.asp?pother1=<%=Server.URLEncode(myvariable)%>

so that's available with standard vpasp; if you want to have a drop-down list listing the values with an auto-redirect to the corresponding page then you can take the category drop-down list (in shopproductsubs.asp) as a base to copy the code from.

our search/paging addon also allows similar links (although in our addon the links point directly to shopdisplayproducts.asp instead of going via the shopquery.asp file) -
http://www.bigyellowzone.com/shopexd.asp?id=159

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons

Edited by - devshb on February 27 2008 01:50:12
Go to Top of Page

maxq
Starting Member

12 Posts

Posted - February 27 2008 :  07:57:44  Show Profile  Visit maxq's Homepage  Reply with Quote
Thanks for the reply.
I'm not sure how it works though!
On the search page we have the default fields for searches
http://sharkskinz.com/shopsearch.asphttp://sharkskinz.com/shopsearch.asp

What the client wants is to have a dropdown selection for the make of the bikes and that to work with the other search terms.

So the make is currently pother1
Will the code you highlighted do that?

Coding is not my specialty so I may sound like a noob!
Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00