AfterShip – WooCommerce Tracking - Version 1.12.6

Version Description

  • Update courier list
Download this release

Release Info

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

Code changes from version 1.12.5 to 1.12.6

aftership-woocommerce-tracking.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: AfterShip - WooCommerce Shipment Tracking (Order Tracking Made Easy)
4
  Plugin URI: http://aftership.com/
5
  Description: All-in-one Woocommerce shipment tracking, branded order tracking pages, Email & SMS notifications. FedEx,USPS,UPS,DHL,Canada Post 800+ couriers.
6
- Version: 1.12.5
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.12.5' );
24
 
25
  if ( is_woocommerce_active() ) {
26
 
3
  Plugin Name: AfterShip - WooCommerce Shipment Tracking (Order Tracking Made Easy)
4
  Plugin URI: http://aftership.com/
5
  Description: All-in-one Woocommerce shipment tracking, branded order tracking pages, Email & SMS notifications. FedEx,USPS,UPS,DHL,Canada Post 800+ couriers.
6
+ Version: 1.12.6
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.12.6' );
24
 
25
  if ( is_woocommerce_active() ) {
26
 
assets/js/couriers.js CHANGED
@@ -1171,6 +1171,20 @@ function get_aftership_couriers() {
1171
  "other_name": "",
1172
  "required_fields": []
1173
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1174
  {
1175
  "slug": "dbschenker-se",
1176
  "name": "DB Schenker",
@@ -1423,6 +1437,12 @@ function get_aftership_couriers() {
1423
  "other_name": "",
1424
  "required_fields": []
1425
  },
 
 
 
 
 
 
1426
  {
1427
  "slug": "dicom",
1428
  "name": "GLS Logistic Systems Canada Ltd./Dicom",
@@ -1675,6 +1695,12 @@ function get_aftership_couriers() {
1675
  "other_name": "Ecargo Pte. Ltd",
1676
  "required_fields": []
1677
  },
 
 
 
 
 
 
1678
  {
1679
  "slug": "echo",
1680
  "name": "Echo",
@@ -2919,6 +2945,12 @@ function get_aftership_couriers() {
2919
  "other_name": "Latvijas Pasts",
2920
  "required_fields": []
2921
  },
 
 
 
 
 
 
2922
  {
2923
  "slug": "leader",
2924
  "name": "leader",
@@ -3165,12 +3197,6 @@ function get_aftership_couriers() {
3165
  "other_name": "",
3166
  "required_fields": []
3167
  },
3168
- {
3169
- "slug": "midland",
3170
- "name": "Midland",
3171
- "other_name": "",
3172
- "required_fields": []
3173
- },
3174
  {
3175
  "slug": "mikropakket",
3176
  "name": "Mikropakket",
@@ -4607,6 +4633,12 @@ function get_aftership_couriers() {
4607
  "other_name": "La Poste Suisse, Die Schweizerische Post, Die Post",
4608
  "required_fields": []
4609
  },
 
 
 
 
 
 
4610
  {
4611
  "slug": "sypost",
4612
  "name": "Sunyou Post",
@@ -5277,12 +5309,6 @@ function get_aftership_couriers() {
5277
  "other_name": "",
5278
  "required_fields": []
5279
  },
5280
- {
5281
- "slug": "yamato-hk",
5282
- "name": "Yamato Hong Kong Shipments",
5283
- "other_name": null,
5284
- "required_fields": []
5285
- },
5286
  {
5287
  "slug": "yanwen",
5288
  "name": "Yanwen",
1171
  "other_name": "",
1172
  "required_fields": []
1173
  },
1174
+ {
1175
+ "slug": "dbschenker-b2b",
1176
+ "name": "DB Schenker B2B",
1177
+ "other_name": null,
1178
+ "required_fields": [
1179
+ "tracking_origin_country"
1180
+ ]
1181
+ },
1182
+ {
1183
+ "slug": "dbschenker-iceland",
1184
+ "name": "DB Schenker Iceland",
1185
+ "other_name": null,
1186
+ "required_fields": []
1187
+ },
1188
  {
1189
  "slug": "dbschenker-se",
1190
  "name": "DB Schenker",
1437
  "other_name": "",
1438
  "required_fields": []
1439
  },
1440
+ {
1441
+ "slug": "diamondcouriers",
1442
+ "name": "Diamond Eurogistics Limited",
1443
+ "other_name": null,
1444
+ "required_fields": []
1445
+ },
1446
  {
1447
  "slug": "dicom",
1448
  "name": "GLS Logistic Systems Canada Ltd./Dicom",
1695
  "other_name": "Ecargo Pte. Ltd",
1696
  "required_fields": []
1697
  },
1698
+ {
1699
+ "slug": "ecexpress",
1700
+ "name": "上海东擎速递有限公司深圳分公司 ECexpress (Shanghai)Co.,Ltd Shenzhen Branch",
1701
+ "other_name": null,
1702
+ "required_fields": []
1703
+ },
1704
  {
1705
  "slug": "echo",
1706
  "name": "Echo",
2945
  "other_name": "Latvijas Pasts",
2946
  "required_fields": []
2947
  },
2948
+ {
2949
+ "slug": "lbcexpress-ftp",
2950
+ "name": "LBC EXPRESS INC.",
2951
+ "other_name": null,
2952
+ "required_fields": []
2953
+ },
2954
  {
2955
  "slug": "leader",
2956
  "name": "leader",
3197
  "other_name": "",
3198
  "required_fields": []
3199
  },
 
 
 
 
 
 
3200
  {
3201
  "slug": "mikropakket",
3202
  "name": "Mikropakket",
4633
  "other_name": "La Poste Suisse, Die Schweizerische Post, Die Post",
4634
  "required_fields": []
4635
  },
4636
+ {
4637
+ "slug": "swiss-post-ftp",
4638
+ "name": "Swiss Post FTP",
4639
+ "other_name": null,
4640
+ "required_fields": []
4641
+ },
4642
  {
4643
  "slug": "sypost",
4644
  "name": "Sunyou Post",
5309
  "other_name": "",
5310
  "required_fields": []
5311
  },
 
 
 
 
 
 
5312
  {
5313
  "slug": "yanwen",
5314
  "name": "Yanwen",
assets/js/couriers.json CHANGED
@@ -1170,6 +1170,20 @@
1170
  "other_name": "",
1171
  "required_fields": []
1172
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1173
  {
1174
  "slug": "dbschenker-se",
1175
  "name": "DB Schenker",
@@ -1422,6 +1436,12 @@
1422
  "other_name": "",
1423
  "required_fields": []
1424
  },
 
 
 
 
 
 
1425
  {
1426
  "slug": "dicom",
1427
  "name": "GLS Logistic Systems Canada Ltd./Dicom",
@@ -1674,6 +1694,12 @@
1674
  "other_name": "Ecargo Pte. Ltd",
1675
  "required_fields": []
1676
  },
 
 
 
 
 
 
1677
  {
1678
  "slug": "echo",
1679
  "name": "Echo",
@@ -2918,6 +2944,12 @@
2918
  "other_name": "Latvijas Pasts",
2919
  "required_fields": []
2920
  },
 
 
 
 
 
 
2921
  {
2922
  "slug": "leader",
2923
  "name": "leader",
@@ -3164,12 +3196,6 @@
3164
  "other_name": "",
3165
  "required_fields": []
3166
  },
3167
- {
3168
- "slug": "midland",
3169
- "name": "Midland",
3170
- "other_name": "",
3171
- "required_fields": []
3172
- },
3173
  {
3174
  "slug": "mikropakket",
3175
  "name": "Mikropakket",
@@ -4606,6 +4632,12 @@
4606
  "other_name": "La Poste Suisse, Die Schweizerische Post, Die Post",
4607
  "required_fields": []
4608
  },
 
 
 
 
 
 
4609
  {
4610
  "slug": "sypost",
4611
  "name": "Sunyou Post",
@@ -5276,12 +5308,6 @@
5276
  "other_name": "",
5277
  "required_fields": []
5278
  },
5279
- {
5280
- "slug": "yamato-hk",
5281
- "name": "Yamato Hong Kong Shipments",
5282
- "other_name": null,
5283
- "required_fields": []
5284
- },
5285
  {
5286
  "slug": "yanwen",
5287
  "name": "Yanwen",
1170
  "other_name": "",
1171
  "required_fields": []
1172
  },
1173
+ {
1174
+ "slug": "dbschenker-b2b",
1175
+ "name": "DB Schenker B2B",
1176
+ "other_name": null,
1177
+ "required_fields": [
1178
+ "tracking_origin_country"
1179
+ ]
1180
+ },
1181
+ {
1182
+ "slug": "dbschenker-iceland",
1183
+ "name": "DB Schenker Iceland",
1184
+ "other_name": null,
1185
+ "required_fields": []
1186
+ },
1187
  {
1188
  "slug": "dbschenker-se",
1189
  "name": "DB Schenker",
1436
  "other_name": "",
1437
  "required_fields": []
1438
  },
1439
+ {
1440
+ "slug": "diamondcouriers",
1441
+ "name": "Diamond Eurogistics Limited",
1442
+ "other_name": null,
1443
+ "required_fields": []
1444
+ },
1445
  {
1446
  "slug": "dicom",
1447
  "name": "GLS Logistic Systems Canada Ltd./Dicom",
1694
  "other_name": "Ecargo Pte. Ltd",
1695
  "required_fields": []
1696
  },
1697
+ {
1698
+ "slug": "ecexpress",
1699
+ "name": "上海东擎速递有限公司深圳分公司 ECexpress (Shanghai)Co.,Ltd Shenzhen Branch",
1700
+ "other_name": null,
1701
+ "required_fields": []
1702
+ },
1703
  {
1704
  "slug": "echo",
1705
  "name": "Echo",
2944
  "other_name": "Latvijas Pasts",
2945
  "required_fields": []
2946
  },
2947
+ {
2948
+ "slug": "lbcexpress-ftp",
2949
+ "name": "LBC EXPRESS INC.",
2950
+ "other_name": null,
2951
+ "required_fields": []
2952
+ },
2953
  {
2954
  "slug": "leader",
2955
  "name": "leader",
3196
  "other_name": "",
3197
  "required_fields": []
3198
  },
 
 
 
 
 
 
3199
  {
3200
  "slug": "mikropakket",
3201
  "name": "Mikropakket",
4632
  "other_name": "La Poste Suisse, Die Schweizerische Post, Die Post",
4633
  "required_fields": []
4634
  },
4635
+ {
4636
+ "slug": "swiss-post-ftp",
4637
+ "name": "Swiss Post FTP",
4638
+ "other_name": null,
4639
+ "required_fields": []
4640
+ },
4641
  {
4642
  "slug": "sypost",
4643
  "name": "Sunyou Post",
5308
  "other_name": "",
5309
  "required_fields": []
5310
  },
 
 
 
 
 
 
5311
  {
5312
  "slug": "yanwen",
5313
  "name": "Yanwen",
includes/api/class-aftership-api.php CHANGED
@@ -164,6 +164,7 @@ class AfterShip_API {
164
  include_once( 'v4/class-aftership-api-settings.php' );
165
  include_once( 'v5/class-aftership-api-orders.php' );
166
  include_once( 'v5/class-rest-orders-helper.php' );
 
167
 
168
  }
169
 
@@ -183,6 +184,7 @@ class AfterShip_API {
183
  'AfterShip_API_V4_Orders',
184
  'AfterShip_API_V4_Settings',
185
  'AfterShip_API_V5_Orders',
 
186
  )
187
  );
188
 
164
  include_once( 'v4/class-aftership-api-settings.php' );
165
  include_once( 'v5/class-aftership-api-orders.php' );
166
  include_once( 'v5/class-rest-orders-helper.php' );
167
+ include_once( 'v5/class-aftership-api-settings.php' );
168
 
169
  }
170
 
184
  'AfterShip_API_V4_Orders',
185
  'AfterShip_API_V4_Settings',
186
  'AfterShip_API_V5_Orders',
187
+ 'AfterShip_API_V5_Settings',
188
  )
189
  );
190
 
includes/api/v5/class-aftership-api-settings.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ /**
8
+ * AfterShip API settings
9
+ */
10
+ class AfterShip_API_V5_Settings extends AfterShip_API_V4_Settings {
11
+
12
+ /**
13
+ * Base router.
14
+ *
15
+ * @var string $base base router.
16
+ */
17
+ protected $base = '/v5/settings';
18
+
19
+ /**
20
+ * Register the routes for this class
21
+ *
22
+ * @param array $routes routes list.
23
+ *
24
+ * @return array
25
+ */
26
+ public function register_routes( $routes ) {
27
+
28
+ $routes[ $this->base ] = array(
29
+ // GET list API.
30
+ array( array( $this, 'get_list' ), AfterShip_API_Server::READABLE ),
31
+ // PUT or POST API.
32
+ array( array( $this, 'update' ), AfterShip_API_Server::METHOD_POST | AfterShip_API_Server::METHOD_PUT | AfterShip_API_Server::ACCEPT_DATA ),
33
+ );
34
+
35
+ return $routes;
36
+ }
37
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.aftership.com/
4
  Tags: shipment tracking, order tracking, shipping, fedex, usps, ups, dhl, canada post, order status, delivery, carrier, courier
5
  Requires at least: 2.9
6
  Tested up to: 5.7
7
- Stable tag: 1.12.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -66,11 +66,13 @@ ADSOne • Australia Post • Bonds Couriers • CourierPost • Couriers Please
66
  == Installation ==
67
 
68
  1. [Sign up AfterShip account for FREE](https://secure.aftership.com/signup)
69
- 2. [Download AfterShip plugin](http://downloads.wordpress.org/plugin/aftership-woocommerce-tracking.zip), then install and activate at wordpress.
70
- 3. Select AfterShip Plugin or [WooCommerce Shipment Tracking Plugin](http://www.woothemes.com/products/shipment-tracking/) for entering tracking number
71
- 4. Check `Use Track Button` for displaying tracking info at order history page
72
- 5. Generate [AfterShip's WordPress API Key](http://aftership.uservoice.com/knowledgebase/articles/405909) under `Users` > `Your Profile`
73
- 6. Input `Store URL` and `AfterShip's WordPress API Key` at [AfterShip WooCommerce page](https://www.aftership.com/apps/woocommerce)
 
 
74
 
75
  *** This plugin requires at least PHP 5.2.4
76
  *** This plugin requires at least WooCommerce 2.1
@@ -102,6 +104,9 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
102
 
103
  == Changelog ==
104
 
 
 
 
105
  = 1.12.5 =
106
  * Update courier list
107
 
4
  Tags: shipment tracking, order tracking, shipping, fedex, usps, ups, dhl, canada post, order status, delivery, carrier, courier
5
  Requires at least: 2.9
6
  Tested up to: 5.7
7
+ Stable tag: 1.12.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
66
  == Installation ==
67
 
68
  1. [Sign up AfterShip account for FREE](https://secure.aftership.com/signup)
69
+ 2. Under the `Apps` tab, select WooCommerce.
70
+ 3. To get the `API Key` go to your WordPress admin and [Download AfterShip plugin](http://downloads.wordpress.org/plugin/aftership-woocommerce-tracking.zip), then install and activate it.
71
+ 4. In the Wordpress admin, go to `Settings` and select the `AfterShip` plugin. Check `Use Track Button` (for displaying tracking info on the order history page) and add your custom branded tracking page domain.
72
+ 5. Check `Use Track Button` (for displaying tracking info on the order history page) and add your custom branded tracking page domain.
73
+ 6. Now go to the `User Profile` settings to generate AfterShips Wordpress API Key.
74
+ 7. Copy the API Key generated and head back to your AfterShip account.
75
+ 8. Input `Store URL` and `API Key` and click on `Connect`.
76
 
77
  *** This plugin requires at least PHP 5.2.4
78
  *** This plugin requires at least WooCommerce 2.1
104
 
105
  == Changelog ==
106
 
107
+ = 1.12.6 =
108
+ * Update courier list
109
+
110
  = 1.12.5 =
111
  * Update courier list
112