Cart items disappear on refresh

Cart items disappear on refresh

Cart items disappear on refresh

Test cart persistence on your published site. The two sample cart rows shown by Framer Preview are design placeholders and are not saved purchases.

Test persistence

  1. Open one published domain in a normal browser window.

  2. Add a product and confirm its real name, options, price, and quantity in the cart.

  3. Reload that page and reopen the cart.

  4. Navigate to another page on the same domain and reopen it again.

  5. Change quantity, then remove the item and confirm the empty state.

Check the domain and browser

Cart storage is scoped to the browser origin. A cart on a framer.website demo does not automatically transfer to your custom domain, and www and non-www hosts can have separate storage. Use a consistent storefront URL.

Private browsing, storage restrictions, or clearing site data can change persistence behavior. Compare with a normal browser window before changing the implementation.

Check runtime and storage

On the published page, inspect window.__tgc after commerce components mount. Use the browser’s Application or Storage panel to inspect your site’s saved cart data before and after reload. Do not assume a runtime exists or is healthy because the drawer itself opens.

If the runtime or configuration is missing, open the connected plugin from Canvas, check custom-code permissions, publish, and repeat the test. Keep the existing cart bindings when customizing the row and drawer.