Forums › Forums › Search & Filter Pro › Select a country and based on that show results?
Tagged: V3
- This topic has 9 replies, 2 voices, and was last updated 6 years, 1 month ago by Anonymous.
-
Anonymous(Private) November 15, 2018 at 3:54 pm #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
– FranceAge: (checkboxes) (tags)
– 18 – 25
– 26 – 35
– 36 – 45Shoe sizes: (checkboxes) (tags)
– Size 40
– Size 41
– Size 42So 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(Private) November 15, 2018 at 5:00 pm #193769You 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).
Trevor(Private) November 15, 2018 at 5:30 pm #193775I 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) toON
And then in the Form UI:
In each field set
Hide Empty
toON
Trevor(Private) November 16, 2018 at 5:49 am #193795Great 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. -
AuthorPosts