Use jQuery('body').trigger('update_checkout'); on your javascript e.g on ajax success/response it will update checkout page with ajax.
$.ajax({
type: 'POST',
dataType: 'json',
url: wc_checkout_params.ajax_url,
data: {
action: "product_remove",
product_id: product_id,
cart_item_key: cart_item_key
},
success: function(response) {
if ( ! response || response.error )
return;
var fragments = response.fragments;
// Replace fragments
if ( fragments ) {
$.each( fragments, function( key, value ) {
$( key ).replaceWith( value );
});
}
jQuery('body').trigger('update_checkout');
}
});
Related Posts:
- WooCommerce add_to_cart() with custom price [closed]
- wc_get_product in a none woocommerce page
- WooCommerce add_to_cart url not working [closed]
- Mini cart in header using divi is not getting updated on changing the cart items count:
- woocommerce_package_rates not fired everytime
- Problems adding in-store product managers
- Javascript / Ajax Error After Migrating To New Domain Name
- Programatically Remove Item from Cart Not Working – Needs Page Refresh
- In WooCommerce product archive, how can you also set the quantity to be added to cart by typing, instead of just by using +/-?
- WooCommerce update_shipping_method ajax call wipes shipping method set on non-checkout page [closed]
- CF7 Ajax isn’t working when called inside WooCommerce “woocommerce_before_add_to_cart_button” hook [closed]
- ajax request in wordpress
- WooCommerce event works in jQuery but not in JavaScript
- Trying to run Javascript on AJAX call
- WooCommerce variable product can not add to cart using ajax after updating latest version of WooCommerce
- Running JavaScript after using WooCommerce Filter Plugin
- call_user_func_array() expects parameter 1 to be a valid callback, class ‘WC_Rapyd’ does not have a method ‘install’
- Call product search from custom hook
- woocommerce deposit Form with AJAX and shortcode won’t update but add to previous output
- Woocommerce Variation product added twice to cart
- woocommerce REST api on the website’s front-end
- Woocommerce Multisite global search how to mod ajax function?
- Pass values to ajax
- Unable to call woocommerce hook in my custom php file
- Fragments to Update Cart Counter not working on homepage – Woocommerce
- Overriding Plugin function in your child theme
- Update / refresh mini cart, after custom AJAX add_to_cart event
- Can’t update WooCommerce payment method title
- Using category and its sub-categories products attributes as filter in products pages
- add_filter not works in ajax
- SyntaxError: unterminated string literal – if WordPress Debug in wp-config is set to true
- How to add ajax loading icon after click add to cart button on woocommerce
- WordPress error
- Woocommerce ajax search can’t work on mobile
- How to turn off WooCommerce user registration and manually create accounts?
- Change WooCommerce Image Size in One Product CAtegory
- Is there a way to get customers logged out without calling wp-login.php?
- Woocommerce Shop Price Position
- How to disable users from editing billing address in WooCommerce checkout?
- Move WooCommerce product tabs out of the tabs [closed]
- Show add to cart button on shop woocommerce
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- Woocommerce – Override the default templates location under the theme directory
- How to hide out of stock products in Related Products via custom query in WooCommerce
- Changing Woocommerce language without changing the language in Dashboard admin WordPress
- WooCommerce Country Drop Down colours CSS [closed]
- Fatal error: Call to undefined method WooCommerce::nonce_field()
- Function to recalculate shipping costs on subscriptions after renewal with Automatewoo
- Creating a multisite registration form that also creates a woocommerce post
- How to show tag count for individual product post in wordpress woocommerce
- Checkout is blocked with blockUI when using action woocommerce_cart_calculate_fees
- API returns blank response after installing & uninstalling WP-rest-api plugin
- Tried to create a user role that can only edit user information, but my test account cannot view the dashboard. What am I missing?
- How can I run a multi language WordPress site in two folders in one install? [closed]
- update_post_meta not work [closed]
- Woocommerce Product permalinks “product” word is not working
- Issue with WordPress customize
- Woocommerce checkout page issue – Payment methods not loading – strange “Credit/Debit Card Secure Payment” form
- Sort products by Sale price and stock status
- Pagination in woocommerce – Limiting page-numbers
- Change order of combined product tabs
- Display notice on WooCommerce emails depending on chosen shipping option
- Impossible to create a new WooCommerce customer using Rest API
- edit URL of search result
- Check if product variation image is from the variation itself or from the parent
- How to use products shortcode in taxonomy-product_cat with multiple columns?
- Position WooCommerce basket and pricing
- Display Products Associated with Specific Attribute [closed]
- Trying to figure out why an error is returned when trying to add an item to the basket on this website
- Conditionnaly replace “Read more” text WooCommerce products
- WooCommerce/Authorize.net interface problem
- Change order status after checkout
- Is it safe to update an old site after backing it up and activating a child theme?
- Disable Woocommerce main shop page, but not the product category archive pages
- access Woo commerce | WordPress methods externally
- How to store ACF from product in user_meta?
- Trying to link to a custom css file in a new folder
- Add woocommerce.css in template?
- My custom button to add an item in the WooCommerce admin page doesn’t refresh the page
- Add field to category woocommerce page
- WordPress Pagination products with AJAX
- How to fetch More Offers products in WooCommerce?
- How do I use a combination of switch_to_blog() and wc_create_order()?
- Not showing correct number of product after using sort [closed]
- Titles with thumbnails in media library
- Variation swatches problem in woodomart theme (title of swatch and box are appearing together) [closed]
- sidebar cart page
- Getting error – preview cannot be loaded when activating WooCommerce plugin [closed]
- Woocommerce template not working on newly added products
- Export Woocomerce Image Product URL
- Reposition variation stock message
- How to add fee_lines using woocommerce rest API v3?
- Is it possible to extract all product columns except for one?
- Changing the all filename field of WooCommerce products
- My account page, don’t show the complete “Registration form”
- Woocommerce product not responsive
- limit all products
- Pricing Rules plugin bulk table not showing in varition of products (have 2 attributes) if single attribute its shows
- WooCommerce Webhook Action When a New Product Review was Submitted/Created
- Getting Uncaught SyntaxError: Unexpected token ‘