Guide

WooCommerce Place order button not working? How to find the cause

Place order does nothing, spins forever or shows an error. The cause is almost always a script, a cached page or the payment gateway — and the browser tells you which in a couple of minutes.

Updated

The short answer

When Place order does nothing, spins forever or shows an error, the cause is almost always one of three things:

  • a JavaScript error on the checkout page — from a plugin, the theme or a script optimiser;
  • a server-side problem with the order request — a PHP error, a firewall or a security plugin;
  • a cached checkout page, or the payment gateway's own script failing to load.

The browser console and the Network tab tell you which in a couple of minutes. Start there before disabling plugins.

What the symptom tells you

  • Clicking does nothing at all — no spinner, no message. The checkout script never ran or crashed before sending the order: look for a JavaScript error.
  • The button spins and never finishes, or the page dims and stays dim. The order request was sent, but the answer broke the checkout — look at the request in the Network tab.
  • An error appears above the form, such as a message that the order could not be processed. Read it: a session that expired on a cached page, a required field, or a payment gateway refusing — each says so in its own words.
  • It works for you but customers say it doesn't. The fault is limited to a browser, a device, a payment method or logged-out visitors (who get the cached page). Test as a logged-out shopper on a phone.

How to find the cause, step by step

  1. Open the checkout in a private window, add a product, fill the form and open the browser's developer tools (right-click → Inspect). In the Console tab, click Place order. A red error names the script file and usually the plugin folder it lives in.
  2. Open the Network tab and click Place order again. Find the order request — ?wc-ajax=checkout on the classic checkout, /wp-json/wc/store/v1/checkout on the block checkout — and read its status and response. A 403 means something blocked it (a firewall or security plugin); a 500 or HTML mixed into what should be JSON means a PHP error.
  3. Read the server logs in WooCommerce → Status → Logs: the fatal-errors log and the payment gateway's log. With WP_DEBUG_LOG switched on in wp-config.php, PHP warnings and notices are written to wp-content/debug.log too.
  4. Rule out caching. Make sure the cart, checkout and my-account pages are excluded from page caching, and that WooCommerce and payment scripts are not delayed, deferred or combined by an optimisation plugin. Purge the cache and test again.
  5. Isolate the plugin. With the Health Check & Troubleshooting plugin, enter troubleshooting mode — only WooCommerce active and a default theme such as Storefront — and place an order. If it works, re-enable the other plugins one at a time until it breaks. Shoppers don't see any of this.
  6. Check the payment method on its own. If only one gateway fails, switch on its test or sandbox mode and its debug log, and look in the gateway's own dashboard for refused requests.

The usual culprits

  • A plugin or theme update that throws a JavaScript error on the checkout, or changes a checkout field in a way WooCommerce's script doesn't expect.
  • Script optimisation — minify, combine, defer or “delay JavaScript” settings applied to jQuery, WooCommerce's checkout script or the gateway's script.
  • Page caching of the checkout, so the form carries an expired security token.
  • A firewall or security plugin that blocks the order request, often after a rule update.
  • A PHP notice or error printed into the order response — common after a PHP version upgrade.
  • The payment gateway's script blocked by a content security policy, a cookie banner that holds scripts back, or an ad blocker on the shopper's side.

Seeing it before customers tell you

The hard part is rarely the fix. It is finding out at all: most shoppers who hit a dead button leave without writing, and the test you run after an update passes in your own browser. StorePilot watches every real checkout:

  • JavaScript and PHP errors on the cart and checkout pages are grouped into issues, with the browsers and pages they hit and how many shoppers ran into them.
  • Each issue links to the session recordings behind it, so you watch the click on Place order and what happened next — no need to reproduce it on your own device.
  • Alerts for new errors, error spikes after an update, and revenue silence — visitors arriving, no orders being paid — reach you by email, Slack, Telegram or webhook.

Install the WordPress plugin — no theme or code changes — or see how error tracking works and read about error tracking in the docs.

Before you call it fixed

  • A test order goes through as a logged-out shopper, on a phone and on a desktop, with every payment method.
  • The console on the checkout page is free of red errors.
  • The cart, checkout and my-account pages are excluded from caching and script optimisation.
  • Paid orders arrive at their usual pace for the rest of the day.
FAQ

Questions about this guide

Why does the WooCommerce Place order button do nothing?

Almost always because a JavaScript error on the checkout page stops WooCommerce's own checkout script — often from another plugin, the theme, or an optimisation plugin that delayed or combined scripts. Open the browser console on the checkout page and click Place order: the red error names the file it came from.

Why does the checkout spin forever after clicking Place order?

The order request reached the server but the answer was not what the checkout expected — usually a PHP error or notice printed into the response, or a security plugin or firewall that blocked the request. The browser's Network tab shows the request and what came back.

Can caching break the WooCommerce checkout?

Yes. A cached cart or checkout page carries an expired security token, so the order is refused, and minify or delay settings can hold back the scripts the checkout needs. Exclude the cart, checkout and my-account pages from page caching and from script optimisation.

How do I test without breaking the store for customers?

Use the Health Check & Troubleshooting plugin's troubleshooting mode: it disables plugins and switches the theme for your browser session only, while shoppers keep the normal store.

Does it matter whether my store uses the block checkout or the classic one?

It changes where to look. The classic shortcode checkout posts the order to ?wc-ajax=checkout; the block checkout, the default for new stores since WooCommerce 8.3, posts it to /wp-json/wc/store/v1/checkout. Either way the response to that request says what went wrong.

Know the moment your checkout breaks

Install the plugin, and every checkout error reaches you with the shoppers it hit and a replay of what they saw.

Start for free

Every feature on the Free plan, for 100 visitors a month. No card required.

Choose a plan

Plans from €29 a month, priced by your monthly visitors and the websites you connect.