Product Filters: Only show relevant options to current category
Hello,
Is it possible to only show relevant filter options that match the current category?
For example, one category may be for shoes and want to show a "brand" filter.
I'd like only brands that are assigned to products in "shoes" to appear here... not ones that don't make shoes that are in use for clothing.
Right now, an option to filter by brand is showing, but clicking on it shows no results. The option would be best excluded to avoid this poor UX.
Also... could we have the below options moved from the overall element into the individual filters? It would be good to have control of each one to show/hide:
Finally, where there's a "See more", can we have control over whether this shows on a per-filter level?
Comments
Hi,
1) It should already work like that.
Can you attach a link to your website so we can take a closer look at this?
2) I will pass it on to the dev team, and we will consider adding that.
3) Can you explain that in more detail, please?
Thanks
Thanks Phil.
1) I'll be in a position to share a link soon - it's local dev at the moment.
2) thanks
3) When there are lots of terms in a filter, only the first 10 are shown, then "See more" appears.
That then has a toggle within a toggle.
1) Thanks
3) I will pass it on to the dev team as well.
Best regards
Hi Phil,
You can see the issue at https://tinyurl.com/bdcp86fv
I have pre-selected a brand that is not in this category.
The brands system in use is https://yithemes.com/themes/plugins/yith-woocommerce-brands-add-on/
Configured as below:
Your brands are taxonomies, just like categories, so for the filters, they are equivalent.
If you would like it to show only brands that exist in a particular category, you should turn your brands into attributes.
Best regards
Thanks.
So the Betheme filters cannot filter on taxonomy?
By extension, does that mean we cannot have context aware filtering by category? This is especially useful for hierarchical category structures to allow for an easier browsing experience.
Other filter plugins offer this functionality.
It is not feasible to drop brands as a taxonomy and have as an attribute. There must be archive pages for brands.
If not possible now, is it something that can be included in thebfuturem
I understand your point, but I need to clarify how the filtering logic works in this context. It's important to keep in mind that "Product Categories" and "Brands" are both separate taxonomies within WordPress/WooCommerce. Technically, they are equivalent (on the same hierarchical level) rather than being nested or dependent on one another.
Because they are parallel taxonomies, the filter does not have a native "parent-child" relationship between a specific category and a specific brand. Therefore, there is currently no built-in way to automatically exclude brands that do not have products assigned to the category you are currently browsing. The filter simply displays all available terms from the "Brands" taxonomy.
I hope this helps clarify the underlying structure.
Best regards
Thanks, I understand.
Unfortunately, I'll have to switch to a plugin for now then, as customers of the store will require the ability to filter by brand.
If it can be added for future consideration, that'd be appreciated.
We will take your suggestion into account and check what can be done in this matter.
Best regards
Greatly appreciated!
The BeTheme filters would certainly be the preferred option!