Forums › Forums › Search & Filter Pro › Different filters for different product categories
Tagged: V3
- This topic has 1 reply, 3 voices, and was last updated 4 years, 7 months ago by
Trevor.
-
Anonymous(Private) September 29, 2020 at 9:46 pm #261369
I am using a conditional widget tool to show different filters for different product categories. We have a Used and a Rental Category with their own sub-catagories. For our Rental filter we have it as a Post Type Archive searching for Products using the product_cat taxonomy and only using rental subcategories. For Used filter we are using WooCommerce Shop display method and also searching for Product post types.
For rental, what I would like to do is when I change the product_cat dropdown it goes to that rental subcategory. I have tried to use the “Enable filtering on Taxonomy Archives” which does what we want, but then the Woocomerce filter stops showing results. If I try to enable “Enable filtering on Taxonomy Archives” on the woocommerce shop then then Rental, Post Type Archive, search form doesn’t work properly. If I have them both enabled at the same time then woocommerce filter no longer shows results and the post type archive search.
Is what we are trying to accomplish doable with Search and Filter pro? Have two different filters for different woocommerce product categories.
Trevor(Private) September 30, 2020 at 10:01 am #261386With the current version of our plugin, you can have only one form for WooCommerce. You would place all the fields you need across all pages, and then use custom CSS to hide the fields that you don’t want to show for that page. Each product category archive page will (normally) have the category ID in the body tag class names, and the category slug so you can use either to target the CSS.
I cannot be sure, but I suspect that when we release V3 in a few months, that will offer far more flexible options around showing fields conditionally etc.
-
AuthorPosts