[checkout] Empty Cart after log off
ominous2003
Joined: 2009-12-14
Posts: 2 |
![]() |
Hi, Gallery URL = http://www.pondekas.com.au/Gallery/main.php |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
Quote:
Is there any way to keep the contents of the cart between different logon sessions? Not really. When you log off, your session is wiped from the DB, taking the cart contents with it. When you log in again you start a new session but your old cart contents are long gone. You'd have to rewrite the checkout code to store the cart contents in a separate table, keyed by userId, except for guests, who all share the same userId but have different carts. |
|
ominous2003
Joined: 2009-12-14
Posts: 2 |
![]() |
Ok, not the answer I was hoping for but thank you for the explanation and the quick response. |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
Actually there's another avenue you could explore - you could change the logout controller not to reset the session and just change the user credentials back the anonymous user. I haven't explored that possibility. It would mean changing core code, so you'd have to do it to your own installations. |
|