WooCommerce checkout not working? How to fix it

WooCommerce checkout not working? Work through the common causes, from caching and plugin conflicts to payment gateway and SSL problems, with fixes.

When WooCommerce checkout is not working, the cause is almost always one of five things: a caching layer serving a stale checkout page, a plugin or theme conflict breaking the checkout scripts, a payment gateway misconfiguration, an SSL or mixed content issue, or a server error that only shows up in the logs. Each of these can be found and fixed methodically.

A broken checkout costs money every hour it's down, so the first step is to confirm the problem quickly and in a way you can repeat. The rest of this guide goes through the causes in the order I check them on client shops, from most common to least.

If you're under pressure, start with the "quick triage" section, then work down.

Quick triage: what exactly is broken?

"Checkout doesn't work" can mean very different things. Pin it down first:

  • The checkout page won't load or shows a blank or error page.
  • The "Place order" button spins forever and nothing happens.
  • An error message appears, such as "There was an error processing your order" or a gateway-specific error.
  • The order goes through but payment fails, or payment succeeds but the order stays "Pending payment".
  • It works for you but not for customers, or only fails on certain devices or countries.

Then test like a customer: open a private browser window, add a product, go to checkout and place a test order with your gateway in test or sandbox mode. Open the browser's developer console (F12, Console tab) before you click "Place order". JavaScript errors in red there are your best clue.

Caching and optimisation plugins

This is the most common cause I see. Cart and checkout pages must never be cached, because they're different for every customer.

Check that:

  1. Your caching plugin excludes /cart/, /checkout/ and /my-account/. Most WooCommerce-aware caching plugins do this automatically, but custom page slugs can slip through.
  2. Your host's server cache and any CDN (like Cloudflare) also bypass these pages and respect WooCommerce's session cookies.
  3. JavaScript optimisation (minify, combine, delay or defer JS) isn't breaking the checkout scripts. Try excluding WooCommerce and payment gateway scripts from these optimisations.

A quick test: temporarily disable the caching or optimisation plugin and purge all caches, including CDN. If checkout works, re-enable it and adjust the exclusions rather than leaving it off.

Plugin and theme conflicts

WooCommerce checkout relies on JavaScript and AJAX calls. Any plugin or theme that loads a conflicting script, or modifies checkout fields badly, can break it.

The safe way to test is on a staging copy, not on the live shop:

  1. Create a staging site (most hosts offer one click staging).
  2. Switch to a default theme like Storefront or a current default WordPress theme.
  3. Test checkout. If it works, the theme or its customisations are the cause.
  4. If not, disable all plugins except WooCommerce and your payment gateway.
  5. Test again. If it works, re-enable plugins one at a time, testing after each, until it breaks.

If you can't make a staging copy, the Health Check & Troubleshooting plugin from wordpress.org has a troubleshooting mode that lets you do this on the live site for your own session only, without affecting customers.

Common culprits I find: checkout field editor plugins, custom code in functions.php that hooks into checkout, old page builder templates for the checkout page, and multiple plugins adding fees or discounts.

Payment gateway problems

If the checkout loads and the button responds but payment fails, look at the gateway.

  • Test vs live keys. Mixed-up API keys are very common after moving from testing to live, or after a site migration.
  • Webhooks. Gateways like Stripe and PayPal send webhooks back to your site to confirm payment. If the webhook URL is wrong or blocked (by a security plugin, firewall or maintenance mode), orders stay "Pending payment" even though money was taken.
  • Outdated gateway plugin. Payment providers change their APIs. An old plugin version can stop working.
  • Currency and country settings. Some gateways only support certain currencies or billing countries.
  • 3D Secure / Strong Customer Authentication. In regions like the UK and EU, card payments may need an extra verification step. Old integrations that don't support it will fail.

Check the gateway's own dashboard for failed payment attempts and error messages. They're often much clearer than what WooCommerce shows.

The block checkout vs the classic checkout

Newer WooCommerce stores use the block-based Cart and Checkout by default. Older stores use the classic shortcode checkout. Some plugins, especially older payment gateways and checkout customisation plugins, only support the classic version.

If a gateway doesn't appear at checkout, or a checkout customisation doesn't show:

  • Check whether the plugin supports the Checkout block. Many list this on their wordpress.org page.
  • If it doesn't, either update or replace the plugin, or switch the checkout page back to the classic shortcode, [woocommerce_checkout], while you sort it out.

Also check that the right page is set as the checkout page in WooCommerce > Settings > Advanced. After a migration or redesign, this setting sometimes points to an old or deleted page.

SSL, mixed content and server errors

SSL. Checkout must run over HTTPS. If your certificate has expired, or some resources load over HTTP (mixed content), browsers may block scripts or show warnings. Look for "mixed content" warnings in the browser console.

Server errors. If "Place order" returns a generic error, the real cause is often in a log. Check:

  • WooCommerce > Status > Logs, especially "fatal-errors" and your gateway's log.
  • Your server's PHP error log (in your hosting control panel).
  • Turn on WordPress debug logging on a staging copy if needed.

Typical server-side causes include PHP memory limits being too low, an outdated PHP version, a security plugin or firewall blocking the AJAX request to /?wc-ajax=checkout, and timeouts when an external service (a shipping rate or tax API) is slow.

Sessions and cookies. If carts empty randomly or customers get "session expired" errors, look at cookie settings, caching of the wc-ajax endpoints, or a domain mismatch between www and non-www.

A checkout troubleshooting checklist

Work through this in order:

StepWhat to check
1Reproduce in a private window with console open
2Purge all caches; confirm checkout pages are excluded
3Disable JS optimisation temporarily
4Check WooCommerce > Status > Logs
5Confirm gateway is in the right mode with correct keys
6Check gateway dashboard for errors and webhook failures
7Confirm block vs classic checkout compatibility
8Check the checkout page setting in WooCommerce > Settings > Advanced
9Test for conflicts on staging (default theme, plugins off)
10Check SSL, mixed content and PHP version

Once it's fixed, place a real low-value order and refund it, to confirm the whole flow including emails.

Preventing it next time

Most checkout failures I'm called in for happened right after an update, a migration or a new plugin. A few habits prevent most of them:

  • Test updates to WooCommerce, payment plugins and the theme on staging first.
  • Place a test order after every significant change.
  • Set up uptime monitoring that checks the checkout page, not just the homepage.
  • Keep payment gateway plugins and PHP up to date.
  • Keep your WordPress maintenance routine regular, so changes are small and easy to trace.

If your checkout is slow rather than broken, my guide to speeding up WooCommerce stores covers that side.

What to do next

When WooCommerce checkout isn't working, be systematic: reproduce it, check caching, look at the logs, verify the gateway, then test for conflicts on staging. Nearly every broken checkout I've fixed came down to one of those steps.

If your shop is losing orders right now and you need it fixed quickly, my website bug fixing service is set up for exactly that. Contact me with your site address and what's happening.

Available for new projects

Need a hand with this?

Tell me what you need: a new site, a fix, a SaaS or an app. You'll get a clear plan and price within a day.

Start a project WhatsApp me