News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Remember cart for unlogged users

Started by sandomatyas, August 11, 2022, 06:23:42 AM

Previous topic - Next topic

sandomatyas

For now when I'm logged in, VM stores the current cart in the database and loads when I log out and log in again.
Is it possible to do something similar for unlogged users as well? Like storing the cart in cooke/local storage and when the customer closes the browser and comes back again it would load the cart for him, even when he is not logged in.
Is there maybe a plugin for that?

Studio 42

You can perhaps only set the user id in the Javascript session and get the cart content in ajax using the user id/session id.
This is not 100% safe, but if you only load the cart product list, it's not a real problem