Version Description
- Update courier list
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.13.8 |
Comparing to | |
See all releases |
Code changes from version 1.13.7 to 1.13.8
- .huskyrc +0 -5
- aftership-woocommerce-tracking.php +3 -2
- assets/js/couriers.js +123 -5
- assets/js/couriers.json +123 -5
- includes/api/aftership/v1/class-am-rest-settings-controller.php +5 -1
- includes/class-aftership-actions.php +30 -0
- readme.txt +5 -2
.huskyrc
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"hooks": {
|
3 |
-
"pre-commit": "./vendor/bin/phpcbf ./"
|
4 |
-
}
|
5 |
-
}
|
|
|
|
|
|
|
|
|
|
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.
|
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.
|
24 |
define( 'AFTERSHIP_PATH', dirname( __FILE__ ) );
|
25 |
define( 'AFTERSHIP_ASSETS_URL', plugins_url() . '/' . basename( AFTERSHIP_PATH ) );
|
26 |
|
@@ -183,6 +183,7 @@ if ( is_woocommerce_active() ) {
|
|
183 |
add_filter( 'woocommerce_rest_orders_prepare_object_query', array( $this->actions, 'add_query' ), 10, 2 );
|
184 |
add_filter( 'woocommerce_rest_product_object_query', array( $this->actions, 'add_query' ), 10, 2 );
|
185 |
add_filter( 'woocommerce_rest_shop_coupon_object_query', array( $this->actions, 'add_query' ), 10, 2 );
|
|
|
186 |
|
187 |
register_activation_hook( __FILE__, array( 'AfterShip', 'install' ) );
|
188 |
register_deactivation_hook( __FILE__, array( 'AfterShip', 'deactivation' ) );
|
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.8
|
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.8' );
|
24 |
define( 'AFTERSHIP_PATH', dirname( __FILE__ ) );
|
25 |
define( 'AFTERSHIP_ASSETS_URL', plugins_url() . '/' . basename( AFTERSHIP_PATH ) );
|
26 |
|
183 |
add_filter( 'woocommerce_rest_orders_prepare_object_query', array( $this->actions, 'add_query' ), 10, 2 );
|
184 |
add_filter( 'woocommerce_rest_product_object_query', array( $this->actions, 'add_query' ), 10, 2 );
|
185 |
add_filter( 'woocommerce_rest_shop_coupon_object_query', array( $this->actions, 'add_query' ), 10, 2 );
|
186 |
+
add_filter( 'woocommerce_rest_customer_query', array( $this->actions, 'add_customer_query' ), 10, 2 );
|
187 |
|
188 |
register_activation_hook( __FILE__, array( 'AfterShip', 'install' ) );
|
189 |
register_deactivation_hook( __FILE__, array( 'AfterShip', 'deactivation' ) );
|
assets/js/couriers.js
CHANGED
@@ -60,6 +60,12 @@ function get_aftership_couriers() {
|
|
60 |
"other_name": null,
|
61 |
"required_fields": []
|
62 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
{
|
64 |
"slug": "a2b-ba",
|
65 |
"name": "A2B Express Logistics",
|
@@ -386,6 +392,12 @@ function get_aftership_couriers() {
|
|
386 |
"other_name": null,
|
387 |
"required_fields": []
|
388 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
{
|
390 |
"slug": "ark-logistics",
|
391 |
"name": "ARK Logistics",
|
@@ -603,6 +615,12 @@ function get_aftership_couriers() {
|
|
603 |
"other_name": "",
|
604 |
"required_fields": []
|
605 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
606 |
{
|
607 |
"slug": "bombinoexp",
|
608 |
"name": "Bombino Express Pvt Ltd",
|
@@ -893,6 +911,12 @@ function get_aftership_couriers() {
|
|
893 |
"other_name": "Chronopost pt",
|
894 |
"required_fields": []
|
895 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
896 |
{
|
897 |
"slug": "citylinkexpress",
|
898 |
"name": "City-Link Express",
|
@@ -1269,6 +1293,12 @@ function get_aftership_couriers() {
|
|
1269 |
"other_name": "",
|
1270 |
"required_fields": []
|
1271 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
1272 |
{
|
1273 |
"slug": "delhivery",
|
1274 |
"name": "Delhivery",
|
@@ -1719,7 +1749,7 @@ function get_aftership_couriers() {
|
|
1719 |
},
|
1720 |
{
|
1721 |
"slug": "dx-sftp",
|
1722 |
-
"name": "DX
|
1723 |
"other_name": "",
|
1724 |
"required_fields": []
|
1725 |
},
|
@@ -2133,6 +2163,12 @@ function get_aftership_couriers() {
|
|
2133 |
"other_name": "",
|
2134 |
"required_fields": []
|
2135 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2136 |
{
|
2137 |
"slug": "fonsen",
|
2138 |
"name": "Fonsen Logistics",
|
@@ -2163,6 +2199,12 @@ function get_aftership_couriers() {
|
|
2163 |
"other_name": "",
|
2164 |
"required_fields": []
|
2165 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2166 |
{
|
2167 |
"slug": "furdeco",
|
2168 |
"name": "Furdeco",
|
@@ -2461,6 +2503,12 @@ function get_aftership_couriers() {
|
|
2461 |
"other_name": null,
|
2462 |
"required_fields": []
|
2463 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2464 |
{
|
2465 |
"slug": "heppner",
|
2466 |
"name": "Heppner Internationale Spedition GmbH & Co.",
|
@@ -2617,6 +2665,12 @@ function get_aftership_couriers() {
|
|
2617 |
"other_name": "上海宏杉国际物流",
|
2618 |
"required_fields": []
|
2619 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2620 |
{
|
2621 |
"slug": "iml",
|
2622 |
"name": "IML",
|
@@ -2819,6 +2873,12 @@ function get_aftership_couriers() {
|
|
2819 |
"other_name": null,
|
2820 |
"required_fields": []
|
2821 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2822 |
{
|
2823 |
"slug": "jersey-post",
|
2824 |
"name": "Jersey Post",
|
@@ -2861,6 +2921,12 @@ function get_aftership_couriers() {
|
|
2861 |
"other_name": "",
|
2862 |
"required_fields": []
|
2863 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2864 |
{
|
2865 |
"slug": "joyingbox",
|
2866 |
"name": "Joying Box",
|
@@ -2903,6 +2969,12 @@ function get_aftership_couriers() {
|
|
2903 |
"other_name": "",
|
2904 |
"required_fields": []
|
2905 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2906 |
{
|
2907 |
"slug": "kdexp",
|
2908 |
"name": "Kyungdong Parcel",
|
@@ -3061,7 +3133,7 @@ function get_aftership_couriers() {
|
|
3061 |
},
|
3062 |
{
|
3063 |
"slug": "leader",
|
3064 |
-
"name": "
|
3065 |
"other_name": "立德国际物流",
|
3066 |
"required_fields": []
|
3067 |
},
|
@@ -3568,6 +3640,18 @@ function get_aftership_couriers() {
|
|
3568 |
"other_name": "Nigerian Postal Service",
|
3569 |
"required_fields": []
|
3570 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3571 |
{
|
3572 |
"slug": "norsk-global",
|
3573 |
"name": "Norsk Global",
|
@@ -3664,6 +3748,12 @@ function get_aftership_couriers() {
|
|
3664 |
"other_name": "Omni-Channel Logistics (Seko)",
|
3665 |
"required_fields": []
|
3666 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
3667 |
{
|
3668 |
"slug": "omniva",
|
3669 |
"name": "Omniva",
|
@@ -3700,6 +3790,12 @@ function get_aftership_couriers() {
|
|
3700 |
"other_name": null,
|
3701 |
"required_fields": []
|
3702 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
3703 |
{
|
3704 |
"slug": "osm-worldwide",
|
3705 |
"name": "OSM Worldwide",
|
@@ -3868,6 +3964,12 @@ function get_aftership_couriers() {
|
|
3868 |
"other_name": "ParcelPost",
|
3869 |
"required_fields": []
|
3870 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
3871 |
{
|
3872 |
"slug": "parceltopost",
|
3873 |
"name": "Parcel To Post",
|
@@ -4257,9 +4359,7 @@ function get_aftership_couriers() {
|
|
4257 |
"slug": "relaiscolis",
|
4258 |
"name": "Relais Colis",
|
4259 |
"other_name": "",
|
4260 |
-
"required_fields": [
|
4261 |
-
"tracking_key"
|
4262 |
-
]
|
4263 |
},
|
4264 |
{
|
4265 |
"slug": "rhenus-group",
|
@@ -4489,6 +4589,12 @@ function get_aftership_couriers() {
|
|
4489 |
"other_name": "Kin Shun Information Technology Limited",
|
4490 |
"required_fields": []
|
4491 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
4492 |
{
|
4493 |
"slug": "ship-it-asia",
|
4494 |
"name": "Ship It Asia",
|
@@ -5107,6 +5213,12 @@ function get_aftership_couriers() {
|
|
5107 |
"other_name": "",
|
5108 |
"required_fields": []
|
5109 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
5110 |
{
|
5111 |
"slug": "tophatterexpress",
|
5112 |
"name": "Tophatter Express",
|
@@ -5551,6 +5663,12 @@ function get_aftership_couriers() {
|
|
5551 |
"other_name": "燕文物流",
|
5552 |
"required_fields": []
|
5553 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
5554 |
{
|
5555 |
"slug": "ydh-express",
|
5556 |
"name": "YDH express",
|
60 |
"other_name": null,
|
61 |
"required_fields": []
|
62 |
},
|
63 |
+
{
|
64 |
+
"slug": "a1post",
|
65 |
+
"name": "A1Post",
|
66 |
+
"other_name": null,
|
67 |
+
"required_fields": []
|
68 |
+
},
|
69 |
{
|
70 |
"slug": "a2b-ba",
|
71 |
"name": "A2B Express Logistics",
|
392 |
"other_name": null,
|
393 |
"required_fields": []
|
394 |
},
|
395 |
+
{
|
396 |
+
"slug": "argents-webhook",
|
397 |
+
"name": "Argents Express Group",
|
398 |
+
"other_name": null,
|
399 |
+
"required_fields": []
|
400 |
+
},
|
401 |
{
|
402 |
"slug": "ark-logistics",
|
403 |
"name": "ARK Logistics",
|
615 |
"other_name": "",
|
616 |
"required_fields": []
|
617 |
},
|
618 |
+
{
|
619 |
+
"slug": "bollore-logistics",
|
620 |
+
"name": "Bollore Logistics",
|
621 |
+
"other_name": null,
|
622 |
+
"required_fields": []
|
623 |
+
},
|
624 |
{
|
625 |
"slug": "bombinoexp",
|
626 |
"name": "Bombino Express Pvt Ltd",
|
911 |
"other_name": "Chronopost pt",
|
912 |
"required_fields": []
|
913 |
},
|
914 |
+
{
|
915 |
+
"slug": "city56-webhook",
|
916 |
+
"name": "City Express",
|
917 |
+
"other_name": null,
|
918 |
+
"required_fields": []
|
919 |
+
},
|
920 |
{
|
921 |
"slug": "citylinkexpress",
|
922 |
"name": "City-Link Express",
|
1293 |
"other_name": "",
|
1294 |
"required_fields": []
|
1295 |
},
|
1296 |
+
{
|
1297 |
+
"slug": "dealer-send",
|
1298 |
+
"name": "DealerSend",
|
1299 |
+
"other_name": null,
|
1300 |
+
"required_fields": []
|
1301 |
+
},
|
1302 |
{
|
1303 |
"slug": "delhivery",
|
1304 |
"name": "Delhivery",
|
1749 |
},
|
1750 |
{
|
1751 |
"slug": "dx-sftp",
|
1752 |
+
"name": "DX",
|
1753 |
"other_name": "",
|
1754 |
"required_fields": []
|
1755 |
},
|
2163 |
"other_name": "",
|
2164 |
"required_fields": []
|
2165 |
},
|
2166 |
+
{
|
2167 |
+
"slug": "fnf-za",
|
2168 |
+
"name": "Fast & Furious",
|
2169 |
+
"other_name": null,
|
2170 |
+
"required_fields": []
|
2171 |
+
},
|
2172 |
{
|
2173 |
"slug": "fonsen",
|
2174 |
"name": "Fonsen Logistics",
|
2199 |
"other_name": "",
|
2200 |
"required_fields": []
|
2201 |
},
|
2202 |
+
{
|
2203 |
+
"slug": "fulfillmen",
|
2204 |
+
"name": "Fulfillme",
|
2205 |
+
"other_name": null,
|
2206 |
+
"required_fields": []
|
2207 |
+
},
|
2208 |
{
|
2209 |
"slug": "furdeco",
|
2210 |
"name": "Furdeco",
|
2503 |
"other_name": null,
|
2504 |
"required_fields": []
|
2505 |
},
|
2506 |
+
{
|
2507 |
+
"slug": "helthjem-api",
|
2508 |
+
"name": "Helthjem",
|
2509 |
+
"other_name": null,
|
2510 |
+
"required_fields": []
|
2511 |
+
},
|
2512 |
{
|
2513 |
"slug": "heppner",
|
2514 |
"name": "Heppner Internationale Spedition GmbH & Co.",
|
2665 |
"other_name": "上海宏杉国际物流",
|
2666 |
"required_fields": []
|
2667 |
},
|
2668 |
+
{
|
2669 |
+
"slug": "ilyanglogis",
|
2670 |
+
"name": "Ilyang logistics",
|
2671 |
+
"other_name": null,
|
2672 |
+
"required_fields": []
|
2673 |
+
},
|
2674 |
{
|
2675 |
"slug": "iml",
|
2676 |
"name": "IML",
|
2873 |
"other_name": null,
|
2874 |
"required_fields": []
|
2875 |
},
|
2876 |
+
{
|
2877 |
+
"slug": "jd-worldwide",
|
2878 |
+
"name": "JD Worldwide",
|
2879 |
+
"other_name": "京东国际物流",
|
2880 |
+
"required_fields": []
|
2881 |
+
},
|
2882 |
{
|
2883 |
"slug": "jersey-post",
|
2884 |
"name": "Jersey Post",
|
2921 |
"other_name": "",
|
2922 |
"required_fields": []
|
2923 |
},
|
2924 |
+
{
|
2925 |
+
"slug": "joom-logistics",
|
2926 |
+
"name": "Joom Logistics",
|
2927 |
+
"other_name": null,
|
2928 |
+
"required_fields": []
|
2929 |
+
},
|
2930 |
{
|
2931 |
"slug": "joyingbox",
|
2932 |
"name": "Joying Box",
|
2969 |
"other_name": "",
|
2970 |
"required_fields": []
|
2971 |
},
|
2972 |
+
{
|
2973 |
+
"slug": "kargomkolay",
|
2974 |
+
"name": "KargomKolay (CargoMini)",
|
2975 |
+
"other_name": null,
|
2976 |
+
"required_fields": []
|
2977 |
+
},
|
2978 |
{
|
2979 |
"slug": "kdexp",
|
2980 |
"name": "Kyungdong Parcel",
|
3133 |
},
|
3134 |
{
|
3135 |
"slug": "leader",
|
3136 |
+
"name": "Leader",
|
3137 |
"other_name": "立德国际物流",
|
3138 |
"required_fields": []
|
3139 |
},
|
3640 |
"other_name": "Nigerian Postal Service",
|
3641 |
"required_fields": []
|
3642 |
},
|
3643 |
+
{
|
3644 |
+
"slug": "nipponexpress-ftp",
|
3645 |
+
"name": "Nippon Express",
|
3646 |
+
"other_name": null,
|
3647 |
+
"required_fields": []
|
3648 |
+
},
|
3649 |
+
{
|
3650 |
+
"slug": "nmtransfer",
|
3651 |
+
"name": "N&M Transfer Co., Inc.",
|
3652 |
+
"other_name": null,
|
3653 |
+
"required_fields": []
|
3654 |
+
},
|
3655 |
{
|
3656 |
"slug": "norsk-global",
|
3657 |
"name": "Norsk Global",
|
3748 |
"other_name": "Omni-Channel Logistics (Seko)",
|
3749 |
"required_fields": []
|
3750 |
},
|
3751 |
+
{
|
3752 |
+
"slug": "omnirps-webhook",
|
3753 |
+
"name": "Omni Returns",
|
3754 |
+
"other_name": null,
|
3755 |
+
"required_fields": []
|
3756 |
+
},
|
3757 |
{
|
3758 |
"slug": "omniva",
|
3759 |
"name": "Omniva",
|
3790 |
"other_name": null,
|
3791 |
"required_fields": []
|
3792 |
},
|
3793 |
+
{
|
3794 |
+
"slug": "orangedsinc",
|
3795 |
+
"name": "OrangeDS (Orange Distribution Solutions Inc)",
|
3796 |
+
"other_name": null,
|
3797 |
+
"required_fields": []
|
3798 |
+
},
|
3799 |
{
|
3800 |
"slug": "osm-worldwide",
|
3801 |
"name": "OSM Worldwide",
|
3964 |
"other_name": "ParcelPost",
|
3965 |
"required_fields": []
|
3966 |
},
|
3967 |
+
{
|
3968 |
+
"slug": "parcelright",
|
3969 |
+
"name": "Parcel Right",
|
3970 |
+
"other_name": null,
|
3971 |
+
"required_fields": []
|
3972 |
+
},
|
3973 |
{
|
3974 |
"slug": "parceltopost",
|
3975 |
"name": "Parcel To Post",
|
4359 |
"slug": "relaiscolis",
|
4360 |
"name": "Relais Colis",
|
4361 |
"other_name": "",
|
4362 |
+
"required_fields": []
|
|
|
|
|
4363 |
},
|
4364 |
{
|
4365 |
"slug": "rhenus-group",
|
4589 |
"other_name": "Kin Shun Information Technology Limited",
|
4590 |
"required_fields": []
|
4591 |
},
|
4592 |
+
{
|
4593 |
+
"slug": "sherpa",
|
4594 |
+
"name": "Sherpa",
|
4595 |
+
"other_name": null,
|
4596 |
+
"required_fields": []
|
4597 |
+
},
|
4598 |
{
|
4599 |
"slug": "ship-it-asia",
|
4600 |
"name": "Ship It Asia",
|
5213 |
"other_name": "",
|
5214 |
"required_fields": []
|
5215 |
},
|
5216 |
+
{
|
5217 |
+
"slug": "tonami-ftp",
|
5218 |
+
"name": "Tonami",
|
5219 |
+
"other_name": null,
|
5220 |
+
"required_fields": []
|
5221 |
+
},
|
5222 |
{
|
5223 |
"slug": "tophatterexpress",
|
5224 |
"name": "Tophatter Express",
|
5663 |
"other_name": "燕文物流",
|
5664 |
"required_fields": []
|
5665 |
},
|
5666 |
+
{
|
5667 |
+
"slug": "ydex",
|
5668 |
+
"name": "Shenzhen 1st International Logistics(Group)Co,Ltd",
|
5669 |
+
"other_name": "深圳市一代国际物流(集团)有限公司",
|
5670 |
+
"required_fields": []
|
5671 |
+
},
|
5672 |
{
|
5673 |
"slug": "ydh-express",
|
5674 |
"name": "YDH express",
|
assets/js/couriers.json
CHANGED
@@ -59,6 +59,12 @@
|
|
59 |
"other_name": null,
|
60 |
"required_fields": []
|
61 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
{
|
63 |
"slug": "a2b-ba",
|
64 |
"name": "A2B Express Logistics",
|
@@ -385,6 +391,12 @@
|
|
385 |
"other_name": null,
|
386 |
"required_fields": []
|
387 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
{
|
389 |
"slug": "ark-logistics",
|
390 |
"name": "ARK Logistics",
|
@@ -602,6 +614,12 @@
|
|
602 |
"other_name": "",
|
603 |
"required_fields": []
|
604 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
605 |
{
|
606 |
"slug": "bombinoexp",
|
607 |
"name": "Bombino Express Pvt Ltd",
|
@@ -892,6 +910,12 @@
|
|
892 |
"other_name": "Chronopost pt",
|
893 |
"required_fields": []
|
894 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
895 |
{
|
896 |
"slug": "citylinkexpress",
|
897 |
"name": "City-Link Express",
|
@@ -1268,6 +1292,12 @@
|
|
1268 |
"other_name": "",
|
1269 |
"required_fields": []
|
1270 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
1271 |
{
|
1272 |
"slug": "delhivery",
|
1273 |
"name": "Delhivery",
|
@@ -1718,7 +1748,7 @@
|
|
1718 |
},
|
1719 |
{
|
1720 |
"slug": "dx-sftp",
|
1721 |
-
"name": "DX
|
1722 |
"other_name": "",
|
1723 |
"required_fields": []
|
1724 |
},
|
@@ -2132,6 +2162,12 @@
|
|
2132 |
"other_name": "",
|
2133 |
"required_fields": []
|
2134 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2135 |
{
|
2136 |
"slug": "fonsen",
|
2137 |
"name": "Fonsen Logistics",
|
@@ -2162,6 +2198,12 @@
|
|
2162 |
"other_name": "",
|
2163 |
"required_fields": []
|
2164 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2165 |
{
|
2166 |
"slug": "furdeco",
|
2167 |
"name": "Furdeco",
|
@@ -2460,6 +2502,12 @@
|
|
2460 |
"other_name": null,
|
2461 |
"required_fields": []
|
2462 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2463 |
{
|
2464 |
"slug": "heppner",
|
2465 |
"name": "Heppner Internationale Spedition GmbH & Co.",
|
@@ -2616,6 +2664,12 @@
|
|
2616 |
"other_name": "上海宏杉国际物流",
|
2617 |
"required_fields": []
|
2618 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2619 |
{
|
2620 |
"slug": "iml",
|
2621 |
"name": "IML",
|
@@ -2818,6 +2872,12 @@
|
|
2818 |
"other_name": null,
|
2819 |
"required_fields": []
|
2820 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2821 |
{
|
2822 |
"slug": "jersey-post",
|
2823 |
"name": "Jersey Post",
|
@@ -2860,6 +2920,12 @@
|
|
2860 |
"other_name": "",
|
2861 |
"required_fields": []
|
2862 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2863 |
{
|
2864 |
"slug": "joyingbox",
|
2865 |
"name": "Joying Box",
|
@@ -2902,6 +2968,12 @@
|
|
2902 |
"other_name": "",
|
2903 |
"required_fields": []
|
2904 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
2905 |
{
|
2906 |
"slug": "kdexp",
|
2907 |
"name": "Kyungdong Parcel",
|
@@ -3060,7 +3132,7 @@
|
|
3060 |
},
|
3061 |
{
|
3062 |
"slug": "leader",
|
3063 |
-
"name": "
|
3064 |
"other_name": "立德国际物流",
|
3065 |
"required_fields": []
|
3066 |
},
|
@@ -3567,6 +3639,18 @@
|
|
3567 |
"other_name": "Nigerian Postal Service",
|
3568 |
"required_fields": []
|
3569 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3570 |
{
|
3571 |
"slug": "norsk-global",
|
3572 |
"name": "Norsk Global",
|
@@ -3663,6 +3747,12 @@
|
|
3663 |
"other_name": "Omni-Channel Logistics (Seko)",
|
3664 |
"required_fields": []
|
3665 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
3666 |
{
|
3667 |
"slug": "omniva",
|
3668 |
"name": "Omniva",
|
@@ -3699,6 +3789,12 @@
|
|
3699 |
"other_name": null,
|
3700 |
"required_fields": []
|
3701 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
3702 |
{
|
3703 |
"slug": "osm-worldwide",
|
3704 |
"name": "OSM Worldwide",
|
@@ -3867,6 +3963,12 @@
|
|
3867 |
"other_name": "ParcelPost",
|
3868 |
"required_fields": []
|
3869 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
3870 |
{
|
3871 |
"slug": "parceltopost",
|
3872 |
"name": "Parcel To Post",
|
@@ -4256,9 +4358,7 @@
|
|
4256 |
"slug": "relaiscolis",
|
4257 |
"name": "Relais Colis",
|
4258 |
"other_name": "",
|
4259 |
-
"required_fields": [
|
4260 |
-
"tracking_key"
|
4261 |
-
]
|
4262 |
},
|
4263 |
{
|
4264 |
"slug": "rhenus-group",
|
@@ -4488,6 +4588,12 @@
|
|
4488 |
"other_name": "Kin Shun Information Technology Limited",
|
4489 |
"required_fields": []
|
4490 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
4491 |
{
|
4492 |
"slug": "ship-it-asia",
|
4493 |
"name": "Ship It Asia",
|
@@ -5106,6 +5212,12 @@
|
|
5106 |
"other_name": "",
|
5107 |
"required_fields": []
|
5108 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
5109 |
{
|
5110 |
"slug": "tophatterexpress",
|
5111 |
"name": "Tophatter Express",
|
@@ -5550,6 +5662,12 @@
|
|
5550 |
"other_name": "燕文物流",
|
5551 |
"required_fields": []
|
5552 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
5553 |
{
|
5554 |
"slug": "ydh-express",
|
5555 |
"name": "YDH express",
|
59 |
"other_name": null,
|
60 |
"required_fields": []
|
61 |
},
|
62 |
+
{
|
63 |
+
"slug": "a1post",
|
64 |
+
"name": "A1Post",
|
65 |
+
"other_name": null,
|
66 |
+
"required_fields": []
|
67 |
+
},
|
68 |
{
|
69 |
"slug": "a2b-ba",
|
70 |
"name": "A2B Express Logistics",
|
391 |
"other_name": null,
|
392 |
"required_fields": []
|
393 |
},
|
394 |
+
{
|
395 |
+
"slug": "argents-webhook",
|
396 |
+
"name": "Argents Express Group",
|
397 |
+
"other_name": null,
|
398 |
+
"required_fields": []
|
399 |
+
},
|
400 |
{
|
401 |
"slug": "ark-logistics",
|
402 |
"name": "ARK Logistics",
|
614 |
"other_name": "",
|
615 |
"required_fields": []
|
616 |
},
|
617 |
+
{
|
618 |
+
"slug": "bollore-logistics",
|
619 |
+
"name": "Bollore Logistics",
|
620 |
+
"other_name": null,
|
621 |
+
"required_fields": []
|
622 |
+
},
|
623 |
{
|
624 |
"slug": "bombinoexp",
|
625 |
"name": "Bombino Express Pvt Ltd",
|
910 |
"other_name": "Chronopost pt",
|
911 |
"required_fields": []
|
912 |
},
|
913 |
+
{
|
914 |
+
"slug": "city56-webhook",
|
915 |
+
"name": "City Express",
|
916 |
+
"other_name": null,
|
917 |
+
"required_fields": []
|
918 |
+
},
|
919 |
{
|
920 |
"slug": "citylinkexpress",
|
921 |
"name": "City-Link Express",
|
1292 |
"other_name": "",
|
1293 |
"required_fields": []
|
1294 |
},
|
1295 |
+
{
|
1296 |
+
"slug": "dealer-send",
|
1297 |
+
"name": "DealerSend",
|
1298 |
+
"other_name": null,
|
1299 |
+
"required_fields": []
|
1300 |
+
},
|
1301 |
{
|
1302 |
"slug": "delhivery",
|
1303 |
"name": "Delhivery",
|
1748 |
},
|
1749 |
{
|
1750 |
"slug": "dx-sftp",
|
1751 |
+
"name": "DX",
|
1752 |
"other_name": "",
|
1753 |
"required_fields": []
|
1754 |
},
|
2162 |
"other_name": "",
|
2163 |
"required_fields": []
|
2164 |
},
|
2165 |
+
{
|
2166 |
+
"slug": "fnf-za",
|
2167 |
+
"name": "Fast & Furious",
|
2168 |
+
"other_name": null,
|
2169 |
+
"required_fields": []
|
2170 |
+
},
|
2171 |
{
|
2172 |
"slug": "fonsen",
|
2173 |
"name": "Fonsen Logistics",
|
2198 |
"other_name": "",
|
2199 |
"required_fields": []
|
2200 |
},
|
2201 |
+
{
|
2202 |
+
"slug": "fulfillmen",
|
2203 |
+
"name": "Fulfillme",
|
2204 |
+
"other_name": null,
|
2205 |
+
"required_fields": []
|
2206 |
+
},
|
2207 |
{
|
2208 |
"slug": "furdeco",
|
2209 |
"name": "Furdeco",
|
2502 |
"other_name": null,
|
2503 |
"required_fields": []
|
2504 |
},
|
2505 |
+
{
|
2506 |
+
"slug": "helthjem-api",
|
2507 |
+
"name": "Helthjem",
|
2508 |
+
"other_name": null,
|
2509 |
+
"required_fields": []
|
2510 |
+
},
|
2511 |
{
|
2512 |
"slug": "heppner",
|
2513 |
"name": "Heppner Internationale Spedition GmbH & Co.",
|
2664 |
"other_name": "上海宏杉国际物流",
|
2665 |
"required_fields": []
|
2666 |
},
|
2667 |
+
{
|
2668 |
+
"slug": "ilyanglogis",
|
2669 |
+
"name": "Ilyang logistics",
|
2670 |
+
"other_name": null,
|
2671 |
+
"required_fields": []
|
2672 |
+
},
|
2673 |
{
|
2674 |
"slug": "iml",
|
2675 |
"name": "IML",
|
2872 |
"other_name": null,
|
2873 |
"required_fields": []
|
2874 |
},
|
2875 |
+
{
|
2876 |
+
"slug": "jd-worldwide",
|
2877 |
+
"name": "JD Worldwide",
|
2878 |
+
"other_name": "京东国际物流",
|
2879 |
+
"required_fields": []
|
2880 |
+
},
|
2881 |
{
|
2882 |
"slug": "jersey-post",
|
2883 |
"name": "Jersey Post",
|
2920 |
"other_name": "",
|
2921 |
"required_fields": []
|
2922 |
},
|
2923 |
+
{
|
2924 |
+
"slug": "joom-logistics",
|
2925 |
+
"name": "Joom Logistics",
|
2926 |
+
"other_name": null,
|
2927 |
+
"required_fields": []
|
2928 |
+
},
|
2929 |
{
|
2930 |
"slug": "joyingbox",
|
2931 |
"name": "Joying Box",
|
2968 |
"other_name": "",
|
2969 |
"required_fields": []
|
2970 |
},
|
2971 |
+
{
|
2972 |
+
"slug": "kargomkolay",
|
2973 |
+
"name": "KargomKolay (CargoMini)",
|
2974 |
+
"other_name": null,
|
2975 |
+
"required_fields": []
|
2976 |
+
},
|
2977 |
{
|
2978 |
"slug": "kdexp",
|
2979 |
"name": "Kyungdong Parcel",
|
3132 |
},
|
3133 |
{
|
3134 |
"slug": "leader",
|
3135 |
+
"name": "Leader",
|
3136 |
"other_name": "立德国际物流",
|
3137 |
"required_fields": []
|
3138 |
},
|
3639 |
"other_name": "Nigerian Postal Service",
|
3640 |
"required_fields": []
|
3641 |
},
|
3642 |
+
{
|
3643 |
+
"slug": "nipponexpress-ftp",
|
3644 |
+
"name": "Nippon Express",
|
3645 |
+
"other_name": null,
|
3646 |
+
"required_fields": []
|
3647 |
+
},
|
3648 |
+
{
|
3649 |
+
"slug": "nmtransfer",
|
3650 |
+
"name": "N&M Transfer Co., Inc.",
|
3651 |
+
"other_name": null,
|
3652 |
+
"required_fields": []
|
3653 |
+
},
|
3654 |
{
|
3655 |
"slug": "norsk-global",
|
3656 |
"name": "Norsk Global",
|
3747 |
"other_name": "Omni-Channel Logistics (Seko)",
|
3748 |
"required_fields": []
|
3749 |
},
|
3750 |
+
{
|
3751 |
+
"slug": "omnirps-webhook",
|
3752 |
+
"name": "Omni Returns",
|
3753 |
+
"other_name": null,
|
3754 |
+
"required_fields": []
|
3755 |
+
},
|
3756 |
{
|
3757 |
"slug": "omniva",
|
3758 |
"name": "Omniva",
|
3789 |
"other_name": null,
|
3790 |
"required_fields": []
|
3791 |
},
|
3792 |
+
{
|
3793 |
+
"slug": "orangedsinc",
|
3794 |
+
"name": "OrangeDS (Orange Distribution Solutions Inc)",
|
3795 |
+
"other_name": null,
|
3796 |
+
"required_fields": []
|
3797 |
+
},
|
3798 |
{
|
3799 |
"slug": "osm-worldwide",
|
3800 |
"name": "OSM Worldwide",
|
3963 |
"other_name": "ParcelPost",
|
3964 |
"required_fields": []
|
3965 |
},
|
3966 |
+
{
|
3967 |
+
"slug": "parcelright",
|
3968 |
+
"name": "Parcel Right",
|
3969 |
+
"other_name": null,
|
3970 |
+
"required_fields": []
|
3971 |
+
},
|
3972 |
{
|
3973 |
"slug": "parceltopost",
|
3974 |
"name": "Parcel To Post",
|
4358 |
"slug": "relaiscolis",
|
4359 |
"name": "Relais Colis",
|
4360 |
"other_name": "",
|
4361 |
+
"required_fields": []
|
|
|
|
|
4362 |
},
|
4363 |
{
|
4364 |
"slug": "rhenus-group",
|
4588 |
"other_name": "Kin Shun Information Technology Limited",
|
4589 |
"required_fields": []
|
4590 |
},
|
4591 |
+
{
|
4592 |
+
"slug": "sherpa",
|
4593 |
+
"name": "Sherpa",
|
4594 |
+
"other_name": null,
|
4595 |
+
"required_fields": []
|
4596 |
+
},
|
4597 |
{
|
4598 |
"slug": "ship-it-asia",
|
4599 |
"name": "Ship It Asia",
|
5212 |
"other_name": "",
|
5213 |
"required_fields": []
|
5214 |
},
|
5215 |
+
{
|
5216 |
+
"slug": "tonami-ftp",
|
5217 |
+
"name": "Tonami",
|
5218 |
+
"other_name": null,
|
5219 |
+
"required_fields": []
|
5220 |
+
},
|
5221 |
{
|
5222 |
"slug": "tophatterexpress",
|
5223 |
"name": "Tophatter Express",
|
5662 |
"other_name": "燕文物流",
|
5663 |
"required_fields": []
|
5664 |
},
|
5665 |
+
{
|
5666 |
+
"slug": "ydex",
|
5667 |
+
"name": "Shenzhen 1st International Logistics(Group)Co,Ltd",
|
5668 |
+
"other_name": "深圳市一代国际物流(集团)有限公司",
|
5669 |
+
"required_fields": []
|
5670 |
+
},
|
5671 |
{
|
5672 |
"slug": "ydh-express",
|
5673 |
"name": "YDH express",
|
includes/api/aftership/v1/class-am-rest-settings-controller.php
CHANGED
@@ -43,7 +43,11 @@ if ( ! class_exists( 'AM_REST_Settings_Controller' ) ) {
|
|
43 |
*/
|
44 |
public function get_settings( WP_REST_Request $request ) {
|
45 |
$settings = get_option( $this->option_name );
|
46 |
-
$settings['version'] =
|
|
|
|
|
|
|
|
|
47 |
return array( 'settings' => $settings );
|
48 |
}
|
49 |
|
43 |
*/
|
44 |
public function get_settings( WP_REST_Request $request ) {
|
45 |
$settings = get_option( $this->option_name );
|
46 |
+
$settings['version'] = array(
|
47 |
+
'wordpress' => get_bloginfo( 'version' ),
|
48 |
+
'woocommerce' => WC()->version,
|
49 |
+
'aftership' => AFTERSHIP_VERSION,
|
50 |
+
);
|
51 |
return array( 'settings' => $settings );
|
52 |
}
|
53 |
|
includes/class-aftership-actions.php
CHANGED
@@ -916,6 +916,36 @@ class AfterShip_Actions {
|
|
916 |
return $args;
|
917 |
}
|
918 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
919 |
/**
|
920 |
* Add 'modified' to orderby enum
|
921 |
*
|
916 |
return $args;
|
917 |
}
|
918 |
|
919 |
+
/**
|
920 |
+
* Add 'modified_after' and 'modified_before' for data query
|
921 |
+
*
|
922 |
+
* @param array $args
|
923 |
+
* @param WP_REST_Request $request
|
924 |
+
* @return array
|
925 |
+
*/
|
926 |
+
function add_customer_query( array $args, $request ) {
|
927 |
+
$order = $request->get_param( 'order' );
|
928 |
+
$modified_after = $request->get_param( 'modified_after' );
|
929 |
+
$modified_before = $request->get_param( 'modified_before' );
|
930 |
+
if ( ! $modified_after || ! $modified_before ) {
|
931 |
+
return $args;
|
932 |
+
};
|
933 |
+
// @notice may overwrite other service's query
|
934 |
+
// @notice currently only AfterShip use modified_after & modified_before
|
935 |
+
$args['meta_query'] = array(
|
936 |
+
'modified' => array(
|
937 |
+
'key' => 'last_update',
|
938 |
+
'value' => array( strtotime( $modified_after ), strtotime( $modified_before ) ),
|
939 |
+
'type' => 'numeric',
|
940 |
+
'compare' => 'BETWEEN',
|
941 |
+
),
|
942 |
+
);
|
943 |
+
$args['orderby'] = array(
|
944 |
+
'modified' => $order ? $order : 'DESC',
|
945 |
+
);
|
946 |
+
return $args;
|
947 |
+
}
|
948 |
+
|
949 |
/**
|
950 |
* Add 'modified' to orderby enum
|
951 |
*
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -136,8 +136,11 @@ Tailor a dynamic branded tracking page. Upload promotional banner, logo, and fav
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
|
|
|
|
|
|
139 |
= 1.13.7 =
|
140 |
-
*
|
141 |
|
142 |
= 1.13.6 =
|
143 |
* Fix known issue
|
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.8
|
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.8 =
|
140 |
+
* Update courier list
|
141 |
+
|
142 |
= 1.13.7 =
|
143 |
+
* Add modified_after & modified_before filter for customers
|
144 |
|
145 |
= 1.13.6 =
|
146 |
* Fix known issue
|