Skip to main content
Menu
Search
Online Selling

Let eCommerce Customers Sign In with Their Phone Number

Customers type their mobile number, receive a 6-digit code by SMS or WhatsApp, and sign in or register without a password.

With phone sign-in, your store's customers type their mobile number and receive a 6-digit code by SMS or WhatsApp. No password is needed. A new number becomes a new customer account after the customer enters a name.

Phone sign-in is available from SalePro 6.4. Email and password sign-in keeps working alongside it.

Before you start#

  • The eCommerce module is enabled and your store works. See Set up SalePro eCommerce.
  • You have at least one way to send codes:
    • SMS: an SMS provider account, set up in Settings → SMS Setting.
    • WhatsApp: a WhatsApp Business account on the WhatsApp Cloud API, with an approved authentication template (see below).
  • Every code you send may cost money with your SMS or WhatsApp provider.

Step 1 — Turn on phone sign-in#

  1. Open eCommerce → Settings and go to Customer sign-in.
  2. Tick Enable sign-in with phone number.
  3. In Send codes by, choose SMS, WhatsApp, or SMS and WhatsApp (customer chooses).
  4. Enter the Default country code, for example 880 for Bangladesh or 1 for the USA. It is added to numbers that customers type without +.
  5. If you use WhatsApp, fill in WhatsApp authentication template name and Template language code (see Step 3).
  6. Save.

If something is missing, a message on this page says what to fix. The Continue with phone button only appears on the store when SalePro can actually send a code.

Step 2 — Set up SMS#

  1. Open Settings → SMS Setting.
  2. Choose your SMS provider, enter its details and make it active.
  3. Save.

Phone sign-in uses the SMS provider that is active.

Step 3 — Set up WhatsApp and the authentication template#

WhatsApp only delivers sign-in codes through a message template that Meta has approved. Without an approved template, SalePro cannot send codes by WhatsApp.

Save your WhatsApp Cloud API keys#

  1. Open WhatsApp → WhatsApp Settings.
  2. Enter the Phone Number ID, Business Account ID and Permanent Access Token from your Meta WhatsApp Business account.
  3. Save.

Create the template in Meta#

The exact screens in Meta can change. In general:

  1. Sign in to Meta Business Suite and open WhatsApp Manager.
  2. Go to Message templates and create a new template.
  3. Choose the category Authentication.
  4. Give it a name, for example login_code. Use lowercase letters, numbers and underscores.
  5. Choose the language, for example English (US), which has the code en_US.
  6. For the code delivery button, choose Copy code.
  7. Submit the template for review.
  8. Wait until Meta shows the template as approved (Active). This can take from a few minutes to a day.

SalePro sends the 6-digit code into the template's message text and into its copy-code button. A standard Authentication template with a Copy code button fits this.

Enter the template in SalePro#

  1. Open eCommerce → Settings → Customer sign-in.
  2. In WhatsApp authentication template name, type the template name exactly as it appears in Meta, for example login_code.
  3. In Template language code, type the language code of the approved template, for example en_US. If you leave it empty, SalePro uses en_US.
  4. Save.

Important: The name and the language code must match an approved template exactly. If they don't, WhatsApp refuses the message. When SMS is also set up, the customer is then offered the code by SMS instead.

What customers see#

  1. On the sign-in, registration, checkout or product page, the customer clicks Continue with phone.
  2. They type their mobile number. Numbers from another country start with + and the country code.
  3. If you offer both channels, they choose Send the code by SMS or Send the code by WhatsApp.
  4. They click Send code and receive a 6-digit code.
  5. They enter the code and click Continue.
  6. A new number: SalePro asks for their Name and an optional Email, then Create account. If they enter an email, SalePro sends a link to confirm it.
  7. They are taken back to where they started, for example the checkout with their cart.

Existing customers#

  • A customer whose saved phone number matches can sign in with a code. Their number is then marked as verified.
  • If more than one account uses the same number, the customer is asked to sign in with email and add the phone number on their account page.
  • Customers with an email account can add and verify a phone number on their account page.
  • Customers with a phone-only account can add an email address on their account page. It is added after they open the link that SalePro emails them.

Code rules and sending limits#

Rule Value
Code length 6 digits
Code expires after 5 minutes
Wrong tries per code 5, then the customer needs a new code
New code can be requested after 60 seconds
Codes per phone number 10 per day
Codes per network (IP) address 30 per day
Codes per store 200 per hour

Each code works only once. The limits hold even when many requests arrive at the same time. They protect you from large SMS or WhatsApp bills.

Check it works#

  1. Open your store in a private or incognito window.
  2. Click Continue with phone on the sign-in page.
  3. Enter a phone number you can receive messages on and click Send code.
  4. Enter a wrong code once. The page says the code is not correct and how many tries are left.
  5. Enter the right code. For a new number, enter a name and create the account.
  6. Add a product to the cart, go to checkout, sign out, and sign in again with your phone from the checkout page. You return to the checkout with your cart.
  7. In SalePro, open the customer and check the name and phone number.
  8. If you use WhatsApp, repeat the test with Send the code by WhatsApp.

Common problems#

Problem What to check
Continue with phone is missing on the store Phone sign-in is not ticked, the default country code is empty, or no selected channel is set up. Open Customer sign-in and read the message there.
"SMS is selected, but no SMS provider is active" Make a provider active in Settings → SMS Setting.
"WhatsApp is selected, but it is not set up" Save the WhatsApp Cloud API keys in WhatsApp → WhatsApp Settings and enter the template name in Customer sign-in.
WhatsApp codes never arrive The template must be an approved Authentication template with a Copy code button. Check that the name and language code match it exactly.
"Enter a valid mobile number" Check the Default country code. Numbers from another country must start with +.
"Too many codes were requested" A daily or hourly limit was reached. The customer can try again later.
"Please wait … seconds" A new code can be requested 60 seconds after the last one.
"More than one account uses this phone number" Two customer accounts share the number. The customer signs in with email and adds the phone number on their account page.
Did this guide solve your problem?

If something is unclear, tell support which guide and section you were following.

Get help
WhatsApp