I think this relates to your problem with customer management. You should not need to empty the basket on customer log out as your customers should not share baskets (unless you are trying to ditch all items in the respective customer basket) then Basket.Empty() would do the trick.
How to clear Basket when logout
Hi Rusty, Currently I implement this code to clear basket when login/logout
if (memberStatus != null && memberStatus.Username != login.UserName) {
But sometime, it show error in this image. How can I clear basket when login/logout with other customer?
I try this.Basket.Empty() is ok?
@Nguyen,
I think this relates to your problem with customer management. You should not need to empty the basket on customer log out as your customers should not share baskets (unless you are trying to ditch all items in the respective customer basket) then Basket.Empty() would do the trick.
Also, how are you getting your basket reference?
Using the extensions, it should be:
Please can you mark the above answer as solved if the it works for you.
is working on a reply...