Solving the 'Empty Cart' Mystery: A BigCommerce Checkout Troubleshooting Guide

One of the most frustrating issues an e-commerce merchant can face is when customers can't complete their purchase. A common symptom of this is the dreaded 'Your cart is empty' message appearing at checkout, even after items have been successfully added to the cart. This community thread from the BigCommerce forum provides an excellent real-world example of diagnosing and resolving such a critical problem, highlighting key areas for troubleshooting.

The Problem: Cart Disappearing at Checkout

The thread author, Michael Lanigan, reported a critical issue on one of his BigCommerce storefronts: customers were adding items to their cart, proceeding to checkout, only to be met with an 'Your cart is empty' page. Curiously, if they went back and tried again, a second item would be added to the cart, but the checkout page would still display an empty cart. This issue was specific to one storefront, while another operated normally, and had only started recently.

Initial Troubleshooting Steps & Diagnostic Clues

Sri Vathson, a BigCommerce expert, provided a comprehensive checklist of initial areas to investigate:

  • Theme / Recent Changes: Any recent updates to themes, scripts, or apps can disrupt session persistence.
  • Custom Scripts or GTM: Scripts interacting with cookies, local storage, or redirect logic can 'reset' the cart.
  • Domain / URL Mismatch: Inconsistent domain setup (e.g., http vs https, www vs non-www) between storefront and checkout can drop sessions.
  • Third-Party Apps: Especially those modifying cart behavior (e.g., cart drawers, bundling apps).
  • Cookies / Browser Test: Testing in incognito mode or different browsers can help isolate client-side issues.
  • Channel/Storefront Config: Comparing settings between working and non-working storefronts is crucial.

A quick isolation technique suggested was to temporarily switch the affected storefront to a default BigCommerce theme like Cornerstone. If the issue resolves, it points to a theme or customization conflict.

Uncovering the Root Cause: Domain Mismatch

After trying some suggestions, Michael discovered a critical clue: the product page URL included 'www' (e.g., https://www.boatcheckwa.com.au/hin-numbers-priced-from/), but upon clicking 'checkout' or 'view cart', the URL dropped the 'www' (e.g., https://boatcheckwa.com.au/cart.php). This 'www' vs non-'www' inconsistency between the product pages and the cart/checkout pages was identified as a strong candidate for causing the session to drop.

Further investigation revealed that the problematic storefront used a third-party SSL certificate, while the working storefront used BigCommerce's free SSL, leading Michael to question if the third-party SSL was contributing to the URL mismatch.

The Solution: Consistent Domain Configuration

Sri Vathson confirmed that www.domain.com and domain.com are technically different hostnames. If the cart session cookie is set for one and the checkout page loads on the other, the cookie fails to persist, leading to an empty cart. Key recommendations included:

  • Ensuring the primary domain is consistent (always www or always non-www) in BigCommerce storefront domain settings.
  • Checking DNS and redirect rules for any forced redirects.
  • Verifying SSL configuration, especially for third-party certificates.
  • Ensuring all store, secure, and checkout URLs resolve consistently.

The ultimate solution found by Michael was to adjust the 'www redirect' setting within the specific channel settings for the affected storefront. He noted the confusion caused by this setting being present in multiple locations (main site settings vs. individual channel settings), highlighting the importance of checking all relevant configuration areas in a multi-storefront setup.

Why Cart Persistence Breaks: A Deeper Dive

Solomon Lite provided an excellent summary, reinforcing that this specific symptom is almost always a breakdown in cart persistence between the storefront and checkout sessions. Common causes include:

  • Cookie/Session Issues: Often triggered by cookie consent changes, browser privacy updates, or domain mismatches.
  • Checkout Domain or Redirect Mismatch: Inconsistent root domain configuration preventing cart token transfer.
  • Script or App Conflict: Third-party apps interfering with cart persistence.
  • CDN / Caching Issue: Less common, but outdated cached assets can cause intermittent API failures.

The 'second item gets added' behavior strongly indicates that the original cart session isn't recognized, prompting the system to create a new cart instance upon retry.

This thread serves as a valuable resource for BigCommerce merchants, illustrating how a seemingly complex checkout issue can often be traced back to fundamental domain and session configuration, particularly in multi-storefront environments.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools