in Tags: wordpress

SMS Alert has introduced new shortcodes in the WordPress plugin to give our customer free hand to handle all their login and sign-up forms.

To use these shortcodes, you need to have SMS Alert plugin installed.

Currently there are 4 shortcodes available in this plugin.

Signup with Mobile, Login with OTP, Share cart, and OTP verification shortcode.

Signup with Mobile

  • Signup with mobile gives the ability to the user to register with just the phone number, and the user does not need to fill up length registration forms.
  • So to use this shortcode simply click on the copy icon, now navigate to the page or post where you want to use it.
  • Paste the copied shortcode and save the changes.
  • Now click on the preview to see how it appears on your website.

Login with OTP

  • Login with OTP which allows the user to login to your website without a password.
  • The user enters his phone number, and our plugin checks if we have a user registered with the given phone number and sends a one time password through SMS.
  • The user is then prompted to enter the OTP, and once the OTP is successfully verified, the user is logged in to your website.
  • So to use this shortcode simply click on the copy icon, now navigate to the page or post where you want to use it.
  • Paste the copied shortcode and save the changes.
  • Now click on the preview to see how it appears on your website.

Share cart

  • Share cart allows a user to share his entire cart with his friend or family members.
  • This could be really useful when you want someone else to pay for your order, or you wanted someone else to review the items before you could buy them.
  • So this shortcode will add a button and on clicking it the user will be promted to enter his name and number, and also the name and a number of the person to whom he is sharing the cart.
  • Once the user submits the form, cart link is sent directly via SMS to the person to whom he wanted to share his cart.
  • So to use this shortcode simply click on the copy icon, now navigate to the page or post where you want to use it.
  • Paste the copied shortcode and save the changes.
  • navigate to the website frontend and add some item to your cart, and then visit the page that you created to preview it.
  • Please note the share cart button will be visible only when there is at least one item is there in the cart.

OTP verification

  • OTP verification of any form which SMS Alert may or may not support officially.
  • This shortcode can verify almost all forms in your WordPress website, whether you have created a form using any plugin or it is a custom HTML form.
  • You need to pass two parameters to this shortcode, the first one is the selector for the phone field, and the second is the selector for submit button.
  • This selector is basically the jquery selector like to select an element by id you use #, or by class name you use a dot.
  • To use this feature you just need to copy this shortcode and paste it on the page where you have a form which you want to verify with top. and replace the values for both these selectors as per your form.
  • If you do not know the selector of your form, you can inspect the element in your browser to find it.
  • Click on save changes, and preview the result.

Still can't find the solution for your Query?

Contact Support