[resolved] Show result excerpt of layered navigation filtering (3 posts)

  1. katootje
    Posted 3 years ago #

    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.

    Thanks in advance



  2. katootje
    Posted 3 years ago #

    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 .

    So problem solved :)

  3. codenegar
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic