Forums Forums Search & Filter Pro “hide if empty” filter with AJAX functionality

Tagged: 

Viewing 10 posts - 1 through 10 (of 13 total)
  • Anonymous
    #263685

    Hello, the “hide if empty” feature inside a filter does not seem to work if done via AJAX.
    it works fine the regular way.
    “Enable auto count” is activated.
    Could you please let me know if that functionality works with AJAX? If i refresh the URL, it hides the field properly, however, the ajax doesn’t seem able to retrieve the data.
    Thanks!

    Trevor
    #263719

    Hide Empty applies to the field terms, and not to the field itself. So, even if no terms are showing, the field will still appear. Is that what you mean?

    If not, are you able to send me a live link/URL to your search page so I can take a look?

    Can you give me a search to do that will show me the issue, and explain why what you see is wrong?

    Anonymous
    #263790

    Good afternoon,

    Sure, here’s a link:
    https://crescentgarstg.wpengine.com/shop

    On the sidebar, if you select “category”: planters, “material”: Leather and open “Color”, you will see all the colors listed. Despite having “hide if empty” in the backend set.

    If you refresh the page, and open “color”, you will see the correct set up. Only Brown will appear since the other colors are empty.

    Let me know,
    Regards

    Trevor
    #263871
    This reply has been marked as private.
    Anonymous
    #263874

    Try again please, i disabled the beautiful loading spinner

    Trevor
    #263878
    This reply has been marked as private.
    Anonymous
    #263883

    Sure. Let me try that and get back to you.
    Thanks a lot

    Anonymous
    #263923

    Hello again,

    I tried it:
    https://crescentgarstg.wpengine.com/

    It’s still not working with AJAX with the latest plugin update.
    If you access the page with the filters directly, it will successfully hide the colors. But using ajax filters doesn’t hide the colors:/

    Trevor
    #263925

    I can see that you have made some changes to the form so that the headings act as Accordion close/open. I wonder if that is interfering with our plugin, which uses JavaScript to make the changes? Are you able to temporarily disable the changes you made to test this?

    Anonymous
    #263928

    Sure. I have it bare on another test site with no javascript:
    https://crestg.wpengine.com/shop/

    Thanks again

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