Home › Forums › WoodMart support forum › total price in checkout page woocommerce not updating › Reply To: total price in checkout page woocommerce not updating
May 1, 2021 at 6:26 pm
#288615
jimmydali
Participant
i found a solution using this code .
var timeout;
jQuery( function( $ ) {
$(‘.woocommerce’).on(‘change’, ‘input.qty’, function(){
if ( timeout !== undefined ) {
clearTimeout( timeout );
}
timeout = setTimeout(function() {
$(“[name=’update_cart’]”).trigger(“click”);
}, 1000 ); // 1 second delay, half a second (500) seems comfortable too
});
} );
but the shopping cart widget still not working probely. its working on shop page. and other pages of products categories . but not on the home page