Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Dec 2006
    Posts
    12
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Aug 2007
    Posts
    47
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...

    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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default 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.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Saved cart items from previous session

    Aha! a clue ...

    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
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Saved cart items from previous session

    Quote Originally Posted by Ajeh View Post
    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


  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Saved cart items from previous session

    We do aim to please ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Dec 2006
    Posts
    12
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Aug 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Saved cart items from previous session

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

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Saved cart items from previous session

    Quote Originally Posted by katandmouse View Post
    Version 1.3.8 is out. Can we find this functionality in this version?
    See Ajeh's post #5 above ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h Items in Saved Cart Sort Order
    By chadderuski in forum Managing Customers and Orders
    Replies: 4
    Last Post: 13 May 2016, 07:38 PM
  2. Deleting Saved Items in Cart
    By thegoodlifestore in forum Managing Customers and Orders
    Replies: 6
    Last Post: 27 Mar 2012, 11:26 PM
  3. Saved Cart Items From Last Session
    By lucchesi in forum General Questions
    Replies: 5
    Last Post: 30 Dec 2010, 04:36 PM
  4. Disable cart from previous session
    By pRS317 in forum General Questions
    Replies: 1
    Last Post: 3 Aug 2008, 12:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR