Forums Forums Search & Filter Pro Page reloads after filtering results

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #38475

    Hi Ross,

    Regarding checkbox filters, I was wondering what kind of logic you’ve applied to on change events in search-filter-build.min.js?

    I’m having quite an issue after filtering custom post types on my custom results page. I believe it’s the js issue, actually something with the ajax.

    I can post an URL for you to take a look, but in private comment.

    Thanks

    Anonymous
    #38477
    This reply has been marked as private.
    Ross Moderator
    #38556

    Absolutely.

    The issue here that you are using Ajax.

    IF you disable ajax, the compare button will work as normal?

    This is because, when an ajax search is submitted, new HTML/results are fetched and loaded in.

    But, the Javascript for your compare button does not get applied to this new html/elements.

    To get around this we provide a JS event, which tells you when the ajax request has completed, and then you can load / reload your javascript again for functionality like this.

    Please see hte first question on the FAQs – https://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/

    Thanks

    Anonymous
    #38614

    Hi Ross,

    Thank you so much for the clarifications! I’ve re initialised my js and ajax on “searchandfilter ajax complete” and now everything works perfectly fine 🙂

    Thanks again for your help.

    Ross Moderator
    #38654

    🙂

Viewing 5 posts - 1 through 5 (of 5 total)