Chinmoy Biswas

WooCommerce Checkout Not Working? How I Fixed a 30% Drop in Orders

A store I looked after was losing about 30% of buyers at the payment step, with no error anywhere. Two developers had already tried. Here is how analytics, a throttled phone connection and the network tab found an intermittent checkout bug, and lifted orders by 18%.

On this page
  1. Step 0: Prove there is a problem, with numbers
  2. Why this bug was so hard to see
  3. Step 1: Test the way customers really buy
  4. Step 2: Watch what the checkout is actually doing
  5. The cause
  6. The fix
  7. The result
  8. If your WooCommerce checkout is losing orders
  9. Losing orders and can't see why?
WooCommerce Checkout Not Working

Some bugs announce themselves with an error. The expensive ones don't.

One of the WooCommerce stores I looked after, a home goods shop I'll call Northfield Home Goods, was quietly losing customers at the very last step. People filled their cart, reached checkout, entered their card and pressed Place order, and a large share of them never became orders. No error on the screen. No failed-order emails. Nothing unusual in the logs.

Two other developers had already looked at it. Both did the standard thing: switch plugins off one at a time, test checkout, switch them back on. Neither found anything, because on their screens checkout worked.

Here's how I found it, and why it hid so well.

Step 0: Prove there is a problem, with numbers

Before touching any code, I wanted to know how big the problem really was and where it happened.

In the store's analytics I compared each step of the funnel: people who started checkout, people who reached the payment step, and completed orders. Most stores lose some buyers between those steps, and that's normal. This store was losing about 30% more at the payment step than it should, and the drop lined up with no change in traffic, prices or ads.

That comparison mattered for two reasons. It confirmed this was a real bug and not just shoppers changing their minds. And it pointed at one exact step, so I knew where to look.

Why this bug was so hard to see

The store had three things working against it:

  • No error for the customer. The payment simply didn't go through, so buyers assumed the site was broken and left.
  • Nothing useful in the logs. WooCommerce, Stripe and the server logs looked clean.
  • It didn't fail every time. Plenty of orders went through fine.

The third point is why the earlier attempts failed. A bug that only happens sometimes can pass five checkout tests in a row. And testing plugins one at a time can't find a problem that only appears when two things interact.

Step 1: Test the way customers really buy

I looked at the store's traffic again: most buyers were on phones, on mobile networks. Developers usually test on a fast desktop connection, which is the least realistic way to test a checkout.

So I used the browser's developer tools to throttle the connection to a slow mobile speed, and ran the purchase again and again: add to cart, apply a coupon, change the shipping option, pay with a Stripe test card.

After several attempts, it failed. Same as the customers: no error, just no order. Now it could be studied.

Step 2: Watch what the checkout is actually doing

A WooCommerce checkout isn't one page load. Every time something changes (the shipping method, the address, a coupon), the page sends small background requests to update the order summary and totals. WooCommerce calls these fragments.

With the network tab open on the slow connection, the pattern became clear:

  1. The shopper changed something, and the checkout asked the server for updated totals.
  2. At the same time, a third-party coupon plugin was adjusting the cart on the server.
  3. On a slow connection, the responses arrived late and out of order, and one of them came from a cache rather than the live cart.

The page ended up showing the customer one version of the order while the cart on the server held another.

The cause

When the customer pressed Place order, the checkout and the cart no longer agreed. The order the page was trying to pay for and the order WooCommerce had calculated didn't match, and the payment step quietly failed.

It was the combination that broke checkout:

  • The coupon plugin on its own worked.
  • The caching on its own worked.
  • A fast connection hid the timing problem.

Only a slow connection, a coupon change and a cached fragment together produced the failure. That's exactly why disabling plugins one by one found nothing.

The fix

I rebuilt how checkout handles cart changes:

  • Stopped checkout fragments from being cached. The cart, checkout and account pages, and the background requests they make, now always come fresh from the server.
  • Made the coupon update finish first. The payment step can't run until the cart has finished changing.
  • Replaced the silent failure with a clear message. If the cart changes during checkout, the customer sees what changed and can confirm, instead of being left with a dead button.
  • Tested on slow connections, repeatedly, with coupons, shipping changes and Stripe test cards, until it stopped failing.

The result

Back in analytics, the gap at the payment step closed, and completed orders rose by 18% compared with before the fix. The store didn't change its ads, its prices or its products. It just stopped losing people at the moment they'd already decided to buy.

After the fix, the same funnel comparison became part of the store's regular checks. A sudden drop at one step is the earliest warning a checkout problem gives.

If your WooCommerce checkout is losing orders

Work through these before you give up:

  1. Compare your funnel, not just your sales. Checkout starts, payment step and completed orders: find the step where people disappear.
  2. Test on a slow mobile connection. Throttle the connection in your browser's developer tools and repeat the purchase several times.
  3. Watch the network requests on the checkout page, not only the error log.
  4. Make sure your cache excludes checkout. Cart, checkout and account pages, and WooCommerce's background requests, must never be served from a cache.
  5. Suspect combinations, especially coupon, shipping and payment plugins together, and test them together.
  6. Never let a checkout fail silently. A customer who sees a clear message can fix the problem. One who sees nothing just leaves.

Losing orders and can't see why?

A hidden checkout bug can cost a store a lot of money before anyone notices. If your WooCommerce shop is losing buyers at checkout, I can find the cause and fix it properly. Get in touch.

← Back to writing