Zen Cart Logo
Forums / Managing Customers and Orders / Saved cart items from previous session

Saved cart items from previous session

Locked

Views: 8,638

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
14 Jun 2007, 10:45 AM
#1
loque avatar

loque

New Zenner

Join Date:
Dec 2006
Posts:
12
Plugin Contributions:
0

Saved cart items from previous session

Hi All,

I am sure this has been detailed somewhere and for some reason I cant find it - even think I have read an info doc on this before!

I am looking to stop my install of zencart from remembering a users previous cart items, its seems to be an issue with the shop I am working on and I can see how it might confuse and possibly annoy customers, as well as suprise them (when they go to checkout and login their cart has previous items added to it from an old session).

So does anyone know how to do this? Sorry again if I am digging up something frequently answered here I really did search hard :¬)

Cheers!

17 Aug 2007, 6:16 PM
#2
katandmouse avatar

katandmouse

New Zenner

Join Date:
Aug 2007
Posts:
47
Plugin Contributions:
0

Re: Saved cart items from previous session

Ditto. Everything I can find that was already posted is outdated. As it stands this is definitely a problem in the design.

If I shop, add something to my cart, get past the register or log in page but don't check out, my cart items are saved. When I return to the site and decide to purchase something now, I add to my cart. But I'm not logged in yet so I only see what I just added. When I get past the login page, then the total changes because now it knows who I am and adds the item I had in my cart from last time. But there is no warning. I can't even see what's in my cart on the checkout page, so all I see is a bigger total than I was expecting. I may even complete my purchase and then get shocked by the total and get mad at the vendor for cheating me.

There is a simple correction they all should have done. After you log in, it should say at the top of the page: "Welcome back, John Doe. We see you have "xyz" saved in your cart from your last visit. Would you like to purchase it now?"
And then give them the ability to either add or subtract from the cart depending on how it's programmed.

For now, I don't want anything saved.

Can someone please post a current fix for this. THanks.

17 Aug 2007, 6:49 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Saved cart items from previous session

To reset the shopping cart you can use:
$_SESSION['cart']->reset(true);

Now you just need to decide where to place that ... :cool:

The login is a nice location ... however, if I just spend 20 minutes shopping in your store and adding to my cart and then login ... I am going to be really ticked off that you just reset my shopping cart ... :flex:

17 Aug 2007, 10:10 PM
#4
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Saved cart items from previous session

It seems to me that resetting $_SESSION['cart'] is not the solution. The question is about about (optionally) preventing that the (old) database cart is added to the (current) session cart at login.

18 Aug 2007, 12:59 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Saved cart items from previous session

Aha! a clue ... :cool:

Zen Cart v1.3.8, coming soon to a computer near you, is actually smarter than the average bear ...

In the Configuration ... Stock ... will be a neat little feature for:

Show Notice of Combining Shopping Cart on Login
When a customer logs in and has a previously stored shopping cart, the products are combined with the existing shopping cart.

Do you wish to display a Notice to the customer?

0= OFF, do not display a notice
1= Yes show notice and go to shopping cart
2= Yes show notice, but do not go to shopping cart

18 Aug 2007, 7:36 AM
#6
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Saved cart items from previous session

Ajeh:

Show Notice of Combining Shopping Cart on Login
When a customer logs in and has a previously stored shopping cart, the products are combined with the existing shopping cart.

Do you wish to display a Notice to the customer?

0= OFF, do not display a notice
1= Yes show notice and go to shopping cart
2= Yes show notice, but do not go to shopping cart

Wow :blink:

:thumbsup:

18 Aug 2007, 3:44 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Saved cart items from previous session

We do aim to please ... :cool:

20 Aug 2007, 5:29 PM
#8
loque avatar

loque

New Zenner

Join Date:
Dec 2006
Posts:
12
Plugin Contributions:
0

Re: Saved cart items from previous session

Thanks! You guys rock!

And thanks to the 'subscribing to threads' function =], my friend is going to be super happy about this!

Big love! =D
Loque

13 Dec 2007, 11:40 PM
#9
katandmouse avatar

katandmouse

New Zenner

Join Date:
Aug 2007
Posts:
47
Plugin Contributions:
0

Re: Saved cart items from previous session

Version 1.3.8 is out. Can we find this functionality in this version?

13 Dec 2007, 11:47 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Saved cart items from previous session

katandmouse:

Version 1.3.8 is out. Can we find this functionality in this version?

See Ajeh's post #5 above ...

18 Dec 2007, 1:57 AM
#11
veronika7747 avatar

veronika7747

Zen Follower

Join Date:
Nov 2007
Posts:
270
Plugin Contributions:
0

Re: Saved cart items from previous session

Ajeh:

We do aim to please ... :cool:

I have tried both, "1" and "2" , but I do not get any message, and it does not take me in the shopping cart (when I left items in).
Do I have to set something else as well? :unsure: I have 1.3.8
Tx

18 Dec 2007, 2:03 AM
#12
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Saved cart items from previous session

Where can we see this?

18 Dec 2007, 2:15 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Saved cart items from previous session

What addons/contributions do you have installed?
Was this an upgrade? If so, this discussion should be in the upgrade area, not in this thread.

18 Dec 2007, 2:15 AM
#14
veronika7747 avatar

veronika7747

Zen Follower

Join Date:
Nov 2007
Posts:
270
Plugin Contributions:
0

Re: Saved cart items from previous session

Kim:

Where can we see this?

test site is at: http://store.annron.com
Right now Stock Show Notice is set to "1"

Tx

18 Dec 2007, 2:22 AM
#15
veronika7747 avatar

veronika7747

Zen Follower

Join Date:
Nov 2007
Posts:
270
Plugin Contributions:
0

Re: Saved cart items from previous session

DrByte:

What addons/contributions do you have installed?
Was this an upgrade? If so, this discussion should be in the upgrade area, not in this thread.

No upgrade, clean install.
I have the following add ons:
Admin Profiles
Add Customer from Admin
CAPTCH ttf
Image Handler 2
CEON Manual cc
CC by Fax
Minimum Order
Return Authorization
Short Description

I think that's all
Oh am using cheryy_zen template

Tx

18 Dec 2007, 3:05 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Saved cart items from previous session

Seems to work just fine for me.

  1. go to site: http://store.annron.com/
  2. add 10 items to the cart (to get over the $50 min you've set before checkout is allowed)
  3. start checkout
  4. create an account
  5. during first stage of checkout, logoff
  6. add another 10 items (different or same, doesn't matter) to the cart, to get over $50 min
  7. click Checkout
  8. login
  9. the shopping cart page shows, with a notice at the top saying "NOTICE: For your convenience, your current shopping cart has been combined with your shopping cart from your last visit. Please review your shopping cart before checking out."

So ... I'm not sure why you think it's not working ...

18 Dec 2007, 3:36 AM
#17
veronika7747 avatar

veronika7747

Zen Follower

Join Date:
Nov 2007
Posts:
270
Plugin Contributions:
0

Re: Saved cart items from previous session

DrByte:

Seems to work just fine for me.

  1. go to site: http://store.annron.com/
  2. add 10 items to the cart (to get over the $50 min you've set before checkout is allowed)
  3. start checkout
  4. create an account
  5. during first stage of checkout, logoff
  6. add another 10 items (different or same, doesn't matter) to the cart, to get over $50 min
  7. click Checkout
  8. login
  9. the shopping cart page shows, with a notice at the top saying "NOTICE: For your convenience, your current shopping cart has been combined with your shopping cart from your last visit. Please review your shopping cart before checking out."

So ... I'm not sure why you think it's not working ...

How far in the checkout do you have to get??
Right now I have this in the shopping cart:
123 game
$14.59 $72.95

and when I logged in again, I stayed in the "home page: and I don't see any notice. Where should the notice be??

18 Dec 2007, 3:45 AM
#18
veronika7747 avatar

veronika7747

Zen Follower

Join Date:
Nov 2007
Posts:
270
Plugin Contributions:
0

Re: Saved cart items from previous session

Veronika7747:

How far in the checkout do you have to get??
Right now I have this in the shopping cart:
123 game
$14.59 $72.95

and when I logged in again, I stayed in the "home page: and I don't see any notice. Where should the notice be??

I should have mentioned that I logged in with an account (not as a guest), than aborted the checkout....

18 Dec 2007, 3:54 AM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Saved cart items from previous session

I'm not sure what you're doing differently.

Last time I was on your site (45 min ago), I had left 10 items in my cart, without doing a checkout.
So, I just came back. I added 5 new items to the cart.
Then I clicked the Login button, (I had used the Checkout button before), and it logged me in and immediately took me to the shopping cart, showing me the "cart has been combined" notice, as expected.

You have to have something "new" in your cart before logging in ... or else the message won't show, because then it's pointless.

18 Dec 2007, 4:02 AM
#20
veronika7747 avatar

veronika7747

Zen Follower

Join Date:
Nov 2007
Posts:
270
Plugin Contributions:
0

Re: Saved cart items from previous session

Veronika7747:

How far in the checkout do you have to get??
Right now I have this in the shopping cart:
123 game
$14.59 $72.95

and when I logged in again, I stayed in the "home page: and I don't see any notice. Where should the notice be??

DrByte:

I'm not sure what you're doing differently.

Last time I was on your site (45 min ago), I had left 10 items in my cart, without doing a checkout.
So, I just came back. I added 5 new items to the cart.
Then I clicked the Login button, (I had used the Checkout button before), and it logged me in and immediately took me to the shopping cart, showing me the "cart has been combined" notice, as expected.

You have to have something "new" in your cart before logging in ... or else the message won't show, because then it's pointless.

Why is it pointless? If I logged out before completing the checkout and come back in couple days, I would like to know that there is something in my cart before I start putting other items in......
I thought that was the whole point .... to see when I log in again that I left something in... and if I want to complete the purchase just check out or if I neeed more, to continue shopping.