• Resolved marketingproflexoradea


    On the shop page (/magazin), I have a sidebar in which all of the filters are applied.
    THE TROUBLE is that when only one products remains after filtering, it does not show it. It’s blank, no product.
    Let’s say I filter down the products by size, pressure and destination to get exactly the product I need. It does not show anything. When I refresh, sometimes it redirects me to that particular product.
    But there are results when 2 products remain after filtering, but when 1 product remains, nothing is showing up.
    I have deactivated all the plugins except Woocommerce, cleared the cache, tried again, no change.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter marketingproflexoradea


    I have found the issue: the search combined with the filtering, when 1 product was remaining afeter filter, was trying to redirect to the product, but there was a glitch, probably because it was trying to load the product inside the search-results.

    I added this to my child-theme function.php:
    add_filter( ‘woocommerce_redirect_single_search_result’, ‘__return_false’ );

    Now it works fine.
    I hope it helps somebody out there with the same problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Filtering trouble’ is closed to new replies.