Announcement

Collapse
No announcement yet.

How do I search on this combination of 2 dropdown fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I search on this combination of 2 dropdown fields

    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.
    Regards
    David

    #2
    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.

    Comment


      #3
      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.
      Regards
      David

      Comment


        #4
        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?
        Regards
        David

        Comment


          #5
          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?
          Regards
          David

          Comment


            #6
            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">
            Regards
            David

            Comment


              #7
              Is the Custom Property marked as searchable?

              Kind regards,
              Bruce King
              SellerDeck

              Comment


                #8
                Hi Bruce - the product is marked as searchable. The price range is as generated from search settings.
                Regards
                David

                Comment


                  #9
                  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.
                  Regards
                  David

                  Comment

                  Working...
                  X