Bug reports
Version 3.x > Bug reports > Re-ored Checkout Process causes duplication of registration check View modes: 
User avatar
Guest
jdavies@uniteform.com - 8/19/2008 5:11:32 AM
   
Re-ored Checkout Process causes duplication of registration check
Hi,

For the current site we're developing we've got a bug that has been generated by re-ordering the checkout process.
Our client wants to have the registration check as the first step in the process. However, when we do this it then goes through the customer details part twice?
For example - if you were an unregistered customer then it first gets you to register on the reigster screen and then the next screen is the "edit customer" screen where you have to confirm your details again.

This is even worse for an existing customer - you get the registration/login screen first and then once you've logged in it shows you the "edit customer" screen twice!
This bug disappers if you don't have "registration check" as the first step in the checkout process - but unfortunately this is what the client has specified and we're now on a very tight deadline.

I'd be really grateful for any insight into why this is happening and how we can overcome it as it's obviously unacceptable and needs to be fixed asap.

The checkout process order is currently:
Registration Check
Add some products to the shopping cart
select billing and shipping address
choose location
order preview
payment method
payment

thanks,

Jez Davies


User avatar
Kentico Developer
Kentico Developer
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