clear cart Data and recently viewed data when customer logs out

Highlighted
New Member
10 0 0

Hi,

 

I followed  this link : https://github.com/lucky110209/shopify-recent-viewed-products,  in order to add the recently viewed items and add items to cart functionality which I was reading from my Java endpoints. But there is this issue that I am facing. Lets say I logged in with user A and viewed some items and add some items in my cart and then I logged out.  Now when I logged in with User B, he can see the same items added in cart and also same recently viewed items. Could you please help me deleting the cart items and recently viewed items when user logged out.

 

 

Thanks and regards

 

0 Likes