Layered Nav Widget with unfiltered list?
-
Hello,
we are using the Layered Nav Widget with “AND” option as a dropdown that shows all tags from this category – even when an option is selected.
Therefore in the past we had to change in
includes/widgets/class-wc-widget-layered-nav.php
this:if ( 'and' == $query_type ) { $count = sizeof( array_intersect( $_products_in_term, WC()->query->filtered_product_ids ) );
to this:
if ( 'and' == $query_type ) { $count = sizeof( array_intersect( $_products_in_term, WC()->query->unfiltered_product_ids ) );
(the difference: “…filtered…” -> “…unfiltered….”)
But now with WC 2.6 the code changed much and I can’t get this work anymore.
How can we get back to our favorite behaviour? Because it’s a little bit disturbing to choose the “All” option first, before selecting another option.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Layered Nav Widget with unfiltered list?’ is closed to new replies.