Total : 0.00 €

Before contacting us, please make sure to check our F.A.Q

Please, login or register to our website in order to be able to post a presale question in the forum.

× WooPrice Calculator PRO

awspcAfterCalculatePrice returns too fast

More
4 months 5 days ago #1600 by Marnick Menting
Marnick Menting replied the topic: awspcAfterCalculatePrice returns too fast
Wow, awesome! Thank you very much.

Please Log in or Create an account to join the conversation.

More
4 months 6 days ago - 4 months 6 days ago #1599 by Enrico
Enrico replied the topic: awspcAfterCalculatePrice returns too fast
Hi Marnick,

I've updated the documentation here: altoswebsolutions.com/manual/woo-price-c...ator/jquery-triggers

Here you can find the trigger "awspcAjaxCalculatePriceSuccess", which is exactly what you've described.

You also need to upgrade to the bugfix version 2.2.16, you can download it here: [I've sent the URL to you via email to your email address]

You can find instructions how to install the bugfix here: altoswebsolutions.com/manual/woo-price-c...lator/install-bugfix

Kind Regards,
Enrico
AT471
Last Edit: 4 months 6 days ago by Enrico.

Please Log in or Create an account to join the conversation.

More
4 months 6 days ago #1596 by Marnick Menting
Marnick Menting replied the topic: awspcAfterCalculatePrice returns too fast
And maybe related to this, maybe not: I would like to receive the errorCount of the ajax call admin-ajax.php?task=price_callback&action=awspricecalculator_ajax_callback. Is there a way to catch it and do my own jQuery stuff with it?

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #1590 by Marnick Menting
Marnick Menting created the topic: awspcAfterCalculatePrice returns too fast
I am using the new jQuery triggers to trigger custom actions. This is a sample code:
      $(document).bind('awspcAfterCalculatePrice', function(e) {
        console.log(new Date().getTime());
      });

        $(document).bind('awspcBeforeCalculatePrice', function(e) {
          console.log(new Date().getTime());
          setTimeout(function() {goToNextStep(); }, 500);
        });

I want to trigger an event after the call to admin-ajax.php?task=price_callback&action=awspricecalculator_ajax_callback is returned. But it seems the awspcAfterCalculatePrice is triggered earlier, because the style="display:none" of the awspc-field-row td's are not changed yet, I need to wait 500ms. Can I hook to that Ajax response somehow?

Please Log in or Create an account to join the conversation.

Moderators: david
Time to create page: 0.171 seconds

Cart

Total : 0.00 €