Customer Registration overview
Edit on GitHubFor the new customers registration in a Spryker shop, double opt-in is used. The double opt-in means that when new customers register with your shop, they are required to confirm their email. That is, when they submit the registration form, they receive an email with a confirmation link they must click to verify their account. Only after they click the verification link in the email, they can start using the online store as registered customers.
Customers must always verify their email addresses, irrespective of the fact how they got registered: by themselves on the Storefront, by a Back Office user in the Back Office, or via the Glue API.
Registration flows
There are four customer registration options:
- Regular registration
- Checkout registration
- Customer registration by a Back Office user in the Back Office
- Registration via the API
The regular customer registration implies registration triggered from the registration page of My Account on the Storefront. In this case, the registration flow is as follows:
-
Having populated all the necessary fields and clicked Sign Up, a customer sees the message saying that they must verify their account via the email sent.
-
The customer clicks on the verification link in the email and turns out on a login page with the message saying that the account is verified.
Checkout customer registration implies that customer registers during the checkout. This means that the customer puts products to cart as a guest user, and at the Login step of the checkout, chooses to sign up. The registration flow is then the same as for the regular registration.
When registering during the checkout, the cart, that the customer created as the guest user, is converted to the registered user’s cart and appears in the customer’s list of shopping carts. The customer proceeds to checkout as a registered user already.
A customer can also be registered by a Back Office User. In this case, the customer also receives the double opt-in email for verification. Until the customer verifies their account via the link in the email, their status is Unverified in the Back Office. Once the customer clicked the verification link, the status changes to Verified.
See Creating a Customer for details on how a Back Office user can create a customer.
Likewise, if a customer gets registered via an API, they also receive the double opt-in email with the verification link. They must verify their account by clicking the link in the email, before you can authenticate them via API.
See Authentication and Authorization for details on registration via API.
Thank you!
For submitting the form