Changeset 3349076
- Timestamp:
- 08/23/2025 09:52:20 PM (6 months ago)
- Location:
- wc-smart-cod/trunk
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
README.txt (modified) (1 diff)
-
admin/class-wc-smart-cod-admin.php (modified) (3 diffs)
-
admin/js (modified) (1 prop)
-
includes/class-wc-smart-cod.php (modified) (2 diffs)
-
wc-smart-cod.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-smart-cod/trunk
-
Property
svn:ignore
set to
.git
.vscode
tests
vendor
.idea
node_modules
.gitignore
composer.json
composer.lock
deploy-wp-org.cmd
deploy-wp-org.sh
wc-smart-cod-admin.js
-
Property
svn:ignore
set to
-
wc-smart-cod/trunk/README.txt
r3327290 r3349076 3 3 Tags: WooCommerce, Cash on Delivery, COD, COD Extra Fee, Smart COD, WooCommerce COD, Multiple Fees 4 4 Requires at least: 3.0.1 5 Tested up to: 6.8. 16 Stable tag: 1.8. 25 Tested up to: 6.8.2 6 Stable tag: 1.8.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
wc-smart-cod/trunk/admin/class-wc-smart-cod-admin.php
r3327290 r3349076 64 64 $this->plugin_name = 'wc-smart-cod'; 65 65 $this->version = SMART_COD_VER; 66 66 67 $this->normalize_settings(); 68 67 69 $this->settings_manager = (object)Wc_Smart_Cod::get_settings_manager(); 68 70 … … 70 72 add_action( 'woocommerce_settings_api_form_fields_cod', array( $this, 'extend_cod' ) ); 71 73 add_action( 'woocommerce_settings_api_sanitized_fields_cod', array( $this, 'clean_up_settings' ) ); 72 add_filter( 'experimental_woocommerce_admin_payment_reactify_render_sections', array( $this, 'woocommerce_smart_cod') );73 74 add_action( 'woocommerce_delete_shipping_zone', array( $this, 'clean_up_gateway' ) ); 75 } 76 77 private function normalize_settings() { 78 if(is_array($this->settings) 79 && isset($this->settings['restrict_postals']) 80 && is_array($this->settings['restrict_postals'])) { 81 $this->settings['restrict_postals'] = ''; 82 } 74 83 } 75 84 … … 231 240 } 232 241 233 }234 235 public function woocommerce_smart_cod($sections) {236 $cod = 'cod';237 return array_filter($sections, function($v) use ($cod) {238 return $v !== $cod;239 });240 242 } 241 243 -
wc-smart-cod/trunk/admin/js
-
Property
svn:ignore
set to
wc-smart-cod-admin.js
-
Property
svn:ignore
set to
-
wc-smart-cod/trunk/includes/class-wc-smart-cod.php
r3327290 r3349076 80 80 $this->plugin_name = 'wc-smart-cod'; 81 81 82 define( 'SMART_COD_VER', '1.8. 2' );82 define( 'SMART_COD_VER', '1.8.3' ); 83 83 84 84 self::$version = SMART_COD_VER; … … 99 99 add_action( 'admin_notices', array( $this, 'show_wsc_notice' ) ); 100 100 add_filter( 'plugin_action_links_wc-smart-cod/wc-smart-cod.php', array( $this, 'plugin_action_links' ) ); 101 } 102 101 add_filter( 'experimental_woocommerce_admin_payment_reactify_render_sections', array( $this, 'woocommerce_smart_cod') ); 102 } 103 104 public function woocommerce_smart_cod($sections) { 105 $cod = 'cod'; 106 return array_filter($sections, function($v) use ($cod) { 107 return $v !== $cod; 108 }); 109 } 110 103 111 public function plugin_action_links( $links ) { 104 112 $plugin_links = array(); -
wc-smart-cod/trunk/wc-smart-cod.php
r3327290 r3349076 17 17 * Plugin URI: https://wordpress.org/plugins/wc-smart-cod/ 18 18 * Description: A powerful plugin that extends WooCommerce COD (Cash on Delivery) Gateway, supporting multiple extra fees and a multiple factor gateway restriction. 19 * Version: 1.8. 219 * Version: 1.8.3 20 20 * Author: woosmartcod.com 21 21 * Author URI: https://woosmartcod.com … … 25 25 * Domain Path: /languages 26 26 * WC requires at least: 2.7 27 * WC tested up to: 9.9.527 * WC tested up to: 10.1.1 28 28 */ 29 29
Note: See TracChangeset
for help on using the changeset viewer.