kentico_helenag
-
8/19/2008 8:48:25 AM
RE:Re-ored Checkout Process causes duplication of registration check
Hi Jez,
this issue is not a bug - it is the standard behavior. The user is not implicitly a customer. These are two different things. There is a confirmation in the second sub-step in the Registration check, if the customer data is the same as user data.
We have thought out a workaround how not to display these two sub-steps.
1. You could set the Special pages/Shopping Cart to Require authentication (Properties -> Security) and allow the Registered Users to read the data.
2. If the user register himself, the customer will be created as soon as the user. Please add the code: //create a customer CustomerInfo ci = new CustomerInfo(); ci.CustomerFirstName = txtFirstName.Text; ci.CustomerLastName = txtLastName.Text; ci.CustomerEmail = txtEmail.Text; ci.CustomerCompany = ""; ci.CustomerOrganizationID = ""; ci.CustomerTaxRegistrationID = ""; ci.CustomerUserID = ui.UserID; ci.CustomerEnabled = true; ci.CustomerCreated = DateTime.Now; CustomerInfoProvider.SetCustomerInfo(ci);
on the line 502 in ~/CMSWebParts/Membership/RegistrationForm.aspx.cs
3. The step of Registration check is no more needed. If someone want to add something in the cart he is redirected to the log on/register page. After this he returns automatically to the shopping cart.
Best regards, Helena Grulichova
|