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.
FAQ’S
  1. 1. What are “shortcodes” in the SMS Alert WordPress plugin?

    Shortcodes are small pieces of text (enclosed in square brackets) that you can insert into any WordPress page or post, enabling functionality like **“signup with mobile”**, **“login with OTP”**, **“share cart”**, or **“OTP verification”** without needing to build a form manually.

  2. 2. Which shortcodes are available?

    The article lists four currently supported shortcodes:
    – **Signup with Mobile**
    – **Login with OTP**
    – **Share Cart**
    – **OTP Verification**

  3. 3. How do I use a shortcode?

    1. Ensure the **SMS Alert plugin is installed and active** on your WordPress website.
    2. **Copy the shortcode** from the plugin’s Shortcodes section.
    3. Navigate to the WordPress page or post where you want to enable the feature.
    4. **Paste the shortcode** into the content area (where you want the form or button to appear).
    5. **Save or publish** the page and preview it to see the shortcode in action.

  4. 4. What does the “Signup with Mobile” shortcode do?

    This shortcode replaces the standard lengthy registration form: a user simply enters their mobile number (and potentially other minimal details) and the plugin handles registration, verification or account creation.

  5. 5. What about the “Login with OTP” shortcode?

    This shortcode allows existing users (or users whose mobile numbers are registered) to log in via **OTP sent to their mobile number** instead of (or in addition to) entering password credentials.

  6. 6. What is the “Share Cart” shortcode used for?

    This shortcode enables a user who has added items to their cart to **share the cart link via SMS** with another person (e.g., a friend or family member to review/pay). The form asks for the sharer’s and recipient’s name/number, then sends the cart link via SMS. This feature works **only when there is at least one item in the cart**.

  7. 7. How does the “OTP Verification” shortcode differ?

    This shortcode is more advanced: you can use it to add **OTP verification for any form** (even ones created via third-party plugins or custom HTML) on your WordPress site. You need to pass **two parameters** to the shortcode: the selector for the phone field, and the selector for the submit button in your form. Then the plugin will trigger OTP verification on submission.

Still can't find the solution for your Query?

Contact Support