Forums › Forums › Search & Filter Pro › Multiple woocommerce fiilters
Tagged: woocommerce
- This topic has 2 replies, 2 voices, and was last updated 7 years ago by Trevor.
-
Anonymous(Private) November 8, 2017 at 1:39 pm #140674
For our WooCommerce project we would like to use the Search and Filter plugin to filter the products. We have multiple category pages with products, there is no general shop page.
What I try to achieve is that every category-page (4 in total) has his own form with specific filters (sub-categories and attributes of products). The plugin does not allow that, because you can only have one form with the display mode ‘Woocommerce Shop’. I tried to make multiple instances, but that breaks the category pages. The reason I want to make multiple forms is that the products from category A have different attributes than the products of category B, and so on.
Is there anyway to create multiple forms for WooCommerce products? Or is there any workaround for this specific problem?
Trevor(Private) November 8, 2017 at 3:40 pm #140717Ok, to remind what I said in our chat. You need to make sure the parent product categories are in the WooCommerce Product Category custom taxonomy. The sub categories must be in a separate custom taxonomy.
You may need to make an additional taxonomy for this. This post tries to explain this a bit better (you can use a plugin to switch category terms from media-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).
In the form you need to …
In the General Settings tab:
Make sure that
Maintain Search Form State
is set toOFF
(unless you need it on)
SetAuto Count
(both settings) toON
InDetect defaults from current page
->Choose which kinds of pages S&F will try to do this on
, setTag, Category & Taxonomy Archives
toON
and in the Display results settings tab:
Template Options
->Enable filtering on Taxonomy Archives
set toON
In the Form UI:
In the sub-category custom taxonomy that you make, set
Hide Empty
toON
You will need to hide the Product cateogry field from the user using custom CSS (display: none;) on that field.
If I missed anything (I probably did, my apologies), follow up and nudge me.
-
AuthorPosts