Shopping cart state saved in database or cookie for guests?

wolfiton

wolfiton

Posted on April 11, 2020

Shopping cart state saved in database or cookie for guests?

Hi, everyone

How would you save the shopping cart of a guest user that has left the page and wants to come back later to finish the checkout? (a database with an auto-generated UUID or create a profile with nulls for username and password and update once they create an account)

Avoid using local storage because if they switch to another device all their cart will be empty but it will contain items on the device they used(EX: has 3 items on PC but 0 on mobile for the same user).

Even though these are not very sensitive information like a user's credit card or a user's address some guest shoppers may feel like their privacy is invaded by such features. To save their cart to a database, but at the same time, they would feel that your website is lacking if they come later and find an empty cart.

Also leaving the e-commerce site may come down to some problems they didn't expect like, an electrical problem or an urgent problem came up.

How are you dealing with these dilemmas?(problems)

Thanks for any opinions and discussions on this subject

💖 💪 🙅 🚩
wolfiton
wolfiton

Posted on April 11, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related