WooCommerce Checkout Page Not Refreshing
-
i have to implement something for woocommerce where if user change the payment method in the checkout page the total calculation of products in card refresh.I made this in a previous version of woocommerce and tha time it worked but after updating woocommerce to the leatest version it doesn’t work.
this was the code to refresh the calculation in woocommerce previous version.
jQuery( function($){
$(‘form.checkout’).on(‘change’, ‘input[name=payment_method]’, function(){
$(document.body).trigger(‘update_checkout’);
})
} )i also tried
$(‘form.wc-block-checkout__form’).on(‘change’, ‘input[name=radio-control-wc-payment-method-options]’, function(){
$(document.body).trigger(‘update_checkout’);
})
- You must be logged in to reply to this topic.