PDA

View Full Version : How do I search on this combination of 2 dropdown fields


skinnybloke
20-Jan-2006, 01:21 PM
Hi - I want to be able to search on a combination of 2 dropdown fields

The first dropdown field is a list of customvars which are set up against each product - e.g. garden, home, bedroom. The 2nd dropdown is a price range as generated from the Actinic search settings "Allow Searching by Price Band".

I want customers to be able to choose things like "All products between £10 - £20", "Bedroom products between £10 - £20" "Bedroom products of any price"

I have looked at the advanced manual but cannot see how to do this.

I-CC
21-Jan-2006, 10:36 AM
If using Catalog, then the custom properties are not search'able (if i recall correctly), whereas Business and above does provide searchable custom properties.

If you are on Business, then go into the View | Search Settings and then within that area there is an option for search on custom properties where you can assign the text to be shown no the custom property drop down (in the search page) which will then give you a better idea of the code explicit for your sites needs.

This http://www.babychannelshop.com/search.html provides an example of it in use (Search by brand) which is populated from the values entered into the custom property of the sections or products.

skinnybloke
21-Jan-2006, 11:03 AM
Hi - well it definitley works on the site that you mentioned.

I am using developer for this and I am using the method that you suggested so I am obviously doing something a bit stupid.

I will take another look - thanks for the reply.

skinnybloke
23-Jan-2006, 10:05 AM
Hi - almost there - just manipulating the code a little.

To complete this I want to show just a dropdown and the price range and not the "Specify Search Words" input box option.

I have removed the search input box and hidden the radio buttons and this works fine if I select an option in at least one of the two options. When I choose "Any Product" and "Any Price Range" I get forwarded to the search results page which displays the message "Please specify words for the search".

Is there an easy way around this so that it shows all products when I choose any in both dropdowns?

skinnybloke
24-Jan-2006, 08:42 AM
Hi Anyone - this is the url I get when I choose any "Any Product" and "Any Price Range"

domain.co.uk/cgi-bin/ss000001.pl?RANDOM=NETQUOTEVAR%3ARANDOM&PAGE=SEARCH&SS=&TB=A&PR=-1&S_Gift+Finder1_0=&GB=A&ACTION=Search

Can anybody at Actinic help?

skinnybloke
24-Jan-2006, 08:54 AM
Further thoughts

Is there a value that I can add for the SS parameter that will pick up everything?

<input type="hidden" name="SS" value="something">

Bruce
24-Jan-2006, 03:03 PM
Is the Custom Property marked as searchable?

Kind regards,

skinnybloke
24-Jan-2006, 03:10 PM
Hi Bruce - the product is marked as searchable. The price range is as generated from search settings.

skinnybloke
25-Jan-2006, 03:38 PM
Forget about this one - I have knocked together a bit of Javascript to force a customer to choose from at least one of the dropdown lists.