Developer forum

Forum » Ecommerce - Standard features » Create user in checkout - How to?

Create user in checkout - How to?

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a project where I have implemented the checkbox for "Create user in checkout" and the option to "Update existing users based on email match".

The user is created just fine during the checkout and in the last step, we load with ajax a UserManagement form for editing the password.

The problem is that this updated is interpreted by DW as a security problem and bans the user. The form is using all fields generated by DW as a regular editing form.

Using the form itself, outside of the checkout flow, works just fine.

I have noticed that Rapido is no longer creating the user in checkout and instead it points the user to the Create Account form.

I am fine with this option as long as I have a way to connect the recently created order with the newly created User.

If there is a better approach to handling user creation during checkout, I would be very happy to find out the details.

Thank you,
Adrian

 


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

In the checkout form you can specify 3 fields:

  • EcomUserCreateUserName
  • EcomUserCreatePassword
  • EcomUserCreateConfirmPassword

So if you need the user to specify password (and overwrite username), you can use those.

If you load the user management form and get banned, it is probably because you have security enabled on users and do not post the system fields that belongs to that form.

You have UserManagement:User.FormStart and UserManagement:User.FormHidden. You probably are missing the UserManagement:User.FormHidden in your password form. And probably also use the FormStart to get the right js on the onsubmit event.

Alternatively disable the security check for your users in settings, web & http, security.

BR Nicolai

Votes for this answer: 1
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you for the clarifications.

I will follow your suggestion.

Thank you,
Adrian

 

You must be logged in to post in the forum