Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Empty cart when session ends ?

    Hi
    We currently manage our product catalogue pretty intensely and products can be deleted from the site on a daily basis.
    However we are getting orders coming htrough for products that have (it seems) been stored in a shopping cart from BEFORE we deleted a product.
    The customer then completes the order with the DELETED product which can cause problems with our despatch staff.
    Is there any way we can force a shopping cart to be emptied when the customer ends their session ?
    Thanks
    4ec

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

    Default Re: Empty cart when session ends ?

    What version of Zen Cart are you running?
    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!

  3. #3
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Empty cart when session ends ?

    Apparently . . .
    "Your version of Zen Cart™ appears to be current."

    Zen Cart 1.3.6
    Database Patch Level: 1.3.6

    cheers
    4ec

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

    Default Re: Empty cart when session ends ?

    or not ...

    v1.3.7 - http://www.zen-cart.com/forum/showthread.php?t=54615
    v1.3.7.1 - http://www.zen-cart.com/forum/showthread.php?t=69769

    Nevertheless, auto-emptying of the shopping cart is not a built-in feature at the present time.
    .

    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.

  5. #5
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Empty cart when session ends ?

    hi
    Thanks for that.
    Is it an easy facility to implement ?

    I see that my items can only be seen in the cart when I log on.
    is it possible to delete them on session_end ??

    Thanks
    4ec

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

    Default Re: Empty cart when session ends ?

    Actually, you'd be better to delete the cart contents at login. That would require adding $_SESSION['cart']->reset(true); in appropriate places.

    However ...

    Zen Cart can be configured to not-allow-checkout if out-of-stock products are in the customer's cart. You can control those settings in Admin->Configuration->Stock

    Additionally, the upcoming v1.3.8 has an option to display a "your previous shopping session cart contents have been restored ... please review before checkout" message, as mentioned here:
    http://www.zen-cart.com/forum/showthread.php?t=68254
    .

    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.

  7. #7
    Join Date
    Aug 2007
    Location
    South of France
    Posts
    46
    Plugin Contributions
    0

    Default Re: Empty cart when session ends ?

    i too have been looking for a way to empty the shopping cart at session end or start but reading your posts I then ask myself that its the customer who should decide if he wishes to keep or delete the items he put in there.

    So,

    Is it possible that on session init we check to see if the cat has goods in it from previous session and if yes we pop up a warning window infront of the main page that states :

    YOU SHOPPING CART CONTAINS THE FOLLOWING ITEMS :

    XXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXX

    Do you wish to:

    1/ Keep items and continue shopping ?
    2/ Go to shopping cart menu to modify your previous selections
    2/ Proceed to checkout ?
    3/ Remove all items from shopping cart and continue ?

    Sounds simple but I guess the pop up blocker is going to stop our window appearing?

    I only just read your comments on 1.38. so wait and see ...?
    Bye

  8. #8
    Join Date
    Aug 2007
    Location
    South of France
    Posts
    46
    Plugin Contributions
    0

    Default Re: Empty cart when session ends ?

    I only just read your comments on 1.38. but don't agree that this be set only in the admin.

    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


    It should use these as defualt but give the customer the choice and associate this to his Customer default settings.

 

 

Similar Threads

  1. How to delete products from shopping cart when user session ends
    By rohitsax in forum Customization from the Admin
    Replies: 11
    Last Post: 22 May 2012, 04:55 AM
  2. auto email when a product ends
    By devil2oo1 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 14 Mar 2011, 02:32 PM
  3. View Cart (when empty)
    By Eric24v in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Aug 2010, 04:53 AM
  4. Shopping cart empty when adding product to cart?
    By juanitas in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 13 Aug 2009, 11:22 PM
  5. Empty cart when checkout CCnow
    By Macedonium in forum Addon Payment Modules
    Replies: 0
    Last Post: 18 Mar 2008, 04:21 PM

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