Cart appears empty after using browser back button [Narrative Theme]

Tim_We
New Member
1 0 0

Hi everyone, 

I am currently having some trouble with the cart in the Narrative Theme. I add a product at the product page (everything works fine here) and then hit the browser back button coming back to the start page, the cart appears to be empty till reloading the page. This behavior seems to fix itself after the start page is reloaded once with an item in the cart.

Steps to reproduce: Open a new incognito tab -> navigate to https://mr-coffeebean.de -> navigate to a product-page like https://mr-coffeebean.de/products/creme-caramel -> add product to cart (product appears in cart) -> use browser back button -> cart appears to be empty [Expected: product appears in cart] -> reload page -> product appears in cart -> remove product from cart -> repeat process from navigate to product-page -> works as expected.

Tested in newest version of Chrome, Edge, Firefox and Chrome for Android, all behave the same. 

I was wondering if you could provide any insight on how exactly the cart is working. I looked into it a little and saw some infos are stored in Local Storage and some in cookies but I have no idea whats causing this issue.

Thanks in advance, hope someone can help

Cheers,

Tim

0 Likes

Hi Tim,

This appears to be a glitch in the default theme itself. I'll look over it and see what I can find — if I can locate what's causing the error I'll be sure to let you know.

Since this is a theme by Shopify I'd recommend contacting Shopify support and making them aware of the problem. 

Thanks,

Kyle

Let's get Shopify figured out together. Get live USA-based customer service for your current or upcoming web project.
Email: hello@freshnarrative.io | tel: (443) 345-8162
Baltimore, Maryland, United States
We offer free and paid Shopify support.
Monday - Friday | 9 AM — 5 PM EST
0 Likes