Developer forum

Forum » Ecommerce - Standard features » create user in checkout

create user in checkout

Dan Gheorghe
Dan Gheorghe
Reply

Hello,

I just configured the user creation feature in the checkout but it seems that at the end of the order the user is not created.

Here are the hidden fields for new user creation: https://ibb.co/MZYchbk

Here are the cart module settings: https://ibb.co/FzRRmw9

Am I missing something?

 

Best,

 

 


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Try to render validation errors from the "ValidationErrors" template loop.
It should contain a message in case that the username or password is invalid, e.g. username already exists or password is not valid according to current settings for password complexity.

Best regards,
Morten

 
Dan Gheorghe
Dan Gheorghe
Reply

Hi Morten!

Thank you for the reply!

It seems that I don't have any errors, the loop count returns me 0. My cart module has a multi-step-checkout configuration and the hidden fields (https://ibb.co/MZYchbk) are placed into step 2/7. I also put the ValidationErrors loop in each step and I didn't get anything. 

Do I need to take a specific step when setting these hidden fields to create a new user in the checkout?

 

Best,

 

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Submit the values on the step right before checkout and then it should work - if there are no validation errors.

Example:

Step 1: Show cart
Step 2: Information <-- Create user here
​Step 3: Checkout
​Step 4: Receipt

 
Dan Gheorghe
Dan Gheorghe
Reply

Hello Morten!

My cart module has the following steps:

Step 1 -> (Show order)
Step 2 -> (Billing and shipping), here I put the hidden fields 
​Step 3 -> (Validate stock)
​Step 4 -> (Process user and location)
Step 5 -> (Payment and shipping)
Step 6 -> (Checkout)
Step 7 -> (Receipt)

With these configuration steps it seems that the user is not created

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Try to insert the hidden fields in step 5 - or in a new step right before checkout.

Votes for this answer: 1
 
Dan Gheorghe
Dan Gheorghe
Reply

The step before the checkout seems to be the solution. Now it's working.

Thank you!

Best regards,
Dan

 

You must be logged in to post in the forum