Plugin Directory

Changeset 2965619


Ignore:
Timestamp:
09/12/2023 04:27:40 AM (3 years ago)
Author:
moceanapiplugin
Message:

v1.4.9
Added validation for sender id

Location:
moceansms-order-sms-notification-for-woocommerce
Files:
481 added
5 edited

Legend:

Unmodified
Added
Removed
  • moceansms-order-sms-notification-for-woocommerce/trunk/admin/class-moceansms-woocommerce-setting.php

    r2890891 r2965619  
    2121
    2222            add_action( 'init', array( $this, 'schedule_check_domain' ) );
     23            add_action( 'moceansms_check_domain', array( $this, 'check_domain_reachability' ) );
     24
    2325            add_filter( 'moceansms_setting_fields', array( $this, 'add_custom_order_status' ) );
    24             add_action( 'moceansms_check_domain', array( $this, 'check_domain_reachability' ) );
    2526
    2627        // } else {
     
    117118                    'desc'  => __( 'Sender of the SMS when a message is received at a mobile phone', MOCEANSMS_TEXT_DOMAIN ),
    118119                    'type'  => 'text',
     120                    'sanitize_callback' => array($this, "validate_sender_id"),
    119121                ),
    120122                array(//Get default country v1.1.17
  • moceansms-order-sms-notification-for-woocommerce/trunk/js/admin.js

    r2872923 r2965619  
    11let caretPosition = 0;
    22jQuery(function ($) {
    3     $("#moceansms_setting\\[moceansms_woocommerce_sms_from\\]").focusout(function () {
     3    $("#moceansms_setting_form").on("submit", function (event) {
    44        var sender_id = $("#moceansms_setting\\[moceansms_woocommerce_sms_from\\]").val().trim();
    5         if ($.isNumeric(sender_id) && sender_id.length > 20) {
    6             alert('Message From is too long, max 20 digits for numeric SMS sender.');
     5        if ($.isNumeric(sender_id) && sender_id.length > 15) {
     6            alert('Message From is too long, max 15 digits for numeric SMS sender.');
     7            event.preventDefault();
     8            return;
    79        } else if (!$.isNumeric(sender_id) && sender_id.length > 11) {
    810            alert('Message From is too long, max 11 characters for alphanumeric SMS sender.');
     11            event.preventDefault();
     12            return;
    913        }
    1014        $("#moceansms_setting\\[moceansms_woocommerce_sms_from\\]").val(sender_id);
     15
    1116    });
    1217
  • moceansms-order-sms-notification-for-woocommerce/trunk/lib/class.settings-api.php

    r2644336 r2965619  
    569569
    570570                        ?>
    571                         <form method="post" action="<?php echo esc_url($action_url); ?>">
     571
     572                        <form id="<?php echo $form['id'] . "_form" ?>" method="post" action="<?php echo esc_url($action_url); ?>">
    572573                            <?php
    573574                            do_action( 'wsa_form_top_' . $form['id'], $form );
  • moceansms-order-sms-notification-for-woocommerce/trunk/moceansms-woocommerce.php

    r2904235 r2965619  
    55Plugin URI:  https://dashboard.moceanapi.com
    66Description: MoceanAPI Order SMS Notification for WooCommerce
    7 Version:     1.4.8
     7Version:     1.4.9
    88Author:      Micro Ocean Technologies
    99Author URI:  https://moceanapi.com
  • moceansms-order-sms-notification-for-woocommerce/trunk/readme.txt

    r2904246 r2965619  
    66WC requires at least: 2.6
    77WC tested up to: 5.2.2
    8 Stable tag: 1.4.8
     8Stable tag: 1.4.9
    99Requires PHP: 5.6
    1010License: GPLv3
     
    1212
    1313A plugin to send SMS notification to both buyer and seller after an order is placed in WooCommerce. SMS notification can be sent on all order statuses as well as with customized contents.
    14 
    15 == Description ==
    1614
    1715### MoceanAPI WooCommerce Order SMS Notification ###
     
    5048### Integrations Supported ###
    5149
    52 #### Supported Reservation / Booking / Appointment Plugins ####
     50* Supported Reservation / Booking / Appointment Plugins:
    5351
    5452🥡 [Five Star Restaurant Reservations – WordPress Booking Plugin](https://wordpress.org/plugins/restaurant-reservations/).
     
    6058You'll be able to **send booking notifications** to your customers when booking status changes.
    6159
    62 #### Supported Membership Plugins ####
     60* Supported Membership Plugins:
    6361
    6462🧑‍🤝‍🧑 [ARMember – Membership Plugin](https://wordpress.org/plugins/armember-membership/)
     
    7068You'll be able to send membership notification & reminders to your members.
    7169
    72 #### Supported CRM Plugins ####
     70* Supported CRM Plugins:
    7371
    7472💰 [Jetpack CRM](https://wordpress.org/plugins/zero-bs-crm/)
     
    7977You'll be able to send notifications to your contacts / leads when their status changed.
    8078
    81 #### Supported Forms Plugins ####
     79* Supported Forms Plugins:
    8280📝 [Contact Form 7](https://wordpress.org/plugins/contact-form-7/).
    8381
    8482You'll be able to send notifications to customer when a new form is submitted.
    8583
    86 #### Compatibility ####
    87 
    88 [Custom Order Status for WooCommerce](https://wordpress.org/plugins/custom-order-statuses-woocommerce/)
    89 [Custom Order Statuses for WooCommerce](https://wordpress.org/plugins/custom-order-statuses-for-woocommerce/)
    90 [Ni WooCommerce Custom Order Status](https://wordpress.org/plugins/ni-woocommerce-custom-order-status/)
    91 [Ultimate Member – User Profile, User Registration, Login & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
    92 [Members – Membership & User Role Editor Plugin](https://wordpress.org/plugins/members/)
    93 [Paid Memberships Pro](https://wordpress.org/plugins/paid-memberships-pro/)
     84* Compatibility
     85
     86*   [Custom Order Status for WooCommerce](https://wordpress.org/plugins/custom-order-statuses-woocommerce/)
     87*   [Custom Order Statuses for WooCommerce](https://wordpress.org/plugins/custom-order-statuses-for-woocommerce/)
     88*   [Ni WooCommerce Custom Order Status](https://wordpress.org/plugins/ni-woocommerce-custom-order-status/)
     89*   [Ultimate Member – User Profile, User Registration, Login & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
     90*   [Members – Membership & User Role Editor Plugin](https://wordpress.org/plugins/members/)
     91*   [Paid Memberships Pro](https://wordpress.org/plugins/paid-memberships-pro/)
    9492
    9593== Installation ==
     
    109107
    110108== Changelog ==
     109
     110= 1.4.9 =
     111* Added validation check for sender id
    111112
    112113= 1.4.8 =
Note: See TracChangeset for help on using the changeset viewer.