Show attribute name in active filters
-
Hi,
I’m having one issue which I am unable to resolve myself. I can’t seem to find the appropriate answer online.
For example: I have an attribute named “Spiced”, with attribute values 0, 1, 2 and 3. The attribute indicates how spiced a product is on a scale from 0 to 3. My customers can filter on this attribute, for instance if they only want to see the products with a Spiced value of 2 . This all works really well.
The problem I have is that, when such a filter is activated, it shows up in the Active Filters block as “2”, but it doesn’t show the attribute name “Spiced” . So you don’t really see or know what the “2” means. That becomes a problem once the customer has more and more filters active to make his search more specific.
Is there a way to have the attribute name show up in the active filters block, so that it shows “Spiced: 2” ? I’d prefer to code it via functions.php and not resort to a plugin for this.
I’m running the latest Woocommerce/Wordpress, in combination with the shoppingcart theme. But in Storefront, I don’t see the attribute name showing up either. It’s just showing the selected value.
What am I missing?
- The topic ‘Show attribute name in active filters’ is closed to new replies.