Forums Forums Search & Filter Pro Hide empty terms – not work

Tagged: 

Viewing 10 posts - 1 through 10 (of 15 total)
  • Anonymous
    #247800

    Hi, I have a problem hiding inactive variations on a Woocommerce product.
    The filter works correctly, but I would like to show only the available variations. To have a customized filter for each category, I use a dedicated shortcode.

    here the demo site I’m working on.

    https://uniqstore.dev-test.it/categoria-prodotto/abbigliamento/giacche-e-cappotti/

    The filter “Filtra per taglia” should only show me the following available terms: L, M, S while instead showing all the terms available on the shop.

    here the settings

    https://uniqstore.dev-test.it/wp-content/uploads/2020/06/settings.jpg

    Trevor
    #247833

    You will need to enable the two Auto Count settings, shown here:

    https://www.screencast.com/t/5YZiY4NAI

    Anonymous
    #247856

    Hi Trevor, Thank you for your answer.
    I had already tried it, but as you can see now by clicking on the list no available field appears. It looks empty.

    https://uniqstore.dev-test.it/categoria-prodotto/abbigliamento/giacche-e-cappotti/

    I also cleared the cache, but it doesn’t work.

    Trevor
    #247858
    This reply has been marked as private.
    Anonymous
    #247862
    This reply has been marked as private.
    Trevor
    #247981
    This reply has been marked as private.
    Anonymous
    #248015
    This reply has been marked as private.
    Trevor
    #248022

    The Yith WooCommerce Wishlist plugin/functionality adds the ‘hearts’ to each post using JavaScript on page load. When an Ajax refresh is made, this code is not called. We have some JavaScript that allows other scripts/functions to be called after an Ajax refresh ash been done, but you would need to know from Yith what that line(s) of code would be:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        // call your script or function here
      });
    }(jQuery));</script>
    Anonymous
    #248637

    Hi Trevor,
    thanks for the feature. I managed to solve this problem.
    Unfortunately there is another problem to be solved:

    Paging with Ajax does not seem to work: the following message appears in the console: “Uncaught TypeError: can’t access property” toLowerCase “, r is undefined” in the search-filter-build.min.js file

    Anonymous
    #248647

    I add these details to help you visualize the problem:

    On the page with the filter that manages woocommerce there is the problem I have indicated.

    https://uniqstore.dev-test.it/shop/

    while in the template that uses the search-filter template, no error comes out, but it cannot make the pagination. Here are 75 products instead I only see 7, without showing me the other results

    https://uniqstore.dev-test.it/categoria-prodotto/abbigliamento/giacche-e-cappotti/

Viewing 10 posts - 1 through 10 (of 15 total)