Forum

Thread tagged as: Shop

The items remain in the cart form one user when another logs in

OK, so I know it is not that likely that two users will be using the same computer like I am when testing, but it could happen. If I log in and add an item to the cart, then log out and log back in as a new member, the same item appears in the cart. It is nice to have the item stay there if you log out and log back in with the SAME account, but not a different one!

Is there something that can be done about this?

Lisa Morena

Lisa Morena 1 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The cart is attached to the browsing session.

You could use perch_shop_empty_cart(); when the user logs out