Skip to content

How to hide layered navigation filter if all products in category have the same value?

Imagine having a category with 10 products, all having the same weight of 2 lbs.

Weight filter will still show in layered navigation as:

Weight

2 lbs (10)

How to remove such attributes from layered navigation?