Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Checkout button in cart not working: how to find and fix it

CNV-162High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

The checkout button is the main button on your cart page or cart drawer (the slide-out mini cart). It is often labelled "Checkout", "Proceed to checkout" or "Pay now". This issue means that clicking it does not take the shopper to the checkout page.

Why it costs you leads or sales

Where the journey breaks
  1. Ad clickVisitor lands on product page
  2. Add to cartItem is in the cart
  3. Checkout buttonClick does nothing or errors
  4. PaymentNever reached
  5. Purchase trackingNo event sent

The shopper does everything right, but the click on the checkout button leads nowhere.

Orders before and during a broken buttonExample numbers
Orders before and during a broken button (example)Before the break: 20 orders per day; Button broken: 2 orders per day; After the fix: 20 orders per day081520220Before the breakButton brokenAfter the fixorders per day

Example: illustrative numbers for a small store. Traffic stays the same, but orders drop once the button stops working.

How to check if your site has it

Test the button by hand
  1. Open a private window

    Use a private or incognito window so extensions and logged-in sessions do not hide the problem.

  2. Add a product and open the cart

    Test both the cart page and the cart drawer if your theme has one.

  3. Open the browser console

    Press F12 (or Cmd+Option+J on Mac) and open the Console tab. Red errors when you click are strong clues.

  4. Click the checkout button

    Note what happens: nothing, a spinner, an error, a redirect to the wrong page.

  5. Repeat on mobile and other browsers

    Try a real phone, or the device toolbar in Chrome DevTools, plus Safari and Firefox. Some bugs only show on one.

  6. Try different carts

    Test with one item, several items, a discount code and a variant product. Some bugs depend on the cart contents.

What you see and the likely cause
SymptomLikely cause
Nothing happens on clickJavaScript error, or an invisible element covering the button
Button looks greyed outTerms checkbox required, or a script that disabled it
Spinner never endsFailed network request or a blocked script
Lands on 404Wrong link, changed checkout URL or a redirect rule
Lands back on the cartRedirect loop, minimum order rule or stock check
Works on desktop, fails on mobileSticky bar or cookie banner covering the button
A covered button looks fine but cannot be clicked

An overlay, banner or sticky bar sits on top of the checkout button and swallows the click.

How to fix it

General fix order
  1. Read the console error

    A script name in the error often points to the theme or app that broke the button.

  2. Disable recent changes

    Turn off the last app, plugin, theme edit or tag you added, then retest. Do this on a staging copy if you can.

  3. Check for covering elements

    In Inspect, hover the button area. If another element highlights, hide or move it (cookie banners, chat widgets, sticky bars, popups).

  4. Check the link or form action

    The button should link to your checkout URL or submit the cart form to it. Fix typos, old URLs and redirect rules.

  5. Retest with real carts

    Test single items, variants and discount codes on desktop and mobile.

Fix by platform
  1. Find the conflict

    For WooCommerce, go to Plugins and deactivate cart, checkout, caching or optimisation plugins one at a time, retesting after each. Switch to a default theme briefly to rule out the theme.

  2. Check the checkout page

    In WooCommerce > Settings > Advanced, confirm the Checkout page is set to a page that contains the checkout block or the [woocommerce_checkout] shortcode.

  3. Clear caches and exclude cart pages

    Purge your caching plugin and make sure the cart and checkout pages are excluded from page caching and from JavaScript delay or combine options.

A checkout button that works without JavaScripthtml
<form action="/checkout" method="get">
  <button type="submit" class="checkout-button">Checkout</button>
</form>
Keep banners from covering the buttoncss
.checkout-button {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
Cart checkout button

Broken

  • Click does nothing or errors
  • Cookie banner or widget covers the button on mobile
  • Script conflict stops the click
  • Shoppers leave with full carts

Fixed

  • Click opens checkout every time
  • Nothing sits above the button
  • Button works even if a script fails
  • Carts turn into orders

How to confirm it's fixed

Confirmation checklist
  • The button opens the checkout page on desktop Chrome, Safari and Firefox
  • It works on a real phone, in both portrait and landscape
  • It works from both the cart page and the cart drawer
  • It works with one item, several items, a variant and a discount code
  • The console shows no red errors when you click
  • Checkout shows the right items and totals
  • Your analytics shows a begin-checkout event (check in GA4 DebugView or your platform's debug tool)

How to prevent it happening again

Prevention habits
  • Test cart to checkout after every theme, plugin, app or tag change
  • Make changes on a staging copy or theme duplicate first
  • Keep a short list of what was changed and when
  • Re-test on mobile after any banner, popup or chat widget change
  • Exclude cart and checkout pages from caching and script delay
  • Run an automated check on a schedule so you hear about failures before customers do
How a silent break unfolds
  1. Day 1

    An app update adds a script that conflicts with the cart button.

  2. Day 2

    Orders dip, but traffic looks normal, so nobody notices.

  3. Day 5

    A customer emails to say they cannot check out.

  4. Day 5

    The script is removed and the button works again.

How FunnelGuard handles this

Questions people ask

Why is my checkout button not working in the cart?

The most common causes are a JavaScript error, an element such as a cookie banner or chat widget covering the button, a wrong link, or a conflict with a recent app, plugin or theme change. Open the browser console, click the button and look for red errors, then inspect what sits over the button.

Why does the checkout button only fail on mobile?

Mobile layouts often place sticky bars, cookie banners or chat bubbles over the button. Some scripts also behave differently on touch screens. Test on a real phone and use Inspect in Chrome DevTools' device mode to see what overlaps the button.

How do I test my checkout button?

Open a private window, add a product, go to the cart and click the checkout button with the console open. Repeat on mobile, in other browsers and with different carts. For regular testing, a synthetic monitor can repeat this journey on a schedule.

Why does the checkout button send me back to the cart?

This usually points to a redirect loop, a minimum order or stock rule, or a session problem that makes the checkout think the cart is empty. Check redirect rules, cart settings and whether caching serves a stale cart page.

Can a cookie banner break the checkout button?

Yes. A banner or overlay that sits above the button can swallow clicks, especially on small screens. Move it, resize it or fix its stacking order so the button stays clickable.

Can Google Tag Manager stop my checkout button working?

Yes, if a custom HTML tag or click listener throws an error or blocks the default click action. Use Tag Manager Preview mode, pause suspect tags and retest the button.

How quickly will I know if my checkout button breaks?

With manual testing you may not know for days. FunnelGuard runs the click step on a schedule and alerts you after a second-region re-check. How fast depends on your plan's check frequency, with daily checks on the Free plan.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: click step.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.