<img src="abc.png" />
    
call to replace anchor tags contains '/admin' in href

Login via mobile number

Scenario

You want to provide user login with the phone number instead of email. Also, there should be user verification through mobile via OTP on registration. How to provide that?

Example

Steps

StoreHippo allows your customers to log in to your store via mobile number. If you enable login via phone in your store, your customers don't need an email id, and they can log in to your store through a phone number. To do so, first, you need to enable user verification and provide login field asphonein User Settings and provide fields in Register and Login formsFollow the below-mentioned steps to enable login via mobile number:

User Settings

  1. Go to Settings > User Settings section in StoreHippo Admin Panel.

  2. Select the User Verification Required checkbox. 

  3. Select the "Phone" as VerificationMethod.
  4. Scroll down to the Login FieldSelect Phone to log in via phone number.
  5. Click on the Save button to save the user settings. 

Form settings

  1. Go to Site > Forms section in StoreHippo Admin Panel.

  2. Select the Registration Form.

  3. The registration form appears as shown below by default. Click on Add field to add a new field for the mobile number.
  4. Enter Field label as "Mobile Number", Field name as "phone" and select Type as "Phone".
  5. You can drag the Mobile Number field and place it anywhere in the form. 
  6. Click on the field settings and select the required checkbox. 
  7. Save the form.
  8. The registration form appears as shown below on the storefront.
  9. When your customers register by entering all the details in the registration form, an OTP is sent to their registered mobile number for verification. They are required to provide the OTP in the verification form given below:
  10. Now, go back to Forms and select the login form
  11. The registration form appears as shown below by default.
  12. Replace Email with "Phone Number" and Type as "Phone".
  13. Save the login form changes.
  14. The login form appears as shown below on the storefront.
  15. Your customers can now log in with the phone number in your store.