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
- Ad clickVisitor lands on product page
- Add to cartItem is in the cart
- Checkout buttonClick does nothing or errors
- PaymentNever reached
- Purchase trackingNo event sent
The shopper does everything right, but the click on the checkout button leads nowhere.
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
Open a private window
Use a private or incognito window so extensions and logged-in sessions do not hide the problem.
Add a product and open the cart
Test both the cart page and the cart drawer if your theme has one.
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.
Click the checkout button
Note what happens: nothing, a spinner, an error, a redirect to the wrong page.
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.
Try different carts
Test with one item, several items, a discount code and a variant product. Some bugs depend on the cart contents.
| Symptom | Likely cause |
|---|---|
| Nothing happens on click | JavaScript error, or an invisible element covering the button |
| Button looks greyed out | Terms checkbox required, or a script that disabled it |
| Spinner never ends | Failed network request or a blocked script |
| Lands on 404 | Wrong link, changed checkout URL or a redirect rule |
| Lands back on the cart | Redirect loop, minimum order rule or stock check |
| Works on desktop, fails on mobile | Sticky bar or cookie banner covering the button |
An overlay, banner or sticky bar sits on top of the checkout button and swallows the click.
How to fix it
Read the console error
A script name in the error often points to the theme or app that broke the button.
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.
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).
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.
Retest with real carts
Test single items, variants and discount codes on desktop and mobile.
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.
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.
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.
Test with the theme unchanged
In Online Store > Themes, preview a default theme such as Dawn with the same cart. If it works, your live theme or an app is the cause.
Review cart apps
Cart drawer, upsell and discount apps often change the checkout button. Disable them one by one under Settings > Apps and sales channels, or in the theme editor's App embeds.
Check custom code
Look in the theme's cart template and cart drawer files for edited buttons. The button should submit the cart form with name="checkout" or link to /checkout.
Use Preview mode
Open Tag Manager Preview, click the checkout button and see which tags and triggers fire.
Look for click triggers that block
Custom HTML tags or click listeners that call preventDefault or break the page script can stop the button. Pause suspect tags and retest.
Fix or remove the tag
Correct the script, or add an exception so it does not run on cart pages.
Check the button link
In the Designer, select the checkout button and confirm its link or the Ecommerce cart settings point to the checkout page.
Review custom code
Check Project Settings > Custom Code and page-level embeds for scripts that hide or intercept the button.
Republish
Publish the site again and test on the live domain, not only in preview.
Check the order form or cart step
In your funnel or store, open the page with the cart or checkout button and confirm the button action or link goes to the right next step.
Remove conflicting custom code
Check custom JavaScript or CSS in page settings for rules that hide or overlay the button.
Preview and test live
Test the published page on mobile and desktop, not only the builder preview.
Check the cart page elements
In the Wix Editor, open the Cart page and check that the checkout button is not overlapped by other elements or hidden on mobile.
Review Velo or custom code
If you use Velo, check page code for handlers that disable the button. Also check Settings > Custom Code.
Publish and retest
Publish and test on the live site on desktop and mobile.
Test without custom code
Remove or disable entries in Settings > Developer Tools > Code Injection and retest the cart.
Check extensions
Disable third-party extensions or popups that appear on the cart page.
Confirm checkout is enabled
In Commerce settings, confirm checkout is set up and the store is not in a state that blocks orders.
Use a real link or form submit
Make the button a normal link or a form submit so it works even if a script fails. Add JavaScript only as an enhancement.
Check z-index and overlays
Make sure fixed banners and widgets do not sit above the button, and that pointer-events are not set to none on the button.
Fix server redirects
Check redirect rules and middleware so the checkout URL returns 200 for a cart with items.
<form action="/checkout" method="get">
<button type="submit" class="checkout-button">Checkout</button>
</form>.checkout-button {
position: relative;
z-index: 10;
pointer-events: auto;
}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
- 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
- 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
Day 1
An app update adds a script that conflicts with the cart button.
Day 2
Orders dip, but traffic looks normal, so nobody notices.
Day 5
A customer emails to say they cannot check out.
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.