fbpx
Want To Add Extra Images Per Product Variation? Download This Free Plugin

Swatch Filters appear on category pages without relevant products

Adam Wells

Hi,

I’ve added the “Variation Swatches: Filter by Attribute Block” to a sidebar on my site. The swatch filters appear and show a product count on all category pages even if there are no products in the category that use variation swatches (for example https://gopak.wpenginepowered.com/product-category/staging/). How can I stop this happening? Filters shouldn’t display when there are no products that the filters apply to.

Hakik Zaman

Hi Adam,

Thanks for reaching out to us. Unfortunately, it is a known issue.

I have already reported this to our development team.

Gutenberg is frequently changing things and our team was unable to find a solution for this block.

Once we find a solution we will release an update.

For now, you can use the classic widget to display color attributes on the sidebar.

Here is a screencast- https://www.loom.com/share/c46ffac5521844a28c231ce6852dc1f0 for your convenience.

Thank You