Advanced Shipment Tracking for WooCommerce - Version 3.2.1.3

Version Description

  • Fix - Fixed issue with custom order status is not show in Order Email Display Add Tracking action settings
Download this release

Release Info

Developer zorem
Plugin Icon 128x128 Advanced Shipment Tracking for WooCommerce
Version 3.2.1.3
Comparing to
See all releases

Code changes from version 3.2.1.2 to 3.2.1.3

includes/class-wc-advanced-shipment-tracking-admin.php CHANGED
@@ -649,22 +649,21 @@ class WC_Advanced_Shipment_Tracking_Admin {
649
  <div class="multiple_checkbox_parent">
650
  <?php $op = 1;
651
  foreach((array)$array['options'] as $key => $val ){
652
- if($val['type'] == 'default'){
653
- $multi_checkbox_data = get_option($id);
654
- if(isset($multi_checkbox_data[$key]) && $multi_checkbox_data[$key] == 1){
655
- $checked="checked";
656
- } else{
657
- $checked="";
658
- }?>
659
- <span class="multiple_checkbox">
660
- <label class="" for="">
661
- <input type="hidden" name="<?php echo $id?>[<?php echo $key?>]" value="0"/>
662
- <input type="checkbox" name="<?php echo $id?>[<?php echo $key?>]" class="" <?php echo $checked; ?> value="1"/>
663
- <span class="multiple_label"><?php echo $val['status']; ?></span>
664
- </br>
665
- </label>
666
- </span>
667
- <?php } } ?>
668
  </div>
669
  </li>
670
  <?php } else if($array['type'] == 'dropdown_tpage'){ ?>
@@ -840,7 +839,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
840
  ),
841
  );
842
 
843
- $order_status_array = array_merge($order_status,$custom_order_status);
844
 
845
  $action_order_status_array = array_merge($actions_order_status,$custom_order_status);
846
 
649
  <div class="multiple_checkbox_parent">
650
  <?php $op = 1;
651
  foreach((array)$array['options'] as $key => $val ){
652
+ $multi_checkbox_data = get_option($id);
653
+ if(isset($multi_checkbox_data[$key]) && $multi_checkbox_data[$key] == 1){
654
+ $checked="checked";
655
+ } else{
656
+ $checked="";
657
+ }?>
658
+ <span class="multiple_checkbox">
659
+ <label class="" for="">
660
+ <input type="hidden" name="<?php echo $id?>[<?php echo $key?>]" value="0"/>
661
+ <input type="checkbox" name="<?php echo $id?>[<?php echo $key?>]" class="" <?php echo $checked; ?> value="1"/>
662
+ <span class="multiple_label"><?php echo $val['status']; ?></span>
663
+ </br>
664
+ </label>
665
+ </span>
666
+ <?php } ?>
 
667
  </div>
668
  </li>
669
  <?php } else if($array['type'] == 'dropdown_tpage'){ ?>
839
  ),
840
  );
841
 
842
+ $order_status_array = array_merge($order_status,$custom_order_status);
843
 
844
  $action_order_status_array = array_merge($actions_order_status,$custom_order_status);
845
 
includes/class-wc-advanced-shipment-tracking-install.php CHANGED
@@ -77,6 +77,8 @@ class WC_Advanced_Shipment_Tracking_Install {
77
  $sql = "CREATE TABLE $woo_shippment_table_name (
78
  id mediumint(9) NOT NULL AUTO_INCREMENT,
79
  provider_name varchar(500) DEFAULT '' NOT NULL,
 
 
80
  ts_slug text NULL DEFAULT NULL,
81
  provider_url varchar(500) DEFAULT '' NULL,
82
  shipping_country varchar(45) DEFAULT '' NULL,
@@ -92,7 +94,7 @@ class WC_Advanced_Shipment_Tracking_Install {
92
 
93
  $this->update_shipping_providers();
94
 
95
- update_option( 'wc_advanced_shipment_tracking', '3.18');
96
  }
97
 
98
  $wc_ast_default_mark_shipped = get_option('wc_ast_default_mark_shipped');
@@ -252,6 +254,21 @@ class WC_Advanced_Shipment_Tracking_Install {
252
  }
253
 
254
  update_option( 'wc_advanced_shipment_tracking', '3.18');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  }
256
  }
257
  }
77
  $sql = "CREATE TABLE $woo_shippment_table_name (
78
  id mediumint(9) NOT NULL AUTO_INCREMENT,
79
  provider_name varchar(500) DEFAULT '' NOT NULL,
80
+ api_provider_name text NULL DEFAULT NULL,
81
+ custom_provider_name text NULL DEFAULT NULL,
82
  ts_slug text NULL DEFAULT NULL,
83
  provider_url varchar(500) DEFAULT '' NULL,
84
  shipping_country varchar(45) DEFAULT '' NULL,
94
 
95
  $this->update_shipping_providers();
96
 
97
+ update_option( 'wc_advanced_shipment_tracking', '3.19');
98
  }
99
 
100
  $wc_ast_default_mark_shipped = get_option('wc_ast_default_mark_shipped');
254
  }
255
 
256
  update_option( 'wc_advanced_shipment_tracking', '3.18');
257
+ }
258
+
259
+ if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.19', '<') ){
260
+
261
+ global $wpdb;
262
+ $results = $wpdb->get_row( "SELECT * FROM $this->table LIMIT 1" );
263
+
264
+ if(!isset($results->custom_provider_name)) {
265
+ $res = $wpdb->query( "ALTER TABLE $this->table ADD custom_provider_name text NULL DEFAULT NULL AFTER provider_name" );
266
+ }
267
+
268
+ if(!isset($results->api_provider_name)) {
269
+ $res = $wpdb->query( "ALTER TABLE $this->table ADD api_provider_name text NULL DEFAULT NULL AFTER provider_name" );
270
+ }
271
+ update_option( 'wc_advanced_shipment_tracking', '3.19');
272
  }
273
  }
274
  }
readme.txt CHANGED
@@ -142,6 +142,9 @@ Yes, if you use external shipping services that work with the WooCommerce REST A
142
 
143
  == Changelog ==
144
 
 
 
 
145
  = 3.2.1.2 =
146
  * Enhancement - Improved the TrackShip tracking page customizer
147
  * Enhancement - Updated design of Tracking tracking page
142
 
143
  == Changelog ==
144
 
145
+ = 3.2.1.3 =
146
+ * Fix - Fixed issue with custom order status is not show in Order Email Display Add Tracking action settings
147
+
148
  = 3.2.1.2 =
149
  * Enhancement - Improved the TrackShip tracking page customizer
150
  * Enhancement - Updated design of Tracking tracking page
woocommerce-advanced-shipment-tracking.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Advanced Shipment Tracking for WooCommerce
5
  * Plugin URI: https://www.zorem.com/products/woocommerce-advanced-shipment-tracking/
6
  * Description: Add shipment tracking information to your WooCommerce orders and provide customers with an easy way to track their orders. Shipment tracking Info will appear in customers accounts (in the order panel) and in WooCommerce order complete email.
7
- * Version: 3.2.1.2
8
  * Author: zorem
9
  * Author URI: https://www.zorem.com
10
  * License: GPL-2.0+
@@ -21,7 +21,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
21
  *
22
  * @var string
23
  */
24
- public $version = '3.2.1.2';
25
 
26
  /**
27
  * Initialize the main plugin function
4
  * Plugin Name: Advanced Shipment Tracking for WooCommerce
5
  * Plugin URI: https://www.zorem.com/products/woocommerce-advanced-shipment-tracking/
6
  * Description: Add shipment tracking information to your WooCommerce orders and provide customers with an easy way to track their orders. Shipment tracking Info will appear in customers accounts (in the order panel) and in WooCommerce order complete email.
7
+ * Version: 3.2.1.3
8
  * Author: zorem
9
  * Author URI: https://www.zorem.com
10
  * License: GPL-2.0+
21
  *
22
  * @var string
23
  */
24
+ public $version = '3.2.1.3';
25
 
26
  /**
27
  * Initialize the main plugin function