Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / remove products from cart if no purchase

remove products from cart if no purchase

Locked

Views: 688

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
10 Nov 2010, 8:12 PM
#1
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

remove products from cart if no purchase

Hi,

I have been looking through the forum but cannot seem to find an answer. At present, if a customer add products to the cart, and don't buy, the cart remembers these products. So when the customer logs in next, and want to buy something, the previous products selected but not bought also show up. How can set the cart NOT to remember products once the customer has logged out? Or am I missing really simple here?

Thanx!

10 Nov 2010, 10:45 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: remove products from cart if no purchase

How can set the cart NOT to remember products once the customer has logged out?
Why??

This is a feature for your customers as they may be interrupted and later come back and continue

11 Nov 2010, 9:36 AM
#3
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

Re: remove products from cart if no purchase

Hi, not really answering my question?

It has been a request from the customer, therefore I am trying to find a solution.

11 Nov 2010, 2:02 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: remove products from cart if no purchase

You would need to comment out the restore of the shopping cart ...

If you do a search in the Tools ... Developers Tool Kit ... in the bottom input box for:

$_SESSION['cart']->restore_contents(); 

you can see all of the affected files ...

Comment this out by changing them to:

// $_SESSION['cart']->restore_contents(); 

and now the old cart will not be saved ...

NOTE: Do suggest to your client that some customers come into a shop and add Products to their cart and then return a few hours/days later to complete the order ... not having this feature, as kobra has suggested, can be a problem to them ...

16 Nov 2010, 8:00 AM
#5
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

Re: remove products from cart if no purchase

Hi Ajeh,

Thanks for the reply. I did mention this but they are insistent. At least it seems it will be an easy fix if it does happen that they get a backlash and want it up again. The things we do for money...:D

16 Nov 2010, 2:03 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: remove products from cart if no purchase

No doubt ... might mention to them ... I would be a ticked off customer ... nothing I love more than to login the same day or a week later and have things I liked in the cart ... :cool:

17 Nov 2010, 12:21 AM
#7
satyrslynx avatar

satyrslynx

New Zenner

Join Date:
Nov 2010
Location:
Arizona, USA
Posts:
12
Plugin Contributions:
0

Re: remove products from cart if no purchase

No doubt ... might mention to them ... I would be a ticked off customer ... nothing I love more than to login the same day or a week later and have things I liked in the cart ...

That's all fine & dandy, but what if the shop is like mine, and every item is unique? Then if you have it in your cart, a new customer can't add it to theirs!

Just sayin' is all! :cool:

17 Nov 2010, 12:48 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: remove products from cart if no purchase

That's all fine & dandy, but what if the shop is like mine, and every item is unique? Then if you have it in your cart, a new customer can't add it to theirs!
It is not removed from stock until an actual purchase is completed

I would consider this a back door marketing thing as your customers probably know these are one off items

Customer "A" places it in their cart and leaves for what ever reason

Customer "B" then comes in and actually purchases it

Customer "A" comes back and finds out that it has been purchased right out from under them....

First come first served - - and vows to never let that happen to them again as they will purchase when the urge hits them and not wait