Support » Plugin: WooCommerce Checkout Terms Conditions Popup » Latest update breaks plugin

  • Im using WooCommerce 3.4.4
    and after the last update to your plugin it now doesnt work.
    when you click the TAC link it just opens to a new page and the place order link is missing. if i disable your plugin the place order button re appears.

    THANKS FOR ANY HELP!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author WC Marketplace

    (@dualcube)

    Hi @lingenchan, we have released an update today. This issue should be fixed.

    @dualcube that did fix it. now my custom code that suppose to auto popup the TAC isnt working.

    I hate to ask but what changed?

    here is my code to auto popup that was working before.

    <script type=”text/javascript” >
    jQuery(document).ready(function($) {
    $( window ).bind( ‘updated_checkout’, function() {
    $(‘#checkoutpopupform’).simplepopup();
    });
    });
    </script>
    here is the URL to the page.
    https://www.bksports.com/checkout/

    Hmm strangely enough that still didn’t trigger it. am I on crack? Can someone take a look and see why? it would even be a better idea if the plugin had an option for auto popup.

    Try chhanging it like below and tell me:

    <script type=”text/javascript” >
    jQuery(document).ready(function() {
    jQuery( window ).bind( ‘updated_checkout’, function() {
    jQuery(‘#checkoutpopupform’).simplepopup();
    });
    });
    </script>
    • This reply was modified 1 year, 3 months ago by  lingenChan.

    Nope its like something is blocking it. not sure what changed
    Thanks for trying

    sorry, try again now, there were some ilegal characters (copy the exact code below):

    <script type="text/javascript" >
    jQuery(document).ready(function() {
    jQuery( window ).bind( "updated_checkout", function() {
    jQuery("#checkoutpopupform").simplepopup();
    });
    });
    </script>

    Yes, I see the problem now, you used illegal characters apostrophes => ‘
    You have to change them with i.e. double quotes => ”

    (I think you can even use your original code doing this modification).

    Cheers,

    • This reply was modified 1 year, 3 months ago by  lingenChan.
    • This reply was modified 1 year, 3 months ago by  lingenChan.
    • This reply was modified 1 year, 3 months ago by  lingenChan.

    Again youd think it would work i used your code copy and paste

    https://www.bksports.com/checkout/
    take a look it still seems unhappy. 🙁

    The idea is to trigger the Terms and Conditions modal when you click in the link under “I’ve read and accept the Terms & Conditions” and the functionality is working well.

    If you need to show it in other ways than that you have to review the “updated_checkout” event you’re using because the problem is in there (try to change .bind with .on).

    Good luck,

    Right.. as i said right from the beginning..
    the Idea for us was to Trigger the Popup ONLOAD withut anyone clicking aything. Making 100% sure the client sees it and that code i had was working. so its just confusing that it isn’t now. and thats also wh i mentioned it wud be nice if that was an option in the plugin because it is a useful feature.

    THANKS again for trying.

    Maybe try with onload then:

    jQuery(window).load(function() {
    // your function here
    });

    Just let me know if you solve it sometimes in order to know what happened!

    Good luck,

    Nope i think the issue could be this NEW error but im not sure how to solve it.

    [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.

    • This reply was modified 1 year, 3 months ago by  .

    That’s just a warning not an error…

    I strongly think that you have to review the “updated_checkout” event.

    Cheers,

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Latest update breaks plugin’ is closed to new replies.