Jump to content

Preserving cart content between sessions


Guest

Recommended Posts

Hi everyone.

This is my first post on the forum. I'm happy to be here.

I was wondering if there is a way to share cart content between sessions: I noticed that, every time I logout, I loose all items added to the cart. A further investigation on the database revealed that, when a user logs in, a new row is added to ps_cart table.

Does anyone know if it's possible to prevent creating a new cart every time you log in? Can you use only one "permanent" cart per user?

I'm asking about version 1.7.

Edited by matteo.bini@mia (see edit history)
Link to comment
Share on other sites

It turns out there's an option for that.

Go to the Dashboard, click on Shop Parameters, then select Customer Settings and switch on YES under Re-display cart at login.

Silly me.

Link to comment
Share on other sites

  • 4 years later...
  • 2 years later...
On 11/27/2018 at 2:37 PM, Guest said:

It turns out there's an option for that.

Go to the Dashboard, click on Shop Parameters, then select Customer Settings and switch on YES under Re-display cart at login.

Silly me.

"Re-display cart at login" will only work if a customer don't add any item into the cart before logging in.
If a registered customer have a saved shopping cart, and on the next visit add an item into the cart and then log in, the saved cart will be lost and gone.

The module “Merge Carts – Prevent Lost Shopping Carts on Login” will fix this and merge the old saved cart with the newly created one.
 

Get the module — The module “Merge Carts” is available at:
https://addons.prestashop.com/en/social-login-connect/96287-merge-carts-prevent-lost-shopping-carts-on-login.html

Demo — You can try the demo at:
https://www.bulletproof.se/_demos/mergecarts/
(btw, the demo is darn easy to use. It's got some cool features, and it's super easy to create an account and log in).

Video — I explain the logic of how PrestaShop handles carts and how the module “Merge Carts” will fix it in this video:
https://youtu.be/mXKQUnPAjw8

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...