The following snippet is causing an endless “update loop” at the checkout:

add_action( 'wp_footer', 'checkout_update_script', 999 );
function checkout_update_script() {
    if ( is_checkout() ) :
    ?>
    <script>
        jQuery( function($){
            // Checking that the variable "woocommerce_params" is defined to continue               
            if ( 'undefined' === typeof woocommerce_params )
                return false;

            $('form.checkout').change('input[name="payment_method"]', function(){
                $(this).trigger( 'update' );
            });
        });
    </script>
    <?php
    endif;
}

Klarna module is using $('body').trigger('update_checkout'); in its code causing the endless update loop in the checkout. If I deactivate Klarna plugin it works as intended.

Read more here: trigger( ‘update’ ) causing conflict with another update trigger in WooCommerce Checkout


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: