For OpenCart 2.3, 3.0, 4.0 and 4.1
How it works
- "Continue with Google" and "Continue with Facebook" buttons at the top of the login and register pages.
- A new shopper gets an account with the name and e-mail from Google or Facebook, in the customer group you choose. Or switch new accounts off, so only existing customers can use it.
- A shopper who already has an account with that e-mail is signed into it and linked; next time the link is used, even if the e-mail there changes.
- After signing in, the shopper goes back to the page that asked for a login, or to the account page.
Safe by design
- Standard OAuth 2 with a one-time random check on every sign-in.
- An existing account is only joined through an e-mail address the provider has confirmed.
- Disabled accounts cannot sign in; customer groups that need approval are respected (no account is made, the shopper is asked to register with the form).
- Clear messages when a sign-in is cancelled or fails; the normal e-mail and password login keeps working.
- Deleting a customer deletes their links.
Setup
Texts are in a language file, ready to translate. Not included: Apple and other providers, sign-in on the checkout page.
- Paste your Google client ID and secret and your Facebook app ID and secret. The settings page shows the redirect address to enter in both apps.
- Your shop needs https (Google and Facebook require it).
- New accounts have no password of their own; the shopper can set one with "Forgotten password".