Last added item in cart disappears when returning to previous page

Topic summary

Users of Shopify’s Capital theme are experiencing a cart synchronization issue where the most recently added item disappears when navigating back to the previous page, though it reappears when continuing to browse forward.

Technical Details:

  • The cart popup is also failing to display when items are added
  • Console error identified: Uncaught (in promise) TypeError: window.wetheme.drawer is undefined in theme.js

Diagnosis:
The error suggests the Capital theme may not be installed correctly, with missing or improperly loaded JavaScript components.

Recommended Action:
Contact the Capital theme support team to resolve the installation issue.

Status: Multiple users report the same problem; no resolution provided yet in the thread.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

I recently switched to the capital theme in shopify, but I encountered a problem. When I add a product to the cart, it is added correctly, but once you return to the previous page, the last added item is gone. However, when I keep browsing, it reappears in the cart. My customers have the same problem.

Does anyone have any idea how to fix this?

url: https://www.milk-bar.be/

Hi MilkBar1,

I checked your website and yes I do notice this issue you mentioned. Also your Cart popup is also not showing up currently.

Whenever you add an item to the cart, the cart popup is supposed to show up.

The Error => (Uncaught (in promise) TypeError: window.wetheme.drawer is undefined in theme.js)

Looks like capital theme has not been installed correctly. I will suggest that you contact Capital theme support team to fix this.

Hello,

I have the same problem, when I add a product in my cart and go back, the added products disappear.

My website is: https://orion-nedkov.bg/

Can you please help me fix it?