Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 8 of 8

Thread: Calling AppLogic.ExecuteSigninLogic(..) clears the shopping cart, why?

  1. #1
    DENT is offline Member
    Join Date
    Mar 2010
    Posts
    42

    Default Calling AppLogic.ExecuteSigninLogic(..) clears the shopping cart, why?

    I am calling

    AppLogic.ExecuteSigninLogic(CurrentCustomerID, NewCustomerID);

    Tracing the code, both CurrentCustomerID & NewCustomerID are the same value.

    I have 1 product in my shopping cart prior to calling this line of code, after it runs, the user is logged in but his shopping cart is empty.

    What is ExecuteSigninLogic doing? I wish I had the source code to that method.

    Any help?

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Which version are you running? I think I know what's occurring here...
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    pratt is offline Junior Member
    Join Date
    Aug 2008
    Posts
    17

    Default

    I am not a programmer!

    But have to checked the AppConfig key: PreserveCartOnSignin?

    That might be causing the cart to get reset.

    Thanks,
    pratt

  4. #4
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    If you are running 9.0. grab the latest maintenance release of the MyLicenses.aspx page. This is already resolved.

  5. #5
    DENT is offline Member
    Join Date
    Mar 2010
    Posts
    42

    Default

    I checked in the admin, and 'PreserveCartOnSignin' is set to TRUE.

    my version: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  6. #6
    Mike The Last Boyscout is offline User
    Join Date
    Nov 2008
    Posts
    254

    Default

    There are 2 parts to this, check the ClearOldCartOnSignin AppConfig as well. There's more info at http://manual.aspdotnetstorefront.co...logged-in.aspx

  7. #7
    DENT is offline Member
    Join Date
    Mar 2010
    Posts
    42

    Default

    So:

    PreserveActiveCartOnSignin TRUE
    ClearOldCartOnSignin FALSE


    According to that link:

    "PreserveActiveCartOnSignin: true
    ClearOldCartOnSignin: false
    Behavior: Old cart items are removed, new additions are put in cart instead."


    So when an anonymous user adds products to the cart, then signs into ASPDNSF, what is suppose to happend?

    What does "new additions are put in the cart instead" ?


    What I want is, when the user logs in, whatever was in their cart is kept, and new additions are also kept (meaning if they add any products AFTER logging in, those items are added to the cart along with the items they had prior to logging in).

    Which combination will give me that?

  8. #8
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    There's no combination that 'merges' the anonymous cart with the previously-saved 'logged in' cart. That is something that would be nice to have though, I agree. I've added that to the list of new features to add here, we'll see if we can get that added. Shouldn't be too hard.