Maintain Search Form State

Forums › Forums › Search & Filter Pro › Maintain Search Form State

Viewing 5 posts – 1 through 5 (of 5 total)
  • Anonymous
    #79489

    Hi, I have setup my search as follows:

    1) there is a search box on the main page with text search and category.
    2) the search results are displayed along with a new search filter on the side to further filter my search results.

    When I have searched on the main page, lets say for the word ‘Easter’, I get to the results:

    http://domain.name/?sfid=784&_sf_s=easter

    This shows an accurate search for the term easter.

    Then I try and filter those results in the sidebar I mentioned in point 2 above and the search starts over eg:

    http://domain.name/?sfid=226&_sft_post_tag=activity

    I am guessing its because it’s 2 forms but these should be able to talk to each other right?

    I notice the same happens on your demo site:

    search for the term ‘happy’ in the top navigation and you get the 2 results:

    http://demo.designsandcode.com/sfpro-woo-mystile/?s=happy&post_type=product

    then try and filter the prices in the sidebar and it forgets your original search altogether and brings in all the products, starting a new search/filter

    Is there a way around this?

    thanks!

    Trevor
    #79494

    The more detailed form would also have to have a general text search box so that it can ‘receive’ the Easter search term and maintain that setting.

    If you have two separate search forms on the same page, only one can be submitted, and it will ignore what is in the other. This is standard HTML form behaviour, but we are going to try to implement a more sophisticated system where the search form parts can be in different places on the page, for version 3.

    I hope that answers your question. If it does not, please get back to me.

    Anonymous
    #79498

    Hi Trevor!

    thanks for the quick reply, this makes sense and worked! Hopefully I will just be able to hide the search text from the filter with css.

    Trevor
    #79500

    Cool. It should be easy to hide the search field, yes. Make sure the CSS is specific to that search form.

    Let me know if I can close this thread?

    Anonymous
    #79502

    yes, this is solved thanks!

Viewing 5 posts – 1 through 5 (of 5 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.