Changeset 3196211
- Timestamp:
- 11/25/2024 08:42:32 AM (17 months ago)
- Location:
- cod24-shipping
- Files:
-
- 22 added
- 1 deleted
- 3 edited
-
tags/3.4.1 (added)
-
tags/3.4.1/assets (added)
-
tags/3.4.1/assets/css (added)
-
tags/3.4.1/assets/css/cod24-woo-admin.css (added)
-
tags/3.4.1/assets/css/sweetalert2.css (added)
-
tags/3.4.1/assets/index.php (added)
-
tags/3.4.1/assets/js (added)
-
tags/3.4.1/assets/js/city-select.js (added)
-
tags/3.4.1/assets/js/cod24-shcod-fee.js (added)
-
tags/3.4.1/assets/js/cod24-woo-admin.js (added)
-
tags/3.4.1/assets/js/sweetalert2.js (added)
-
tags/3.4.1/cod24-shipping.php (added)
-
tags/3.4.1/inc (added)
-
tags/3.4.1/inc/class-cod24-api.php (added)
-
tags/3.4.1/inc/class-cod24-pishtaz.php (added)
-
tags/3.4.1/inc/class-cod24-settings.php (added)
-
tags/3.4.1/inc/class-cod24-shcod.php (added)
-
tags/3.4.1/inc/class-cod24-special.php (added)
-
tags/3.4.1/inc/class-cod24-woo.php (added)
-
tags/3.4.1/inc/index.php (added)
-
tags/3.4.1/index.php (added)
-
tags/3.4.1/readme.txt (added)
-
tags/3.4/readme.txt (deleted)
-
trunk/cod24-shipping.php (modified) (2 diffs)
-
trunk/inc/class-cod24-woo.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cod24-shipping/trunk/cod24-shipping.php
r3191219 r3196211 3 3 Plugin Name: COD24 Shipping For Woocommerce 4 4 Description: This plugin is adding COD24 shipping methods to woocommerce. 5 Version: 3.4 5 Version: 3.4.1 6 6 Author: COD24 7 7 Author URI: https://cod24.ir … … 27 27 public function __construct() 28 28 { 29 define('COD24_PLUGIN_VERSION', '3.4 ');29 define('COD24_PLUGIN_VERSION', '3.4.1'); 30 30 define('COD24_PLUGIN_DIR', plugin_dir_path(__FILE__)); 31 31 define('COD24_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cod24-shipping/trunk/inc/class-cod24-woo.php
r3191219 r3196211 111 111 112 112 // Check if we are on the WooCommerce Orders pages 113 if ($hook === ' edit.php' && isset($_GET['post_type']) && $_GET['post_type']=== 'shop_order' || $hook === 'woocommerce_page_wc-orders')113 if ($hook === 'post.php' && isset($_GET['post']) && get_post_type( absint( $_GET['post'] ) ) === 'shop_order' || $hook === 'woocommerce_page_wc-orders') 114 114 { 115 115 wp_enqueue_style('sweetalert2', COD24_PLUGIN_URL . 'assets/css/sweetalert2.css', array(), COD24_PLUGIN_VERSION); … … 399 399 public function order_detail_callback( $post_or_order_object ) 400 400 { 401 $order = ( $post_or_order_object instanceof WP_Post ) ? wc_get_order( $post_or_order_object->ID ) : $post_or_order_object; 401 $order_id = ( get_class($post_or_order_object) === 'WP_Post' ) ? $post_or_order_object->ID : $post_or_order_object->get_id(); 402 $order = wc_get_order( $order_id ); 402 403 $order_cod24_serial = $order->get_meta('_cod24_serial', true) ? $order->get_meta('_cod24_serial', true) : ''; 403 404 $order_cod24_barcode = $order->get_meta('_cod24_barcode', true) ? $order->get_meta('_cod24_barcode', true) : ''; … … 988 989 /* translators: %s is the post serial */ 989 990 $serial_output = sprintf( 990 esc_attr__("Serial: <strong>%s</strong>", 'cod24-shipping'),991 __("Serial: <strong>%s</strong>", 'cod24-shipping'), 991 992 !empty($cod24_serial) ? esc_attr($cod24_serial) : '-' 992 993 ); … … 996 997 /* translators: %s is the post barcode */ 997 998 $barcode_output = sprintf( 998 esc_attr__("<br />Post Barcode: <strong>%s</strong>", 'cod24-shipping'),999 __("<br />Post Barcode: <strong>%s</strong>", 'cod24-shipping'), 999 1000 !empty($cod24_barcode) ? esc_attr($cod24_barcode) : '-' 1000 1001 ); -
cod24-shipping/trunk/readme.txt
r3191219 r3196211 1 1 === COD24 Shipping For Woocommerce === 2 2 Contributors: cod24, vadatiertebat 3 Tags: cod24, woocommerce shipping, cod24 shipping, shipping method, post, tipax3 Tags: cod24, delivery, tipax, woocommerce shipping, shipping method 4 4 Requires at least: 5.0 5 5 Tested up to: 6.7 6 Stable tag: 3.4 6 Stable tag: 3.4.1 7 7 License: GPL-2.0+ 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.