All posts

WooCommerce checkout totals not updating: the update_checkout request

The shopper changes the country and nothing happens. Shipping costs stay at zero, the payment box keeps spinning, or the totals never change. On the classic WooCommerce checkout all of that depends on one AJAX request, and when it fails the page just stops reacting.

Free checkout scan

Enter your store address. A real browser adds a product to the cart and walks the checkout up to the payment step, like a customer, and shows you every step with a screenshot.

  • Free, no account
  • Stops before payment, no order
  • Nothing to install
· Updated · 3 min read
A calculator and a pen on handwritten notes

What update_checkout does

On the classic checkout, the update_checkout JavaScript event fires when an address field, shipping method or payment method changes. It posts the form to ?wc-ajax=update_order_review, and the response replaces the order review table and the payment box. The block checkout does the same through the Store API instead.

CheckoutRequestResponse
Classic [woocommerce_checkout]POST /?wc-ajax=update_order_reviewJSON with HTML fragments
Block checkoutPOST /wp-json/wc/store/v1/batch (update-customer, select-shipping-rate)JSON cart

Symptoms

Totals that do not change after a new address, no shipping methods or a fixed “Enter your address to view shipping options”, a payment box that keeps loading, a spinner over the order review, or a Place Order button that never becomes active. All of them point to the same request.

Find the failing request

  1. Open DevTools on checkout. Network tab, filter wc-ajax (or wc/store on the block checkout).
  2. Change the country or postcode. A new request should appear within a second.
  3. Read the response. It must be JSON. HTML, a 403 page or a PHP notice in front of the JSON means something broke it.
  4. Check the console. No request at all means a JavaScript error stopped wc-checkout before it could send.

If the response is a 500, read the PHP error. WooCommerce stores fatal errors in its own logs:

bash
# WooCommerce → Status → Logs, or on disk
ls -t wp-content/uploads/wc-logs/ | head
grep -i "fatal" wp-content/uploads/wc-logs/fatal-errors-*.log | tail -5

# Or enable the WordPress debug log temporarily
wp config set WP_DEBUG true --raw && wp config set WP_DEBUG_LOG true --raw
tail -f wp-content/debug.log

The usual causes

SignCauseFix
Console error, no requestTheme or plugin JS error, or minified and deferred wc-checkout scriptExclude checkout scripts from JS optimisation
403 on wc-ajaxSecurity plugin or WAF ruleAllow wc-ajax and the checkout path
Old totals, cached responseCDN or page cache caching wc-ajaxBypass cache for wc-ajax and /checkout/
PHP notice before JSONPlugin printing output with debug display onTurn off WP_DEBUG_DISPLAY, fix the plugin
500 errorFatal in a shipping, tax or payment pluginRead the fatal-errors log
Optimisation plugins are the usual suspect

Combining, deferring or delaying JavaScript is the most common reason update_checkout stops after a change. Exclude wc-checkout, jQuery and the gateway scripts on checkout pages.

Fix and confirm

Each of these appears after a change: a plugin update, an optimisation setting, a CDN rule. The routine in updating WooCommerce plugins safely catches most of them before customers do. After a fix, walk the checkout with a real address and change the shipping method, as a customer would. Related: WooCommerce checkout not working and Cloudflare and CDN caching.

Check your own store now with the free WooCommerce checkout checker: it walks the checkout in a real browser, stops before payment, and shows the step where it breaks.

Find out your checkout broke before your customers do.

Real checkout checks for Magento and WooCommerce · free plan · no card requiredWooCommerce checkout monitoring →
FAQ

Common questions

Still have a question?More answers, and a way to reach us.Support →
01Why are WooCommerce checkout totals not updating?

The update_order_review AJAX request fails or never runs: a JavaScript error, a JS optimisation plugin, a security rule returning 403, a cached response, or a PHP error.

02What is update_checkout in WooCommerce?

A JavaScript event on the classic checkout that posts the form to ?wc-ajax=update_order_review and refreshes totals, shipping and payment methods.

03How do I debug it?

Filter the Network tab by wc-ajax, change the address, and read the response; then check the console and the fatal-errors log.