On my woocommerce website I like to add a top-line to my page to show a kind of excerpt of the layered navigation filtering.
We have a lot of product and sometimes it’s not clear that something is happening when using the layered navigation filtering.
So I like to add a line just above the products which says how many products are within the filtering results and on which term of the attribute you are filtering. I have 3 attributes (theme, genre, age) which all containes several terms.
So I like a line like:
Found 46 products. You are filtering on X, Y, Z
So I want to find out how I can display the number of products within this filtering and how to display the names of the terms the visitor is filtering with.
Okay, and then you dive into the code of the class-wc-widget-layered-nav.php and find code to show the active choses….to find out there is a widget that shows your choices… live can be far more easy than you think .