BlogTroubleshootingStorage
The Vendra cart or wishlist is empty after a reload (or the order page is blank)
Where the cart, wishlist, compare list, settings and the demo order are stored, why they can come back empty, and what is expected behaviour rather than a fault.

Vendra keeps the shop state in the browser. Knowing exactly where tells you why it is sometimes gone.
Where the state lives
| What | Storage | Key |
|---|---|---|
| Cart lines (product, colour, size, quantity) | localStorage | vendra-cart |
| Wishlist, compare list (product ids) | localStorage | vendra-wishlist, vendra-compare |
| Settings panel choices | localStorage | vendra-settings |
| Cookie notice dismissed | localStorage | vendra-cookie |
| Promo code entered at checkout | sessionStorage | vendra-promo |
| The demo order placed at checkout | sessionStorage | vendra-order |
localStorage survives a reload and a closed browser; sessionStorage lasts for one tab. Both belong to one origin (scheme, host and port), and to one browser profile.
The cart is empty after a reload
- The origin changed. A cart added on
http://localhost:5173is not visible onhttp://127.0.0.1:5173, on thenpm run previewport, or on your live domain; each is its own storage. Pages opened from disk (file://) are the least predictable: some browsers give every file its own storage or none at all. Use one address, ideally a local web server. - A private window, or site data blocked. Writes fail silently (the engine wraps them in try/catch), so the cart works on the page and is gone on the next load. Try a normal window.
- You just placed the demo order. That is by design: placing the order clears the cart, drops the promo code and opens
order-complete.html. - The settings reset. The panel's reset button removes
vendra-settingsonly; it does not touch the cart.
The order confirmation page is blank
order-complete.html reads vendra-order from sessionStorage, which the checkout wrote in the same tab. Opening the page directly, in a new tab, or after closing the browser finds nothing to show. Go through the checkout in one tab and it fills in.
The wishlist shows fewer products than I added, or compare refuses a fifth
Compare keeps at most four products; adding a fifth drops the oldest. The wishlist has no limit. Both lists store ids, and the pages look each id up in the catalogue of the page: a product removed from catalog.js disappears from the lists on the next build.
The React edition and the HTML edition do not share a cart
Expected when they are on different origins, as on the live demo, where the React edition is under /react/ of the same host and therefore does share it. Same origin, same keys, same cart.
Checking the storage
In the browser's developer tools, open Application (Chrome, Edge) or Storage (Firefox), then Local Storage for your origin, and look for the keys above. From the console, Vendra.cart.items() prints the lines the engine sees and Vendra.cart.clear() empties them.
None of this is meant for production. When the shop goes live, src/js/store.js is replaced by calls to your backend, and the cart follows the customer's account instead of the browser.