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.
| Checkout | Request | Response |
|---|---|---|
Classic [woocommerce_checkout] | POST /?wc-ajax=update_order_review | JSON with HTML fragments |
| Block checkout | POST /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
- Open DevTools on checkout. Network tab, filter
wc-ajax(orwc/storeon the block checkout). - Change the country or postcode. A new request should appear within a second.
- Read the response. It must be JSON. HTML, a 403 page or a PHP notice in front of the JSON means something broke it.
- Check the console. No request at all means a JavaScript error stopped
wc-checkoutbefore it could send.
If the response is a 500, read the PHP error. WooCommerce stores fatal errors in its own logs:
# 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.logThe usual causes
| Sign | Cause | Fix |
|---|---|---|
| Console error, no request | Theme or plugin JS error, or minified and deferred wc-checkout script | Exclude checkout scripts from JS optimisation |
403 on wc-ajax | Security plugin or WAF rule | Allow wc-ajax and the checkout path |
| Old totals, cached response | CDN or page cache caching wc-ajax | Bypass cache for wc-ajax and /checkout/ |
| PHP notice before JSON | Plugin printing output with debug display on | Turn off WP_DEBUG_DISPLAY, fix the plugin |
| 500 error | Fatal in a shipping, tax or payment plugin | Read the fatal-errors log |
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 →