1

i have 2 payment methods .. in one of them i add extra fees How to trigger WooCommerce Ajax which updates shipping calculation on change payment method ?

1

solved using jQuery

jQuery( document ).ready(function() {
  jQuery(document).on('change','#payment',function(){
    jQuery( 'body' ).trigger( 'update_checkout' );
   });

});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.