Version Description
- Add credentials verification
- Enable importing note from customer
- Add new couriers
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.5.0 |
Comparing to | |
See all releases |
Code changes from version 1.4.8 to 1.5.0
- aftership.php +1 -1
- api/class-aftership-api-orders.php +19 -1
- assets/js/couriers.js +68 -26
- readme.txt +6 -1
aftership.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: AfterShip - WooCommerce Tracking
|
4 |
Plugin URI: http://aftership.com/
|
5 |
Description: Add tracking number and carrier name to WooCommerce, display tracking info at order history page, auto import tracking numbers to AfterShip.
|
6 |
-
Version: 1.
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
3 |
Plugin Name: AfterShip - WooCommerce Tracking
|
4 |
Plugin URI: http://aftership.com/
|
5 |
Description: Add tracking number and carrier name to WooCommerce, display tracking info at order history page, auto import tracking numbers to AfterShip.
|
6 |
+
Version: 1.5.0
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
api/class-aftership-api-orders.php
CHANGED
@@ -54,6 +54,11 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
|
|
54 |
array(array($this, 'get_order_notes'), AfterShip_API_Server::READABLE),
|
55 |
);
|
56 |
|
|
|
|
|
|
|
|
|
|
|
57 |
return $routes;
|
58 |
}
|
59 |
|
@@ -162,7 +167,7 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
|
|
162 |
'postcode' => $order->shipping_postcode,
|
163 |
'country' => $order->shipping_country,
|
164 |
),
|
165 |
-
|
166 |
// 'customer_ip' => $order->customer_ip_address,
|
167 |
// 'customer_user_agent' => $order->customer_user_agent,
|
168 |
// 'customer_id' => $order->customer_user,
|
@@ -471,4 +476,17 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
|
|
471 |
return $subtotal;
|
472 |
}
|
473 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
}
|
54 |
array(array($this, 'get_order_notes'), AfterShip_API_Server::READABLE),
|
55 |
);
|
56 |
|
57 |
+
# GET /orders/ping
|
58 |
+
$routes[$this->base . '/ping'] = array(
|
59 |
+
array(array($this, 'ping'), AfterShip_API_Server::READABLE),
|
60 |
+
);
|
61 |
+
|
62 |
return $routes;
|
63 |
}
|
64 |
|
167 |
'postcode' => $order->shipping_postcode,
|
168 |
'country' => $order->shipping_country,
|
169 |
),
|
170 |
+
'note' => $order->customer_note,
|
171 |
// 'customer_ip' => $order->customer_ip_address,
|
172 |
// 'customer_user_agent' => $order->customer_user_agent,
|
173 |
// 'customer_id' => $order->customer_user,
|
476 |
return $subtotal;
|
477 |
}
|
478 |
|
479 |
+
/**
|
480 |
+
* Get the total number of orders
|
481 |
+
*
|
482 |
+
* @since 2.1
|
483 |
+
* @param string $status
|
484 |
+
* @param array $filter
|
485 |
+
* @return array
|
486 |
+
*/
|
487 |
+
public function ping()
|
488 |
+
{
|
489 |
+
return "pong";
|
490 |
+
}
|
491 |
+
|
492 |
}
|
assets/js/couriers.js
CHANGED
@@ -30,12 +30,6 @@ function get_couriers() {
|
|
30 |
"other_name": "递四方",
|
31 |
"required_fields": []
|
32 |
},
|
33 |
-
{
|
34 |
-
"slug": "4squaregroup",
|
35 |
-
"name": "4Square Group",
|
36 |
-
"other_name": "4 Square",
|
37 |
-
"required_fields": []
|
38 |
-
},
|
39 |
{
|
40 |
"slug": "800bestex",
|
41 |
"name": "Best Express",
|
@@ -96,6 +90,12 @@ function get_couriers() {
|
|
96 |
"other_name": "Airspeed Philippines",
|
97 |
"required_fields": []
|
98 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
{
|
100 |
"slug": "an-post",
|
101 |
"name": "An Post",
|
@@ -116,6 +116,14 @@ function get_couriers() {
|
|
116 |
"tracking_account_number"
|
117 |
]
|
118 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
{
|
120 |
"slug": "aramex",
|
121 |
"name": "Aramex",
|
@@ -180,6 +188,15 @@ function get_couriers() {
|
|
180 |
"other_name": "Österreichische Post AG",
|
181 |
"required_fields": []
|
182 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
{
|
184 |
"slug": "belpost",
|
185 |
"name": "Belpost",
|
@@ -464,12 +481,6 @@ function get_couriers() {
|
|
464 |
"other_name": "Gharpay",
|
465 |
"required_fields": []
|
466 |
},
|
467 |
-
{
|
468 |
-
"slug": "delivreeking",
|
469 |
-
"name": "Delivree King",
|
470 |
-
"other_name": "delivery king",
|
471 |
-
"required_fields": []
|
472 |
-
},
|
473 |
{
|
474 |
"slug": "deltec-courier",
|
475 |
"name": "Deltec Courier",
|
@@ -648,6 +659,20 @@ function get_couriers() {
|
|
648 |
"other_name": "DTDC Courier & Cargo",
|
649 |
"required_fields": []
|
650 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
651 |
{
|
652 |
"slug": "dynamic-logistics",
|
653 |
"name": "Dynamic Logistics",
|
@@ -674,12 +699,6 @@ function get_couriers() {
|
|
674 |
"other_name": "Ecargo Pte. Ltd",
|
675 |
"required_fields": []
|
676 |
},
|
677 |
-
{
|
678 |
-
"slug": "ecexpress-cn",
|
679 |
-
"name": "EC Express",
|
680 |
-
"other_name": "CIS Post, u4e0au6d77u4e1cu64ce",
|
681 |
-
"required_fields": []
|
682 |
-
},
|
683 |
{
|
684 |
"slug": "echo",
|
685 |
"name": "Echo",
|
@@ -746,6 +765,12 @@ function get_couriers() {
|
|
746 |
"other_name": "DPD France",
|
747 |
"required_fields": []
|
748 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
749 |
{
|
750 |
"slug": "fastrak-th",
|
751 |
"name": "Fastrak Services",
|
@@ -832,7 +857,7 @@ function get_couriers() {
|
|
832 |
},
|
833 |
{
|
834 |
"slug": "geodis-calberson-fr",
|
835 |
-
"name": "
|
836 |
"other_name": "Geodiscalberson",
|
837 |
"required_fields": [
|
838 |
"tracking_postal_code"
|
@@ -936,6 +961,12 @@ function get_couriers() {
|
|
936 |
"other_name": "上海宏杉国际物流",
|
937 |
"required_fields": []
|
938 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
939 |
{
|
940 |
"slug": "imxmail",
|
941 |
"name": "IMX Mail",
|
@@ -1234,6 +1265,12 @@ function get_couriers() {
|
|
1234 |
"other_name": "",
|
1235 |
"required_fields": []
|
1236 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
1237 |
{
|
1238 |
"slug": "ninjavan-my",
|
1239 |
"name": "Ninja Van Malaysia",
|
@@ -1607,6 +1644,12 @@ function get_couriers() {
|
|
1607 |
"other_name": "البريد السعودي",
|
1608 |
"required_fields": []
|
1609 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
1610 |
{
|
1611 |
"slug": "sekologistics",
|
1612 |
"name": "SEKO Logistics",
|
@@ -1658,12 +1701,6 @@ function get_couriers() {
|
|
1658 |
"other_name": "Singapore EMS",
|
1659 |
"required_fields": []
|
1660 |
},
|
1661 |
-
{
|
1662 |
-
"slug": "singparcel",
|
1663 |
-
"name": "SingParcel Service",
|
1664 |
-
"other_name": "SPS",
|
1665 |
-
"required_fields": []
|
1666 |
-
},
|
1667 |
{
|
1668 |
"slug": "siodemka",
|
1669 |
"name": "Siodemka",
|
@@ -1826,6 +1863,12 @@ function get_couriers() {
|
|
1826 |
"other_name": "ไปรษณีย์ไทย",
|
1827 |
"required_fields": []
|
1828 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
1829 |
{
|
1830 |
"slug": "tiki",
|
1831 |
"name": "Tiki",
|
@@ -2089,4 +2132,3 @@ function get_couriers() {
|
|
2089 |
];
|
2090 |
return data;
|
2091 |
}
|
2092 |
-
|
30 |
"other_name": "递四方",
|
31 |
"required_fields": []
|
32 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
{
|
34 |
"slug": "800bestex",
|
35 |
"name": "Best Express",
|
90 |
"other_name": "Airspeed Philippines",
|
91 |
"required_fields": []
|
92 |
},
|
93 |
+
{
|
94 |
+
"slug": "alphafast",
|
95 |
+
"name": "alphaFAST",
|
96 |
+
"other_name": "Alpha",
|
97 |
+
"required_fields": []
|
98 |
+
},
|
99 |
{
|
100 |
"slug": "an-post",
|
101 |
"name": "An Post",
|
116 |
"tracking_account_number"
|
117 |
]
|
118 |
},
|
119 |
+
{
|
120 |
+
"slug": "apc-overnight-reference",
|
121 |
+
"name": " APC Overnight Reference",
|
122 |
+
"other_name": "The Alternative Parcels Company Limited",
|
123 |
+
"required_fields": [
|
124 |
+
"tracking_account_number"
|
125 |
+
]
|
126 |
+
},
|
127 |
{
|
128 |
"slug": "aramex",
|
129 |
"name": "Aramex",
|
188 |
"other_name": "Österreichische Post AG",
|
189 |
"required_fields": []
|
190 |
},
|
191 |
+
{
|
192 |
+
"slug": "b2ceurope",
|
193 |
+
"name": "B2C Europe",
|
194 |
+
"other_name": "trackyourparcel.eu",
|
195 |
+
"required_fields": [
|
196 |
+
"tracking_postal_code",
|
197 |
+
"tracking_destination_country"
|
198 |
+
]
|
199 |
+
},
|
200 |
{
|
201 |
"slug": "belpost",
|
202 |
"name": "Belpost",
|
481 |
"other_name": "Gharpay",
|
482 |
"required_fields": []
|
483 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
484 |
{
|
485 |
"slug": "deltec-courier",
|
486 |
"name": "Deltec Courier",
|
659 |
"other_name": "DTDC Courier & Cargo",
|
660 |
"required_fields": []
|
661 |
},
|
662 |
+
{
|
663 |
+
"slug": "dtdc-au",
|
664 |
+
"name": "DTDC Australia",
|
665 |
+
"other_name": "",
|
666 |
+
"required_fields": []
|
667 |
+
},
|
668 |
+
{
|
669 |
+
"slug": "dx",
|
670 |
+
"name": "DX",
|
671 |
+
"other_name": "-",
|
672 |
+
"required_fields": [
|
673 |
+
"tracking_account_number"
|
674 |
+
]
|
675 |
+
},
|
676 |
{
|
677 |
"slug": "dynamic-logistics",
|
678 |
"name": "Dynamic Logistics",
|
699 |
"other_name": "Ecargo Pte. Ltd",
|
700 |
"required_fields": []
|
701 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
702 |
{
|
703 |
"slug": "echo",
|
704 |
"name": "Echo",
|
765 |
"other_name": "DPD France",
|
766 |
"required_fields": []
|
767 |
},
|
768 |
+
{
|
769 |
+
"slug": "expeditors",
|
770 |
+
"name": "Expeditors",
|
771 |
+
"other_name": "",
|
772 |
+
"required_fields": []
|
773 |
+
},
|
774 |
{
|
775 |
"slug": "fastrak-th",
|
776 |
"name": "Fastrak Services",
|
857 |
},
|
858 |
{
|
859 |
"slug": "geodis-calberson-fr",
|
860 |
+
"name": "GEODIS - Distribution & Express",
|
861 |
"other_name": "Geodiscalberson",
|
862 |
"required_fields": [
|
863 |
"tracking_postal_code"
|
961 |
"other_name": "上海宏杉国际物流",
|
962 |
"required_fields": []
|
963 |
},
|
964 |
+
{
|
965 |
+
"slug": "imexglobalsolutions",
|
966 |
+
"name": " IMEX Global Solutions",
|
967 |
+
"other_name": "",
|
968 |
+
"required_fields": []
|
969 |
+
},
|
970 |
{
|
971 |
"slug": "imxmail",
|
972 |
"name": "IMX Mail",
|
1265 |
"other_name": "",
|
1266 |
"required_fields": []
|
1267 |
},
|
1268 |
+
{
|
1269 |
+
"slug": "ninjavan-id",
|
1270 |
+
"name": "Ninja Van Indonesia",
|
1271 |
+
"other_name": "NinjaVan Indonesia",
|
1272 |
+
"required_fields": []
|
1273 |
+
},
|
1274 |
{
|
1275 |
"slug": "ninjavan-my",
|
1276 |
"name": "Ninja Van Malaysia",
|
1644 |
"other_name": "البريد السعودي",
|
1645 |
"required_fields": []
|
1646 |
},
|
1647 |
+
{
|
1648 |
+
"slug": "scudex-express",
|
1649 |
+
"name": "Scudex Express",
|
1650 |
+
"other_name": "",
|
1651 |
+
"required_fields": []
|
1652 |
+
},
|
1653 |
{
|
1654 |
"slug": "sekologistics",
|
1655 |
"name": "SEKO Logistics",
|
1701 |
"other_name": "Singapore EMS",
|
1702 |
"required_fields": []
|
1703 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
1704 |
{
|
1705 |
"slug": "siodemka",
|
1706 |
"name": "Siodemka",
|
1863 |
"other_name": "ไปรษณีย์ไทย",
|
1864 |
"required_fields": []
|
1865 |
},
|
1866 |
+
{
|
1867 |
+
"slug": "thecourierguy",
|
1868 |
+
"name": "The Courier Guy",
|
1869 |
+
"other_name": "TheCourierGuy",
|
1870 |
+
"required_fields": []
|
1871 |
+
},
|
1872 |
{
|
1873 |
"slug": "tiki",
|
1874 |
"name": "Tiki",
|
2132 |
];
|
2133 |
return data;
|
2134 |
}
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.aftership.com/
|
|
4 |
Tags: shipping, tracking, ups, usps, fedex, dhl, tnt, dpd, post, shipment, woocommerce, tracking number, aftership, package tracking, fulfilment, tracking link, carrier, courier, woo commerce, woocommerce shipment tracking, shipping details plugin, widget, shipstation, track, package
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -92,6 +92,11 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
|
|
|
|
95 |
= 1.4.8 =
|
96 |
* Add new couriers
|
97 |
|
4 |
Tags: shipping, tracking, ups, usps, fedex, dhl, tnt, dpd, post, shipment, woocommerce, tracking number, aftership, package tracking, fulfilment, tracking link, carrier, courier, woo commerce, woocommerce shipment tracking, shipping details plugin, widget, shipstation, track, package
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.5.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.5.0 =
|
96 |
+
* Add credentials verification
|
97 |
+
* Enable importing note from customer
|
98 |
+
* Add new couriers
|
99 |
+
|
100 |
= 1.4.8 =
|
101 |
* Add new couriers
|
102 |
|