Reading list Switch to dark mode

    Prestashop Mobile Login

    Updated 20 December 2023

    Allow your customers to register and login on the store using the mobile number. Another key point is that the customers can request for an OTP to their mobile number and login easily to the store.

    Note: PrestaShop Mobile Login module is compatible with PrestaShop version 8.x.x and multi-store feature.

    Feature of PrestaShop Mobile Login

    • Allow customers to login via mobile number and password.
    • Enable customers to login to their accounts by OTP.
    • Customers can send OTP for login on their mobile number, email id, or WhatsApp number.
    • Allow customers to register to register on the store using OTP.
    • Customers can reset their passwords via OTP.
    • Make mobile number verification mandatory for registration on the store.
    • View, edit, or delete customers’ mobile details from a single grid.
    • Add mobile details on the customer’s behalf from the back office.
    • Configure the message to send to customers when they request an OTP.
    • Set the duration for which ‘Resend OTP’ button is disabled once the customer has sent OTP.
    • Set the validity of an OTP.
    • Configure the number of times for which customers can request for OTP in a row.
    • Set the duration for which customers cannot request for OTP once the OTP request limit has been reached.
    • Set the duration for which the customer’s number gets blocked once he has reached the wrong OTP limit.
    • Choose to delete customers’ mobile details upon uninstallation or resetting of the module.
    • Set the minimum and maximum length of the mobile number.
    • Send SMS to customers on successful registration.
    • By default, the module supports three SMS gateway providers viz Twilio, SendinBlue, and onehop (SMS-Magic).
    • Log the information of failed SMS.

    How to Install PrestaShop Mobile Login

    • Firstly, go to the module manager in the back office and click on ‘upload a module’.
    • After that, drag and drop the module file or select the file from the system.
    • In this way, the module installation will be successful.
    1-18
    2-13
    3-12

    Note

    For proper functioning of “Prestashop Mobile Login”, some modifications need to be done in the Prestashop core files. Please create a ticket on https://webkul.uvdesk.com/ and we will add it for you.

    Module Configuration

    After the successful installation of the module, the admin needs to configure it.

    Searching for an experienced
    Prestashop Company ?
    Find out More

    SMS Gateway Providers

    By default, Prestashop Mobile Login supports three SMS gateway providers:

    1. Twilio
    2. SendinBlue
    3. Onehop (SMS-Magic)
    4-7

    Registration Page Settings

    Under Registration Page Settings, admin has to select whether to display the mobile number field on the registration page or not. Further, admin can make it mandatory for the customers to verify the mobile number during registration.

    Also, for making compatible with Prestashop default functionality, admin has to set a temporary email format for the customers who register on the website without email id.

    5-7

    Display mobile field on registration page

    If disabled, then mobile field will not display on the registration page.

    6-3

    If enabled,

    7-5

    Registration without email id and “mobile number

    If registration without email id and “mobile number required during registration” has been disabled by admin.

    8-5

    Front End View

    9-4

    If registration without email id has been enabled by admin, then a customer can register on the website without entering email id and mobile number will become a mandatory field to register on the website.

    11-5

    If admin has allowed the customers to register via their mobile number, then the customers need to verify their mobile number through OTP in order to register themselves on the website.

    Front End View

    11

    Mobile number verification:

    After clicking on “SEND OTP” button, an OTP is sent to the mobile number mentioned on registration form and a customer has to enter the OTP in ‘Enter OTP’ field.

    14

    After entering OTP, a customer has to click on ‘VERIFY’ button to verify his mobile number.

    15

    Once the mobile verification gets completed, admin can view the customer’s mobile details by navigating through Customers->Mobile Details.

    12-6

    Also, the admin can add mobile details on customer’s behalf by clicking on the “Add mobile details” button. On clicking the button, a form opens on the page where the admin needs to:

    • Select the customer for whom he wants to add the mobile number.
    • Select the customer’s country.
    • Specify the customer’s mobile number.
    13-3

    If admin has disabled the display of ’email’ field, then email field will not display on the registration page.

    14-2

    Front End View

    18

    OTP Settings

    Under OTP settings, the admin can set:

    • Message to send with OTP.
    • Validity of an OTP.
    • Number of times a customer can request for an OTP in a row.
    15-2

    Message to send with OTP

    In this field, admin has to enter a message which will be sent to a customer whenever he requests for OTP. Additionally, admin has to include {otp} in the message that will replace by OTP while sending an SMS. The maximum character limit for the message is 140.

    Disable ‘Resend OTP’ button for

    Once a customer has clicked on ‘SEND OTP’ button, then ‘RESEND OTP’ button will disable for the time duration set by admin here. RESEND OTP’ button will not disable if the admin has set 0 in this field.

    OTP expiration time

    In this field, admin has to specify the time duration for which an OTP will be valid. If the admin has set 0 in this field, then OTP sent to a customer will never get expired.

    Number of OTP request

    Admin can set the number of times a customer can request for OTP.

    16

    Login Page Settings

    Under Login Page Settings, the admin can select whether a customer can login to the website by mobile number or not. Mobile number verification can be made mandatory for customers to login.

    16-3

    Login by OTP

    The admin can enable login via OTP. This will be helpful for customers who do not remember their email id and password.

    17-2

    The admin can allow the customers to get OTP on their mobile number, email id, or WhatsApp number.

    Please note that if you have selected the WhatApp option, then you need to specify the credentials in WHATSAPP CONFIG tab.

    41

    How to get required credentials

    For obtaining the required credentials and adding new apps to the account, you need to create a developer account on Facebook. After logging in to the account, got to “My Apps” section.

    20

    Click on “Create App” button to create new app.

    21

    Select “Business” in app type.

    22

    Enter App name, App contact email and select Business Account to connect the created app.
    Now click on “Create app” button.

    23-1

    On clicking the “Create app” you will be redirected to the Dashboard of your app and from here you need to set up WhatsApp. Click on “Set up” button to proceed.

    24

    Now, click on Quickstart under WhatsApp. Under WhatsApp business, click on Message templates.

    26-2

    Click on ‘Create Template’ button under Message templates.

    27-2

    Under New message template, select authentication and enter message template name.

    29-2-1200x841-png-1200×841-

    After entering the message template name and selecting language, click on the continue button.

    30-2

    How to generate permanent token

    Firstly, go to Business Settings. Select the business account with which your app is associated.

    31-2

    Click on sytem users under Users and then click on Add button.

    33-1

    Now, enter the System username and select Admin as the user role.

    34-2

    After entering system username and role, click on ‘Create System User’ button.

    35-1

    On clicking the ‘Generate New Token’ button, a popup appears on the page where you need to select the app.

    36-2

    After selecting the app, select ‘Never’ for token expiration.

    37-1

    Now, select whatsapp_business_messaging and whatsapp_business_management permission under the “Available permissions” list.

    38-1

    After selecting the permissions, click on ‘Generate Token’ button.

    39-1
    40-1

    Login by mobile number and password

    If enabled, then a customer can log in by entering mobile number or password.

    18

    Mobile number must be verified for login

    If enabled, then the customers whose mobile number have been verified can login just by entering mobile number and password. Additionally, the customers whose mobile number have not been verified have to first verify their mobile number by clicking on ‘Verify your mobile number’ link.

    23
    24
    25
    26

    If disabled by admin, then the customer whether his mobile number has been verified or not can login.

    27

    Login by OTP

    The options selected by the admin under Login Page tab will show on the login page in the front end.

    19-2
    21-3

    Click on SEND OTP button to send OTP on phone number, WhatsApp number, or email id.

    22-2
    23-2

    Reset Password by OTP

    A customer can also reset the password by getting OTP on his registered mobile number.

    On the login page, when a customer clicks on “Forgot your password” link he gets redirected to a page from where heit can reset the password by getting OTP on the registered mobile number.

    Forgot-your-password
    Forgot-your-password-1

    General Settings

    Under General Settings, the admin can:

    • Choose to delete the mobile details upon uninstallation or resetting of the module.
    • Set the minimum and maximum length of mobile number.
    • Choose to send SMS on registration.
    • Log the information of failed SMS.
    24-2

    Send SMS on registration

    Admin can configure the message that will be sent to the customers when they register on the website.

    25-2

    Support

    For any kind of technical assistance or query, please raise a ticket or send us a mail at [email protected]

    Also, please explore our Prestashop development services and vast range of quality Prestashop addons.

    Current Product Version - 6.0.0

    Supported Framework Version - 8.x.x, 1.7.x.x

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content