How to filter attributes by category in WooCommerce?

Hello,

I’m looking for help on configuring the brand filter in WooCommerce.
Currently, the filter displays all brands (an attribute) on my website, regardless of the product category. I need to adjust it so that within each category, like ‘battery holders,’ the filter only shows brands relevant to that category, not every brand available on the site. Is there a way to make the brand filter category-specific?

Thanks for your help!

What I need:

image

4 Likes

bump‎‎‎ ‎ ‎ ‎ ‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎‎

I second this, it would really be a great improvement for the UX. Has this already been implemented?

Unfortunately, I haven’t found a solution for this.

Hi Dennis, it looks like this has been requested quite a few times:

Looks like there’s no progress even after a year :confused:

Yea, I noticed. I was hoping to shed some extra light on the matter. This seems like a necessary WooCommerce funciton to me.

While not ideal by any means, I’m using CSS as a short-term workaround for this issue.

So something like this:

option[value=11],
option[value=23],
option[value=26],
option[value=29] {
  display: none;
}