Weird membership basket problem "Basket does not belong to customer"
Hey, I'm back ;-)
We are experiencing a weird problem with persistent shopping baskets and user login/logout.
1. login and put something in shopping basket. 2. close the browser and wait 20 minutes (=default session timeout) 3. start a new session, the products will still be in the shopping basket (persists by cookie I guess) 4. go to checkout and login/register with another user (not the one that put the product in the shopping basket in the first place) 5. we get an error "Basket does not belong to customer"
Does anybody know a fix for this? Maybe I can change the Customer for the Basket in some way?
Weird membership basket problem "Basket does not belong to customer"
Hey, I'm back ;-)
We are experiencing a weird problem with persistent shopping baskets and user login/logout.
1. login and put something in shopping basket.
2. close the browser and wait 20 minutes (=default session timeout)
3. start a new session, the products will still be in the shopping basket (persists by cookie I guess)
4. go to checkout and login/register with another user (not the one that put the product in the shopping basket in the first place)
5. we get an error "Basket does not belong to customer"
Does anybody know a fix for this?
Maybe I can change the Customer for the Basket in some way?
Thank you.
Regards.
Kris
Hello Kris,
Do you have a stacktrace for the error?
The Customer is a property on the basket PurchaseOrder. So you could maybe change it there.
More correct could be to catch the exception, and in that case clear the basket.
Kind regards,
Jesper
is working on a reply...