• Resolved rcostabranco

    (@rcostabranco)


    Hi,

    When I set the Filtering style to: AJAX with instant submission (which is the option I would like to use) the auction counter stops working.
    Print before AJAX: https://prnt.sc/26iq2rj
    Print after AJAX: https://prnt.sc/26iq2mc

    If in Filtering style I choose: URL filters, it reloads the page and therefore already shows the counter.
    But it generates other problems and I wanted to take advantage of ajax.

    I found the JS responsible for the counter.

    Is there any code I can put in functions.php to fix this problem?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author annastaa

    (@annastaa)

    Dear Rcostabranco,

    Please check your mail for our reply!

    For future reference of other forum users facing issues with countdown (or any other JavaScript-powered) plugins that attach their event handlers on page loads: please contact your 3d-party plugin (theme) developers for instructions on possible ways of re-attaching handlers to relevant elements after AJAX calls.

    To destroy old instances and attach handlers to AJAX-retrieved elements, you can use 2 events that are triggered in close connection with our plugin’s AJAX filtering routines:

    1. The awf_ajax_filter event is triggered just before the AJAX update
    2. The awf_after_ajax_products_update (or awf_ajax_products_update_cancellation) events are triggered right after the AJAX products list update (or its cancellation).

    Thread Starter rcostabranco

    (@rcostabranco)

    Thank you very much for the feedback.
    I’ve already seen your email and I’ve forwarded it to the theme support.
    As soon as I have news, I’ll let you know.
    Thanks!

    Plugin Author annastaa

    (@annastaa)

    Great Rcostabranco,

    Let us know if you need help with the code implementation!

    Plugin Author annastaa

    (@annastaa)

    Dear Rcostabranco,

    Since the countdowns’ refresh issue after filters’ AJAX calls has been successfully resolved by Ibid theme developers, I will go ahead and close this thread. Please don’t hesitate to contact us if you have any further questions!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with ajax filtering’ is closed to new replies.