Forums › Forums › Search & Filter Pro › 2 different search forms for woocommerce
- This topic has 4 replies, 2 voices, and was last updated 5 years, 8 months ago by
Trevor.
-
Anonymous(Private) September 15, 2020 at 4:49 pm #259532
Hi,
I need two different search forms for woocommerce – one that displays on one category and another that displays on another category (there will only be two categories of products). When i setup two woocommerce shop forms i get the following error message:-
Error: There are 2 Search Forms using display mode WooCommerce Shop – you may only have 1
How can i achieve my desired setup as i just assumed it would enable me to setup two separate woocommerce search/filter forms and show the correct one depending on what category the user was viewing…
Thanks
Anonymous(Private) September 16, 2020 at 11:48 am #259635Hi Trevor,
Thanks for your prompt response. The problem with that solution is that the form will have to be setup to return products from both categories – and so the returned search results will contain results from the category the user is not currently viewing. Also a few of the taxonomies are shared between the two categories so the counts will be wrong on the ones that are visible – i know i could get around this by using two distinct custom taxonomies for the two categories – but it still doesnt get around the problem of the search results showing results from the other category. So i guess there is no other way around this or no other solution?
Thanks
Trevor(Private) September 16, 2020 at 2:05 pm #259677If these are product categories, is product category in the form as a field? You could auto detect the category (there is a setting fro that at the bottom of the General settings panel), and if you have Auto Count ON and hide empty in each field set, the non-relevant terms will not show.
If product category is not wanted in the form, you can also that with CSS.
-
AuthorPosts