3

I just want to confirm how accounts are created for customers in Craft Commerce.

Currently in the the Craft Commerce download the checkout processes provides the option to "login" or proceed with as a "guest" just providin the email. Is this the method of creating a customer account OR do we have to activate public registrations and point people to a registration page?

I'm a little unsure what needs putting into effect here. Any documentation people can point me to would be useful.

1 Answer 1

4

Yes, if you want users to be able to register, you would need to allow public registrations and implement your own standard registration form:

https://craftcms.com/docs/templating/user-registration-form

When they enter their email as a guest (anonymous) user a 'guest' customer record is created and related to the current cart, but it is not associated with a craft user account. This customer record is not retrievable and is only created for the purpose of having a related customer to the current order. There is no way to see this customer record in the back-end.

If the user is logged in a related customer record is created that has a 1:1 relationship with the user. The same customer record is used every time the useris logged in. This customer is the central place that addresses and orders are related to. If you want to see the previous orders for a customer, add the "Customer Info" field to your user profile custom fields.

5
  • What would happen to an order if someone was using as a guest and then decided to register for an account? Would that order be then assigned to the customer's account?
    – Dan Lee
    Commented Jul 12, 2016 at 12:31
  • @DanLee yes, past orders are assigned based on the email address.
    – Brad Bell
    Commented Jul 12, 2016 at 17:14
  • This may be of some interest if you want a more integrated, during checkout, registration process - github.com/bossanova808/CommerceRegisterOnCheckout Commented Feb 21, 2017 at 0:56
  • I am importing some users (using bob’s import plugin) who have a email address which they used in the past to place an order. Yet the Customer Info remains empty. Is there more to it? Commented Nov 8, 2017 at 19:04
  • Ok when I as an admin login as one of those newly imported users then later all their orders show up under Customer Info. Commented Nov 8, 2017 at 22:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.