Forums › Forums › Search & Filter Pro › woocommerce to return results for 3 different filters
Tagged: results, woocommerce
- This topic has 29 replies, 2 voices, and was last updated 8 years, 2 months ago by
Trevor.
-
Trevor(Private) January 25, 2018 at 4:33 pm #154952
I think I am misunderstanding you because of language translation. So, I think I now understand, maybe. An example (not directly related to your site, but it will be a good example). A search form with 2 taxonomies; States and Cities, in the USA.
When the page opens, there are two fields, and they show all States and all Cities. When a user chooses Texas, you would want that only Cities in Texas show in the Cities field, and the others disappear?
Is that what you want?
Trevor(Private) January 25, 2018 at 4:44 pm #154961OK, for that last reply then …
Make sure that
Maintain Search Form Stateis set toOFF(unless you need it on)
SetAuto Count(both settings) toON
In each field setHide EmptytoONWhen a field is then completely empty, it would be nice that the field disappears, but that is not a feature of our plugin at this time. It is on our feature request list though.
You would need to hire a freelance coder to write some javascript that tiggers from the onchange or change event of each field, and checks if there are any terms left, and if not hides the field, or there are terms, reveals the field.
-
AuthorPosts