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

Thread: Adding a new Customer

  1. #1
    matto227 is offline Junior Member
    Join Date
    Sep 2009
    Posts
    3

    Default Adding a new Customer

    I am working with the webservice to add a new customer, since we don't want to require users to create two different accounts to deal with our two different sites with Membership.

    I have created the Customers XML and it imports correctly (or so it seems). I can see the new user in the admin console of the storefront, but that user cannot log in to the storefront with the username and password I passed along.

    Even if I edit the Customer in the admin console, the user cannot log in properly.

    How can I add a Customer and have the user be able to log in?

    EDIT: It appears that there is an "IsRegistered" flag in the Customer table that isn't being set by the import. What should be done to automate this with the Customer Import?

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

    Default

    You need to inlucde IsRegistered field in your xml import request, just add <IsRegistered>1</IsRegistered> node in it.

  3. #3
    Mgayar is offline Junior Member
    Join Date
    Apr 2010
    Posts
    1

    Default IsRegistered refused to be set to 1

    Here is what I tried with your windows application using the super admin user:

    <Customer Action="Add" GUID="18351634-6B3B-4452-9795-2B581B4D57D3">
    <EMail>Foo@abc.com</EMail>
    <CustomerLevelID>0</CustomerLevelID>
    <Password>123456789</Password>
    <SaltKey>1077169758</SaltKey>
    <FirstName>Woo</FirstName>
    <LastName>Foo</LastName>
    <Phone>0101652898</Phone>
    <IsAdmin>0</IsAdmin>
    <LocaleSetting>en-US</LocaleSetting>
    <Over13Checked>1</Over13Checked>
    <VATSetting>1</VATSetting>
    <AdminCanViewCC>1</AdminCanViewCC>
    <IsRegistered>1</IsRegistered>
    </Customer>
    <Set Table="Customer" GUID="18351634-6B3B-4452-9795-2B581B4D57D3">
    <IsRegistered>1</IsRegistered>
    </Set>

    <Customer Action="Update" GUID="18351634-6B3B-4452-9795-2B581B4D57D3">
    <IsRegistered>1</IsRegistered>
    </Customer>

    But I still can't see the user as registered user in aspdotnetstorefront and when I checked the customer table I found that the IsRegistered field is set to 0 Do you have any idea why is that happening?

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

    Default

    This is an issue we just became aware of and fixed. If you contact support we can provide you with an updated WSI DLL that should take care of that.

  5. #5
    victorneves is offline Junior Member
    Join Date
    Oct 2010
    Posts
    1

    Lightbulb Adding a new Customer - resolved

    To work, just change the field value "isadmin" to 3.

    Sample: <IsAdmin>3</IsAdmin>



    - victor