NL
WordPress help

WooCommerce checkout not working: how to find the cause

When customers cannot check out, you lose sales straight away, and often you only notice when someone emails. This is how I track it down, from quick to thorough.

  • One dedicated contact
  • Reply within a few hours
  • 15+ years of experience

First: what exactly goes wrong?

Place an order yourself, in a private window and not logged in, and note exactly where it stops. Each symptom points in a different direction:

  • The place order button does nothing or keeps spinning
  • You get an error on the checkout page
  • You reach the payment provider, but land on an error page after paying
  • The payment succeeds, but the order stays on Pending payment
  • Payment methods or shipping options do not appear

The button does nothing or keeps spinning

This is usually a JavaScript error. Open your browser’s developer tools (F12) and check the Console for red messages when you click. The error often comes from a plugin or from an optimisation that combines or defers scripts. Turn that optimisation off for the checkout page and try again.

Cache on the wrong page

The cart, checkout and My account pages must not be cached: every customer should see their own details. If a cache or CDN keeps those pages anyway, you get strange errors, expired security tokens or an empty cart. Check the exclusions in your cache plugin and, if you use it, in Cloudflare.

Payment succeeds, order is not updated

After a payment, the payment provider, such as Mollie or Stripe, sends a message back to your shop (a webhook). If it does not arrive, WooCommerce does not know the order was paid. Possible causes: a firewall or security plugin blocking the message, maintenance mode, a wrong address after moving to https or another domain, or an expired API key. Your payment provider’s dashboard shows whether the webhooks arrive and which error code your shop returns.

A conflict with a plugin or theme

If something was just updated, that is the first suspect. On a staging site, deactivate all plugins except WooCommerce and your payment plugin, and switch to a default theme such as Storefront. If the checkout works then, switch everything back on one by one until it breaks again. Do not do this on a live shop; there you would rather use the Health Check plugin, which shows the deactivated state only to you as the admin.

Check the log files

WooCommerce keeps its own logs under WooCommerce > Status > Logs, including per payment plugin. Your server also has a PHP error log. A message such as Fatal error with a file name often points straight at the plugin causing the problem.

Other causes I often see

Not everything is a bug in the code. Also check:

  • A payment method only active for certain countries or amounts
  • Shipping zones that do not cover the customer’s address, so there is no shipping method
  • An outdated theme with its own checkout templates (see WooCommerce > Status)
  • The new block checkout combined with a plugin that only supports the classic checkout
  • The payment provider’s test mode still switched on, or live keys on the staging site

Prevention: test your checkout regularly

You cannot see a broken checkout from the front of your shop. That is why, with WooCommerce maintenance, I run a test order through checkout and payment every week and test updates on a staging site first. It costs €10 a month, paid six months upfront (€60). If something in your checkout needs changing or building, you get a fixed price upfront.

See WooCommerce maintenance →

See WordPress development →

Request a fixed price →

Order directly, fixed price

You get your invoice right away and your own project page in My account. Need something else or bigger? Ask for a fixed price.

WooCommerce maintenance

Everything in WordPress maintenance, plus a test order through your checkout

€10 a month, paid 6 months upfront (€60)

Order

Or ask for a fixed price for custom work

FAQ

Good to know

Is your question not here? Feel free to send me a message.

Do I miss orders when the checkout is broken?

Customers who cannot check out often give up. Payments that did come in but were not processed in WooCommerce can be found in your payment provider’s dashboard; you can then process them in your shop afterwards.

Can I test my checkout without really paying?

Yes, most payment providers have a test mode. Use it on a staging site, or place a small real order on your live shop and refund and cancel it afterwards.

Should I switch to the new block checkout?

First check that your payment, shipping and other checkout plugins support it, and test the switch on a staging site.

Contact

Say hello

A question, an idea or a job? I reply usually within a few hours, between 08:00 and 20:00.

Email