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 7 of 7

Thread: Difference between CreatecCustomer and CreateAccount event handler...

  1. #1
    mgibbs is offline Senior Member
    Join Date
    Jan 2005
    Location
    Orange County, CA
    Posts
    194

    Default Difference between CreatecCustomer and CreateAccount event handler...

    Does anyone know the difference between when CreateCustomer and CreateAccount are fired by the event handler?

    Since there are events for UpdateCustomer, DeleteCustomer and NukeCustomer I'm kind of assuming that I want to set up the event handler to be fired whenever a new login is created in the system using CreateCustomer, right?

    MJG
    EMM for AspDotNetStorefront - Communicate effectively with your customers

  2. #2
    mgibbs is offline Senior Member
    Join Date
    Jan 2005
    Location
    Orange County, CA
    Posts
    194

    Default

    I did some searches through the source code over the weekend and couldn't find any instances where CreateAccount is even called.

    I did find CreateCustomer event but it appears to only be called at the end of the MakeAnonCustomerRecord() method.

    So, from that I can only assume that I'll REALLY be wanting to use the UpdateCustomer event.

    Anyone have any other thoughts on this subject?
    EMM for AspDotNetStorefront - Communicate effectively with your customers

  3. #3
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    The CreateCustomer event is triggered whenever a new customer ID has been generated. While the CreateAccount is triggered whenever a customer account is created.

  4. #4
    mgibbs is offline Senior Member
    Join Date
    Jan 2005
    Location
    Orange County, CA
    Posts
    194

    Default

    So, CreateAccount is triggered when an anonymous customer is converted into a full-customer account?

    Funny that doing a search through the source code I was unable to find where CreateAccount was ever called as an EventHandler... Do you know which methods it is called from?
    EMM for AspDotNetStorefront - Communicate effectively with your customers

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

    Default

    That's in createaccount.aspx.cs, in the CreateAccount method. Line 662 by default in 8.0.1.2

  6. #6
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default

    For "CreateCustomer", the parameter "CreatedCustomerID" is returned..
    However, for "CreateAccount", no ID parameter is returned..

    Wouldn't it create a problem?

  7. #7
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default

    It seems messages about eventhandling are ignored nowadays..