AfterShip – WooCommerce Tracking - Version 1.13.4

Version Description

  • Add tracking created time for AfterShip
Download this release

Release Info

Developer aftership
Plugin Icon 128x128 AfterShip – WooCommerce Tracking
Version 1.13.4
Comparing to
See all releases

Code changes from version 1.13.3 to 1.13.4

aftership-woocommerce-tracking.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available)
4
  * Plugin URI: http://aftership.com/
5
  * Description: Track orders in one place. shipment tracking, automated notifications, order lookup, branded tracking page, delivery day prediction
6
- * Version: 1.13.3
7
  * Author: AfterShip
8
  * Author URI: http://aftership.com
9
  *
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
20
 
21
  require_once( 'woo-includes/woo-functions.php' );
22
 
23
- define( 'AFTERSHIP_VERSION', '1.13.3' );
24
  define( 'AFTERSHIP_PATH', dirname( __FILE__ ) );
25
  define( 'AFTERSHIP_ASSETS_URL', plugins_url() . '/' . basename( AFTERSHIP_PATH ) );
26
 
3
  * Plugin Name: AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available)
4
  * Plugin URI: http://aftership.com/
5
  * Description: Track orders in one place. shipment tracking, automated notifications, order lookup, branded tracking page, delivery day prediction
6
+ * Version: 1.13.4
7
  * Author: AfterShip
8
  * Author URI: http://aftership.com
9
  *
20
 
21
  require_once( 'woo-includes/woo-functions.php' );
22
 
23
+ define( 'AFTERSHIP_VERSION', '1.13.4' );
24
  define( 'AFTERSHIP_PATH', dirname( __FILE__ ) );
25
  define( 'AFTERSHIP_ASSETS_URL', plugins_url() . '/' . basename( AFTERSHIP_PATH ) );
26
 
assets/js/couriers.js CHANGED
@@ -1231,6 +1231,12 @@ function get_aftership_couriers() {
1231
  "other_name": "",
1232
  "required_fields": []
1233
  },
 
 
 
 
 
 
1234
  {
1235
  "slug": "dbschenker-b2b",
1236
  "name": "DB Schenker B2B",
@@ -1263,12 +1269,6 @@ function get_aftership_couriers() {
1263
  "other_name": "",
1264
  "required_fields": []
1265
  },
1266
- {
1267
- "slug": "delcart-in",
1268
- "name": "Delcart",
1269
- "other_name": "",
1270
- "required_fields": []
1271
- },
1272
  {
1273
  "slug": "delhivery",
1274
  "name": "Delhivery",
@@ -2025,6 +2025,12 @@ function get_aftership_couriers() {
2025
  "other_name": "Fastway Couriers",
2026
  "required_fields": []
2027
  },
 
 
 
 
 
 
2028
  {
2029
  "slug": "fedex",
2030
  "name": "FedEx®",
@@ -3327,6 +3333,12 @@ function get_aftership_couriers() {
3327
  "other_name": "",
3328
  "required_fields": []
3329
  },
 
 
 
 
 
 
3330
  {
3331
  "slug": "mondialrelay",
3332
  "name": "Mondial Relay",
@@ -3720,6 +3732,12 @@ function get_aftership_couriers() {
3720
  "tracking_postal_code"
3721
  ]
3722
  },
 
 
 
 
 
 
3723
  {
3724
  "slug": "pago",
3725
  "name": "Pago Logistics",
@@ -3868,6 +3886,12 @@ function get_aftership_couriers() {
3868
  "other_name": null,
3869
  "required_fields": []
3870
  },
 
 
 
 
 
 
3871
  {
3872
  "slug": "pb-uspsflats-ftp",
3873
  "name": "USPS Flats (Pitney Bowes)",
@@ -4157,6 +4181,12 @@ function get_aftership_couriers() {
4157
  "other_name": "",
4158
  "required_fields": []
4159
  },
 
 
 
 
 
 
4160
  {
4161
  "slug": "quantium",
4162
  "name": "Quantium",
@@ -4327,12 +4357,6 @@ function get_aftership_couriers() {
4327
  "other_name": "RZYExpress",
4328
  "required_fields": []
4329
  },
4330
- {
4331
- "slug": "saee",
4332
- "name": "One Saar for IT",
4333
- "other_name": "",
4334
- "required_fields": []
4335
- },
4336
  {
4337
  "slug": "safexpress",
4338
  "name": "Safexpress",
@@ -4435,6 +4459,12 @@ function get_aftership_couriers() {
4435
  "other_name": "順豊快遞, SF",
4436
  "required_fields": []
4437
  },
 
 
 
 
 
 
4438
  {
4439
  "slug": "sfb2c",
4440
  "name": "SF International",
@@ -5097,6 +5127,12 @@ function get_aftership_couriers() {
5097
  "tracking_account_number"
5098
  ]
5099
  },
 
 
 
 
 
 
5100
  {
5101
  "slug": "tourline",
5102
  "name": "tourline",
@@ -5127,6 +5163,12 @@ function get_aftership_couriers() {
5127
  "other_name": "",
5128
  "required_fields": []
5129
  },
 
 
 
 
 
 
5130
  {
5131
  "slug": "transmission-nl",
5132
  "name": "TransMission",
@@ -5170,6 +5212,12 @@ function get_aftership_couriers() {
5170
  "other_name": "",
5171
  "required_fields": []
5172
  },
 
 
 
 
 
 
5173
  {
5174
  "slug": "uds",
5175
  "name": "United Delivery Service, Ltd",
1231
  "other_name": "",
1232
  "required_fields": []
1233
  },
1234
+ {
1235
+ "slug": "dbschenker-api",
1236
+ "name": "DB Schenker",
1237
+ "other_name": null,
1238
+ "required_fields": []
1239
+ },
1240
  {
1241
  "slug": "dbschenker-b2b",
1242
  "name": "DB Schenker B2B",
1269
  "other_name": "",
1270
  "required_fields": []
1271
  },
 
 
 
 
 
 
1272
  {
1273
  "slug": "delhivery",
1274
  "name": "Delhivery",
2025
  "other_name": "Fastway Couriers",
2026
  "required_fields": []
2027
  },
2028
+ {
2029
+ "slug": "fdsexpress",
2030
+ "name": "FDSEXPRESS",
2031
+ "other_name": null,
2032
+ "required_fields": []
2033
+ },
2034
  {
2035
  "slug": "fedex",
2036
  "name": "FedEx®",
3333
  "other_name": "",
3334
  "required_fields": []
3335
  },
3336
+ {
3337
+ "slug": "mnx",
3338
+ "name": "MNX",
3339
+ "other_name": null,
3340
+ "required_fields": []
3341
+ },
3342
  {
3343
  "slug": "mondialrelay",
3344
  "name": "Mondial Relay",
3732
  "tracking_postal_code"
3733
  ]
3734
  },
3735
+ {
3736
+ "slug": "padtf",
3737
+ "name": "平安达腾飞快递",
3738
+ "other_name": "PAD",
3739
+ "required_fields": []
3740
+ },
3741
  {
3742
  "slug": "pago",
3743
  "name": "Pago Logistics",
3886
  "other_name": null,
3887
  "required_fields": []
3888
  },
3889
+ {
3890
+ "slug": "patheon",
3891
+ "name": "Patheon Logistics",
3892
+ "other_name": null,
3893
+ "required_fields": []
3894
+ },
3895
  {
3896
  "slug": "pb-uspsflats-ftp",
3897
  "name": "USPS Flats (Pitney Bowes)",
4181
  "other_name": "",
4182
  "required_fields": []
4183
  },
4184
+ {
4185
+ "slug": "qintl-api",
4186
+ "name": "Quickstat Courier LLC",
4187
+ "other_name": null,
4188
+ "required_fields": []
4189
+ },
4190
  {
4191
  "slug": "quantium",
4192
  "name": "Quantium",
4357
  "other_name": "RZYExpress",
4358
  "required_fields": []
4359
  },
 
 
 
 
 
 
4360
  {
4361
  "slug": "safexpress",
4362
  "name": "Safexpress",
4459
  "other_name": "順豊快遞, SF",
4460
  "required_fields": []
4461
  },
4462
+ {
4463
+ "slug": "sf-express-cn",
4464
+ "name": "SF Express China",
4465
+ "other_name": null,
4466
+ "required_fields": []
4467
+ },
4468
  {
4469
  "slug": "sfb2c",
4470
  "name": "SF International",
5127
  "tracking_account_number"
5128
  ]
5129
  },
5130
+ {
5131
+ "slug": "total-express-api",
5132
+ "name": "Total Express",
5133
+ "other_name": null,
5134
+ "required_fields": []
5135
+ },
5136
  {
5137
  "slug": "tourline",
5138
  "name": "tourline",
5163
  "other_name": "",
5164
  "required_fields": []
5165
  },
5166
+ {
5167
+ "slug": "transaher",
5168
+ "name": "Transaher",
5169
+ "other_name": null,
5170
+ "required_fields": []
5171
+ },
5172
  {
5173
  "slug": "transmission-nl",
5174
  "name": "TransMission",
5212
  "other_name": "",
5213
  "required_fields": []
5214
  },
5215
+ {
5216
+ "slug": "uc56",
5217
+ "name": "ucexpress",
5218
+ "other_name": "优速快递",
5219
+ "required_fields": []
5220
+ },
5221
  {
5222
  "slug": "uds",
5223
  "name": "United Delivery Service, Ltd",
assets/js/couriers.json CHANGED
@@ -1230,6 +1230,12 @@
1230
  "other_name": "",
1231
  "required_fields": []
1232
  },
 
 
 
 
 
 
1233
  {
1234
  "slug": "dbschenker-b2b",
1235
  "name": "DB Schenker B2B",
@@ -1262,12 +1268,6 @@
1262
  "other_name": "",
1263
  "required_fields": []
1264
  },
1265
- {
1266
- "slug": "delcart-in",
1267
- "name": "Delcart",
1268
- "other_name": "",
1269
- "required_fields": []
1270
- },
1271
  {
1272
  "slug": "delhivery",
1273
  "name": "Delhivery",
@@ -2024,6 +2024,12 @@
2024
  "other_name": "Fastway Couriers",
2025
  "required_fields": []
2026
  },
 
 
 
 
 
 
2027
  {
2028
  "slug": "fedex",
2029
  "name": "FedEx®",
@@ -3326,6 +3332,12 @@
3326
  "other_name": "",
3327
  "required_fields": []
3328
  },
 
 
 
 
 
 
3329
  {
3330
  "slug": "mondialrelay",
3331
  "name": "Mondial Relay",
@@ -3719,6 +3731,12 @@
3719
  "tracking_postal_code"
3720
  ]
3721
  },
 
 
 
 
 
 
3722
  {
3723
  "slug": "pago",
3724
  "name": "Pago Logistics",
@@ -3867,6 +3885,12 @@
3867
  "other_name": null,
3868
  "required_fields": []
3869
  },
 
 
 
 
 
 
3870
  {
3871
  "slug": "pb-uspsflats-ftp",
3872
  "name": "USPS Flats (Pitney Bowes)",
@@ -4156,6 +4180,12 @@
4156
  "other_name": "",
4157
  "required_fields": []
4158
  },
 
 
 
 
 
 
4159
  {
4160
  "slug": "quantium",
4161
  "name": "Quantium",
@@ -4326,12 +4356,6 @@
4326
  "other_name": "RZYExpress",
4327
  "required_fields": []
4328
  },
4329
- {
4330
- "slug": "saee",
4331
- "name": "One Saar for IT",
4332
- "other_name": "",
4333
- "required_fields": []
4334
- },
4335
  {
4336
  "slug": "safexpress",
4337
  "name": "Safexpress",
@@ -4434,6 +4458,12 @@
4434
  "other_name": "順豊快遞, SF",
4435
  "required_fields": []
4436
  },
 
 
 
 
 
 
4437
  {
4438
  "slug": "sfb2c",
4439
  "name": "SF International",
@@ -5096,6 +5126,12 @@
5096
  "tracking_account_number"
5097
  ]
5098
  },
 
 
 
 
 
 
5099
  {
5100
  "slug": "tourline",
5101
  "name": "tourline",
@@ -5126,6 +5162,12 @@
5126
  "other_name": "",
5127
  "required_fields": []
5128
  },
 
 
 
 
 
 
5129
  {
5130
  "slug": "transmission-nl",
5131
  "name": "TransMission",
@@ -5169,6 +5211,12 @@
5169
  "other_name": "",
5170
  "required_fields": []
5171
  },
 
 
 
 
 
 
5172
  {
5173
  "slug": "uds",
5174
  "name": "United Delivery Service, Ltd",
1230
  "other_name": "",
1231
  "required_fields": []
1232
  },
1233
+ {
1234
+ "slug": "dbschenker-api",
1235
+ "name": "DB Schenker",
1236
+ "other_name": null,
1237
+ "required_fields": []
1238
+ },
1239
  {
1240
  "slug": "dbschenker-b2b",
1241
  "name": "DB Schenker B2B",
1268
  "other_name": "",
1269
  "required_fields": []
1270
  },
 
 
 
 
 
 
1271
  {
1272
  "slug": "delhivery",
1273
  "name": "Delhivery",
2024
  "other_name": "Fastway Couriers",
2025
  "required_fields": []
2026
  },
2027
+ {
2028
+ "slug": "fdsexpress",
2029
+ "name": "FDSEXPRESS",
2030
+ "other_name": null,
2031
+ "required_fields": []
2032
+ },
2033
  {
2034
  "slug": "fedex",
2035
  "name": "FedEx®",
3332
  "other_name": "",
3333
  "required_fields": []
3334
  },
3335
+ {
3336
+ "slug": "mnx",
3337
+ "name": "MNX",
3338
+ "other_name": null,
3339
+ "required_fields": []
3340
+ },
3341
  {
3342
  "slug": "mondialrelay",
3343
  "name": "Mondial Relay",
3731
  "tracking_postal_code"
3732
  ]
3733
  },
3734
+ {
3735
+ "slug": "padtf",
3736
+ "name": "平安达腾飞快递",
3737
+ "other_name": "PAD",
3738
+ "required_fields": []
3739
+ },
3740
  {
3741
  "slug": "pago",
3742
  "name": "Pago Logistics",
3885
  "other_name": null,
3886
  "required_fields": []
3887
  },
3888
+ {
3889
+ "slug": "patheon",
3890
+ "name": "Patheon Logistics",
3891
+ "other_name": null,
3892
+ "required_fields": []
3893
+ },
3894
  {
3895
  "slug": "pb-uspsflats-ftp",
3896
  "name": "USPS Flats (Pitney Bowes)",
4180
  "other_name": "",
4181
  "required_fields": []
4182
  },
4183
+ {
4184
+ "slug": "qintl-api",
4185
+ "name": "Quickstat Courier LLC",
4186
+ "other_name": null,
4187
+ "required_fields": []
4188
+ },
4189
  {
4190
  "slug": "quantium",
4191
  "name": "Quantium",
4356
  "other_name": "RZYExpress",
4357
  "required_fields": []
4358
  },
 
 
 
 
 
 
4359
  {
4360
  "slug": "safexpress",
4361
  "name": "Safexpress",
4458
  "other_name": "順豊快遞, SF",
4459
  "required_fields": []
4460
  },
4461
+ {
4462
+ "slug": "sf-express-cn",
4463
+ "name": "SF Express China",
4464
+ "other_name": null,
4465
+ "required_fields": []
4466
+ },
4467
  {
4468
  "slug": "sfb2c",
4469
  "name": "SF International",
5126
  "tracking_account_number"
5127
  ]
5128
  },
5129
+ {
5130
+ "slug": "total-express-api",
5131
+ "name": "Total Express",
5132
+ "other_name": null,
5133
+ "required_fields": []
5134
+ },
5135
  {
5136
  "slug": "tourline",
5137
  "name": "tourline",
5162
  "other_name": "",
5163
  "required_fields": []
5164
  },
5165
+ {
5166
+ "slug": "transaher",
5167
+ "name": "Transaher",
5168
+ "other_name": null,
5169
+ "required_fields": []
5170
+ },
5171
  {
5172
  "slug": "transmission-nl",
5173
  "name": "TransMission",
5211
  "other_name": "",
5212
  "required_fields": []
5213
  },
5214
+ {
5215
+ "slug": "uc56",
5216
+ "name": "ucexpress",
5217
+ "other_name": "优速快递",
5218
+ "required_fields": []
5219
+ },
5220
  {
5221
  "slug": "uds",
5222
  "name": "United Delivery Service, Ltd",
includes/class-aftership-actions.php CHANGED
@@ -584,11 +584,18 @@ class AfterShip_Actions {
584
  'destination_country' => wc_clean( $args['additional_fields']['destination_country'] ),
585
  'state' => wc_clean( $args['additional_fields']['state'] ),
586
  );
 
 
 
 
587
  $tracking_items = $this->get_tracking_items( $order_id );
588
  $exist = false;
589
  foreach ( $tracking_items as $key => $item ) {
590
  if ( $item['tracking_id'] == $tracking_item['tracking_id'] ) {
591
- $exist = true;
 
 
 
592
  $tracking_items[ $key ] = $tracking_item;
593
  }
594
  }
584
  'destination_country' => wc_clean( $args['additional_fields']['destination_country'] ),
585
  'state' => wc_clean( $args['additional_fields']['state'] ),
586
  );
587
+ $tracking_item['metrics'] = array(
588
+ 'created_at' => current_time( 'Y-m-d\TH:i:s\Z' ),
589
+ 'updated_at' => current_time( 'Y-m-d\TH:i:s\Z' ),
590
+ );
591
  $tracking_items = $this->get_tracking_items( $order_id );
592
  $exist = false;
593
  foreach ( $tracking_items as $key => $item ) {
594
  if ( $item['tracking_id'] == $tracking_item['tracking_id'] ) {
595
+ $exist = true;
596
+ if ( isset( $item['metrics'] ) && isset( $item['metrics']['created_at'] ) ) {
597
+ $tracking_item['metrics']['created_at'] = $item['metrics']['created_at'];
598
+ }
599
  $tracking_items[ $key ] = $tracking_item;
600
  }
601
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.aftership.com/
4
  Tags: woocommerce shipping,woocommerce tracking,shipment tracking,order tracking, woocommerce,track order,dhl,ups,usps,fedex,shipping,tracking,order
5
  Requires at least: 2.9
6
  Tested up to: 5.7
7
- Stable tag: 1.13.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -136,6 +136,9 @@ Tailor a dynamic branded tracking page. Upload promotional banner, logo, and fav
136
 
137
  == Changelog ==
138
 
 
 
 
139
  = 1.13.3 =
140
  * Update courier list
141
 
4
  Tags: woocommerce shipping,woocommerce tracking,shipment tracking,order tracking, woocommerce,track order,dhl,ups,usps,fedex,shipping,tracking,order
5
  Requires at least: 2.9
6
  Tested up to: 5.7
7
+ Stable tag: 1.13.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
136
 
137
  == Changelog ==
138
 
139
+ = 1.13.4 =
140
+ * Add tracking created time for AfterShip
141
+
142
  = 1.13.3 =
143
  * Update courier list
144