Changeset 3366997
- Timestamp:
- 09/24/2025 08:22:48 AM (6 months ago)
- Location:
- refatbd-advanced-sms-for-woocommerce
- Files:
-
- 48 added
- 6 edited
-
tags/2.0.2 (added)
-
tags/2.0.2/assets (added)
-
tags/2.0.2/assets/css (added)
-
tags/2.0.2/assets/css/admin-styles.css (added)
-
tags/2.0.2/assets/css/index.php (added)
-
tags/2.0.2/assets/css/select2.min.css (added)
-
tags/2.0.2/assets/fonts (added)
-
tags/2.0.2/assets/fonts/d3euronism-webfont.eot (added)
-
tags/2.0.2/assets/fonts/d3euronism-webfont.svg (added)
-
tags/2.0.2/assets/fonts/d3euronism-webfont.ttf (added)
-
tags/2.0.2/assets/fonts/d3euronism-webfont.woff (added)
-
tags/2.0.2/assets/fonts/d3euronism-webfont.woff2 (added)
-
tags/2.0.2/assets/fonts/genericons-webfont.eot (added)
-
tags/2.0.2/assets/fonts/genericons-webfont.svg (added)
-
tags/2.0.2/assets/fonts/genericons-webfont.ttf (added)
-
tags/2.0.2/assets/fonts/genericons-webfont.woff (added)
-
tags/2.0.2/assets/fonts/genericons-webfont.woff2 (added)
-
tags/2.0.2/assets/fonts/index.php (added)
-
tags/2.0.2/assets/fonts/stylesheet.css (added)
-
tags/2.0.2/assets/images (added)
-
tags/2.0.2/assets/images/cabecera.jpg (added)
-
tags/2.0.2/assets/images/index.php (added)
-
tags/2.0.2/assets/images/logo.png (added)
-
tags/2.0.2/assets/images/stars.png (added)
-
tags/2.0.2/assets/index.php (added)
-
tags/2.0.2/assets/js (added)
-
tags/2.0.2/assets/js/admin-scripts.js (added)
-
tags/2.0.2/assets/js/index.php (added)
-
tags/2.0.2/includes (added)
-
tags/2.0.2/includes/admin (added)
-
tags/2.0.2/includes/admin/admin-functions.php (added)
-
tags/2.0.2/includes/admin/admin-settings-page.php (added)
-
tags/2.0.2/includes/admin/api-status-display.php (added)
-
tags/2.0.2/includes/admin/index.php (added)
-
tags/2.0.2/includes/admin/sms-provider-functions.php (added)
-
tags/2.0.2/includes/class-refaadsm-settings.php (added)
-
tags/2.0.2/includes/core-functions.php (added)
-
tags/2.0.2/includes/index.php (added)
-
tags/2.0.2/includes/info-box.php (added)
-
tags/2.0.2/index.php (added)
-
tags/2.0.2/languages (added)
-
tags/2.0.2/languages/index.php (added)
-
tags/2.0.2/languages/refatbd-advanced-sms-for-woocommerce.mo (added)
-
tags/2.0.2/languages/refatbd-advanced-sms-for-woocommerce.po (added)
-
tags/2.0.2/license.txt (added)
-
tags/2.0.2/readme.md (added)
-
tags/2.0.2/readme.txt (added)
-
tags/2.0.2/refatbd-advanced-sms-for-woocommerce.php (added)
-
trunk/includes/admin/admin-settings-page.php (modified) (1 diff)
-
trunk/includes/class-refaadsm-settings.php (modified) (3 diffs)
-
trunk/includes/core-functions.php (modified) (1 diff)
-
trunk/readme.md (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/refatbd-advanced-sms-for-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
refatbd-advanced-sms-for-woocommerce/trunk/includes/admin/admin-settings-page.php
r3322596 r3366997 209 209 <?php refaadsm_render_setting_field( 'shipping_phone_meta_key', __( 'Shipping Phone Meta Key', 'refatbd-advanced-sms-for-woocommerce' ), 'text', array('default' => '_shipping_phone'), __( 'The order meta key for the shipping phone number. Default is `_shipping_phone`.', 'refatbd-advanced-sms-for-woocommerce' ) ); ?> 210 210 <?php refaadsm_render_setting_field( 'normalize_characters', __( 'Normalize Characters', 'refatbd-advanced-sms-for-woocommerce' ), 'toggle', array(), __( 'Convert special characters (e.g., accented letters) to their plain ASCII equivalents to potentially save SMS length. May affect message readability for some languages.', 'refatbd-advanced-sms-for-woocommerce' ) ); ?> 211 <?php refaadsm_render_setting_field( 'enable_bd_sms', __( 'Send SMS to Bangladesh Numbers', 'refatbd-advanced-sms-for-woocommerce' ), 'toggle', array(), __( 'If "Send International SMS" is off, this will add the BD country code for orders from Bangladesh.', 'refatbd-advanced-sms-for-woocommerce' ) ); ?> 211 212 <?php 212 213 // translators: %order_product% is a placeholder for product details. -
refatbd-advanced-sms-for-woocommerce/trunk/includes/class-refaadsm-settings.php
r3322596 r3366997 103 103 'enable_debug_email' => 0, 104 104 'debug_email_address' => get_option('admin_email'), 105 'enable_bd_sms' => 0, 105 106 ); 106 107 } … … 126 127 'product_rules' => array( 127 128 'product_sms_rule' => array( 128 'label' => 'Product SMS Rule', 129 'type' => 'select', 129 'label' => 'Product SMS Rule', 130 'type' => 'select', 130 131 'args' => ['options' => array( 131 132 'all' => 'Send SMS for All Products (Default)', … … 156 157 'enable_debug_email' => array('label' => 'Enable Debug Emails', 'type' => 'toggle', 'description' => 'Send detailed debug information about SMS sending attempts to an email address.'), 157 158 'debug_email_address' => array('label' => 'Debug Email Address', 'type' => 'email', 'description' => 'Email address to receive debug logs. Only used if Debug Emails are enabled.'), 159 'enable_bd_sms' => array('label' => 'Send SMS to Bangladesh Numbers', 'type' => 'toggle', 'description' => 'If "Send International SMS" is off, this will add the BD country code for orders from Bangladesh.'), 158 160 ) 159 161 ); -
refatbd-advanced-sms-for-woocommerce/trunk/includes/core-functions.php
r3322596 r3366997 77 77 } 78 78 } 79 } 79 } elseif ( !empty($settings['enable_bd_sms']) && !$is_admin_phone && $order && $order->get_billing_country() === 'BD' ) { 80 $country_code = '880'; 81 if (strpos($processed_phone, '+') !== 0) { 82 $digits_only = preg_replace('/[^\d]/', '', $processed_phone); 83 if (strpos($digits_only, $country_code) === 0) { 84 $processed_phone = '+' . $digits_only; 85 } else { 86 $processed_phone = '+' . $country_code . ltrim($digits_only, '0'); 87 } 88 } 89 } 90 80 91 81 92 return $processed_phone; -
refatbd-advanced-sms-for-woocommerce/trunk/readme.md
r3322596 r3366997 8 8 **WC tested up to:** 8.8 9 9 **Requires Plugins:** woocommerce 10 **Stable tag:** 2.0. 110 **Stable tag:** 2.0.2 11 11 **License:** GPLv3 12 12 **License URI:** http://www.gnu.org/licenses/gpl-3.0.html … … 77 77 ## Changelog 78 78 79 ### 2.0.2 80 * NEW: Added an option to handle Bangladesh phone numbers when international SMS is disabled. 81 79 82 ### 2.0.1 83 80 84 * SECURITY: Hardening and security enhancements. 81 85 * FIX: All issues from the WordPress plugin review team have been addressed. -
refatbd-advanced-sms-for-woocommerce/trunk/readme.txt
r3322596 r3366997 6 6 WC requires at least: 3.0 7 7 WC tested up to: 8.8 8 Stable tag: 2.0. 18 Stable tag: 2.0.2 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 69 69 1. Admin Settings - General Tab 70 70 2. Admin Settings - Customer Messages Tab 71 3. Admin Settings - Admin Messages Tab71 3. Admin Settings - Product Rules Tab 72 72 4. Admin Settings - API Settings Tab 73 5. Admin Settings - Product Rules Tab 74 6. Admin Settings - Advanced Tab 75 7. Admin Settings - History Tab 73 5. Admin Settings - History Tab 74 6. Admin Settings - Log Tab 76 75 77 76 == Changelog == 77 78 = 2.0.2 = 79 * NEW: Added an option to handle Bangladesh phone numbers when international SMS is disabled. 78 80 79 81 = 2.0.1 = -
refatbd-advanced-sms-for-woocommerce/trunk/refatbd-advanced-sms-for-woocommerce.php
r3322596 r3366997 2 2 /* 3 3 Plugin Name: refatbd Advanced SMS for WooCommerce 4 Version: 2.0. 14 Version: 2.0.2 5 5 Plugin URI: https://refat.ovh/plugins/refatbd-advanced-sms-for-woocommerce/ 6 6 Description: An enhanced and actively maintained version of SMSQ Notifications. Adds SMS notifications for WooCommerce order status changes, with product-specific rules, a modern admin interface, SMS history, and a debug log. This plugin is a fork of the original 'SMSQ Notifications for WooCommerce' by SMSQ | Q Technologies Limited. … … 38 38 define( 'REFAADSM_PLUGIN_PATH', plugin_dir_path( REFAADSM_PLUGIN_FILE ) ); 39 39 define( 'REFAADSM_PLUGIN_URL', plugin_dir_url( REFAADSM_PLUGIN_FILE ) ); 40 define( 'REFAADSM_VERSION', '2.0. 1' ); // Incremented version40 define( 'REFAADSM_VERSION', '2.0.2' ); // Incremented version 41 41 define( 'REFAADSM_DB_VERSION_OPTION', 'refaadsm_advanced_sms_db_version' ); 42 42 define( 'REFAADSM_SETTINGS_OPTION', 'refaadsm_advanced_sms_settings' );
Note: See TracChangeset
for help on using the changeset viewer.