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!

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.