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#
- Open eCommerce → Settings and go to Customer sign-in.
- Tick Enable sign-in with phone number.
- In Send codes by, choose SMS, WhatsApp, or SMS and WhatsApp (customer chooses).
- Enter the Default country code, for example
880for Bangladesh or1for the USA. It is added to numbers that customers type without+. - If you use WhatsApp, fill in WhatsApp authentication template name and Template language code (see Step 3).
- 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#
- Open Settings → SMS Setting.
- Choose your SMS provider, enter its details and make it active.
- 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#
- Open WhatsApp → WhatsApp Settings.
- Enter the Phone Number ID, Business Account ID and Permanent Access Token from your Meta WhatsApp Business account.
- Save.
Create the template in Meta#
The exact screens in Meta can change. In general:
- Sign in to Meta Business Suite and open WhatsApp Manager.
- Go to Message templates and create a new template.
- Choose the category Authentication.
- Give it a name, for example
login_code. Use lowercase letters, numbers and underscores. - Choose the language, for example English (US), which has the code
en_US. - For the code delivery button, choose Copy code.
- Submit the template for review.
- 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#
- Open eCommerce → Settings → Customer sign-in.
- In WhatsApp authentication template name, type the template name exactly as it appears in Meta, for example
login_code. - In Template language code, type the language code of the approved template, for example
en_US. If you leave it empty, SalePro usesen_US. - 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#
- On the sign-in, registration, checkout or product page, the customer clicks Continue with phone.
- They type their mobile number. Numbers from another country start with
+and the country code. - If you offer both channels, they choose Send the code by SMS or Send the code by WhatsApp.
- They click Send code and receive a 6-digit code.
- They enter the code and click Continue.
- 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.
- 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#
- Open your store in a private or incognito window.
- Click Continue with phone on the sign-in page.
- Enter a phone number you can receive messages on and click Send code.
- Enter a wrong code once. The page says the code is not correct and how many tries are left.
- Enter the right code. For a new number, enter a name and create the account.
- 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.
- In SalePro, open the customer and check the name and phone number.
- 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. |
If something is unclear, tell support which guide and section you were following.