Plugin Directory

Changeset 2812471


Ignore:
Timestamp:
11/05/2022 05:27:25 AM (3 years ago)
Author:
alphanetbd
Message:

updated otp msg to add store name in every msg

Location:
alpha-sms
Files:
47 added
4 edited

Legend:

Unmodified
Added
Removed
  • alpha-sms/trunk/README.txt

    r2799220 r2812471  
    55Tested up to: 5.8
    66Requires PHP: 5.6
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • alpha-sms/trunk/alpha_sms.php

    r2799204 r2812471  
    1515 * @wordpress-plugin
    1616 * Plugin Name:       Alpha SMS
    17  * Plugin URI:        https://sms.net.bd/plugins/wordpress
     17 * Plugin URI:        https://sms.net.bd/wp-plugin/
    1818 * Description:       WP 2FA Login. SMS OTP Verification for Registration and Login forms, WooCommerce SMS Notification for your shop orders.
    1919 * Version:           1.0.2
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('ALPHA_SMS_VERSION', '1.0.1');
     38define('ALPHA_SMS_VERSION', '1.0.3');
    3939
    4040// plugin constants
  • alpha-sms/trunk/public/class-alpha_sms-public.php

    r2799202 r2812471  
    246246        $otp_code = $this->generateOTP();
    247247
    248         $body = 'Your OTP for Registration is ' . $otp_code . ' . Only valid for 2 min.';
     248        $body = 'Your OTP for '.get_bloginfo().' Registration is ' . $otp_code . ' . Only valid for 2 min.';
    249249
    250250        if (!empty($_POST['action_type']) && $_POST['action_type'] === 'wc_checkout') {
    251             $body = 'Your OTP for Order Checkout is ' . $otp_code . ' . Only valid for 2 min.';
     251            $body = 'Your '.get_bloginfo().' OTP for Order Checkout is ' . $otp_code . ' . Only valid for 2 min.';
    252252        }
    253253
     
    798798
    799799        $number = $user_phone;
    800         $body = $otp_code . ' is your one time password to login. Only valid for 2 min.';
     800        $body =  'Your one time password for '.get_bloginfo().' login is '. $otp_code . ' . Only valid for 2 min.';
    801801
    802802        $sms_response = $this->SendSMS($number, $body);
  • alpha-sms/trunk/public/js/alpha_sms-public.js

    r2659811 r2812471  
    2626
    2727   if (checkout_otp.length) {
    28       checkout_form = checkout_otp.parent('form.checkout.woocommerce-checkout').eq(0);
     28      checkout_form = $('#alpha_sms_otp_checkout').parents('form.checkout.woocommerce-checkout').eq(0);
    2929      $(document).on('click', '#place_order2', WC_Checkout_SendOtp);
    3030   }
Note: See TracChangeset for help on using the changeset viewer.