Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Nauman 98 posts 118 karma points
    Dec 15, 2010 @ 12:13
    Nauman
    0

    destroying session / basketid

    Soren

    When I create a cart and do not complete my order, say i added an item to the cart and closed the browser from there. Next day or after few hours when I open the site, that item still exists in my cart.

    How can I unlink cart from session or destroy basketId cookie after say 30 minutes if the session remains inactive.

    Nauman

  • Søren Spelling Lund 1797 posts 2786 karma points
    Dec 17, 2010 @ 10:37
    Søren Spelling Lund
    0

    You could grab the current basket for the customer by using GetBasket and then check how old it is. If it's older than you want you execute ClearBasketInformation which gives you a new basket.

    uCommerce doesn't have a configuration option for how long a basket should be retained. It simply defaults to 30 days.

  • Nauman 98 posts 118 karma points
    Dec 29, 2010 @ 09:23
    Nauman
    0

    Soren

    Please let me know how to use ClearBasketInformatio() either in xslt or in .Net code.

    Regards

    Nauman

     

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 03, 2011 @ 13:32
    Søren Spelling Lund
    0

    You would load the basket using:

    CommerceLibary:GetBasket()

    And then compare the created date attribute with the current date and time. If 30 mins has passed you trigger clear basket. You can embed this code as part of an entry page.

    If you're more comfortable with .NET you could use global.asax and check for expired baskets whenever a new request begins. 

Please Sign in or register to post replies

Write your reply to:

Draft