The quantity changes when switching from the cart screen to the checkout

Topic summary

A bug occurs when navigating between cart and checkout screens in a Shopify theme.

Steps to reproduce:

  • Add a product with options to cart
  • Proceed to checkout
  • Press browser’s back button to return to cart

Issue: The product quantity and selected options become misaligned or display incorrectly after returning from checkout.

Two screenshots are provided showing the misalignment between the cart display and what appears after navigation. This appears to be an unresolved technical issue with no solutions or responses yet posted.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.
  1. Add a product with options to the cart.

  2. Go to the checkout screen.

  3. Press the browser’s ‘Back’ button, and the quantity and option product are misaligned."