i have some custom coding which is creating trouble with woocommerce cart page ajax function, i want disable ajax on cart page so that page reload on updating/removing product from cart page, i have disable from woocommerce setting but its not efective on cart page
target remove button class with jquery and force to reload page but due ajax enable on cart page its not working, items does remove
See if this helps It should auto detect the url in your button’s href value
$(document).ready(function() {
$(document).on('click', '.remove', function(e) {
e.preventDefault(); // Prevent the default AJAX call
var url = $(this).attr('href'); // Get the URL for the remove action
window.location.href = url; // Redirect to the URL to perform the remove action and reload the page
});
});
but you have to make sure you update woo’s funciton file: