Forums Forums Search & Filter Pro Select a country and based on that show results?

Tagged: 

  • This topic has 9 replies, 2 voices, and was last updated 6 years ago by Anonymous.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Anonymous
    #193754

    How can i make it that a user selects in a dropdown what country he wants and then the other settings are only filtering in that selecting country?

    Example:

    Countrys: (dropdown) (tags)
    – Germany
    – The Netherlands
    – France

    Age: (checkboxes) (tags)
    – 18 – 25
    – 26 – 35
    – 36 – 45

    Shoe sizes: (checkboxes) (tags)
    – Size 40
    – Size 41
    – Size 42

    So when you select from the dropdown “The Netherlands” and you select “18 – 25” and “Size 40” then you only see the people from “The Netherlands” between “18 – 25” with shoe “Size 40”.

    If you deselect “The Netherlands” then you just see everyone between “18 – 25” and with shoe “Size 40”.

    Trevor
    #193763

    First, each field must be a different taxonomy. They cannot only all be ‘tags’, with a different selection showing. We must establish that first. If they are all tags, this cna easily b changed, and when you answer this, I can then advise.

    Anonymous
    #193767
    This reply has been marked as private.
    Trevor
    #193769

    You need to separate out groups, branches or parent/child tags into separate custom taxonomies. In general, you can use a particular Taxonomy, such as Category, (or Tags, each Taxonomy and each Custom Field) only once in the form. This post tries to explain this a bit better (you can use a plugin to switch category terms from category to any new taxonomy that you make, so it is not so hard to do). It is a really awful preachy lecture I wrote:

    https://support.searchandfilter.com/forums/topic/multiple-categories-combination/#post-55166

    Sorry about the tone, but the message is right and it links to good plugins (except taxonomy switcher I think).

    Anonymous
    #193771
    This reply has been marked as private.
    Anonymous
    #193773
    This reply has been marked as private.
    Trevor
    #193775

    I am not sure you needed a new post type, just new taxonomies?

    Anyway, if that is working well for you, to get them auto filtering, in the form settings, you would get the fields to dynamically change options based on choices made. To do this, on the General settings tab:

    Set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON

    Anonymous
    #193783
    This reply has been marked as private.
    Trevor
    #193795

    Great to hear it worked.

    Q. Is it possible to add a div in the label fields of the checkboxes? (without when i update the plug-in that the div is gone)
    A. No, but it depends what you are trying to achieve, as I may be able to offer an alternative suggestion. If you could get back to me on that, I will do my best to help you.

    Q. And is it possible to dont have a “Slug” in the url? But that you just have: domain.com/?_sft_
    A. No. Our plugin needs this for now. V3 is coming early next year, and that offers an option such as you ask for.

    Anonymous
    #193841
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)