Version Description
- Added custom fields import from order
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.9.1 |
Comparing to | |
See all releases |
Code changes from version 1.8.7 to 1.9.1
- aftership.php +1 -1
- api/class-aftership-api-orders.php +30 -0
- readme.txt +14 -5
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.9.1
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
api/class-aftership-api-orders.php
CHANGED
@@ -119,6 +119,35 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
|
|
119 |
|
120 |
$order_post = get_post($id);
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
$order_data = array(
|
123 |
'id' => get_order_id($order),
|
124 |
'order_number' => $order->get_order_number(),
|
@@ -177,6 +206,7 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
|
|
177 |
// 'tax_lines' => array(),
|
178 |
// 'fee_lines' => array(),
|
179 |
// 'coupon_lines' => array(),
|
|
|
180 |
);
|
181 |
|
182 |
// add line items
|
119 |
|
120 |
$order_post = get_post($id);
|
121 |
|
122 |
+
$order_id = get_order_id($order);
|
123 |
+
|
124 |
+
$meta_keys = array_keys(get_post_meta($order_id));
|
125 |
+
|
126 |
+
// set up the array with keys that is not part of custom field
|
127 |
+
$filter_list = array("_edit_last","_aftership_tracking_provider_name","_aftership_tracking_required_fields"
|
128 |
+
,"_aftership_tracking_number","_aftership_tracking_shipdate","_aftership_tracking_postal"
|
129 |
+
,"_aftership_tracking_account","_aftership_tracking_key","_aftership_tracking_destination_country"
|
130 |
+
,"_order_key","_customer_user","_payment_method","_payment_method_title","_transaction_id"
|
131 |
+
,"_customer_ip_address","_customer_user_agent","_created_via","_date_completed"
|
132 |
+
,"_completed_date","_date_paid","_paid_date","_cart_hash","_billing_first_name","_billing_last_name"
|
133 |
+
,"_billing_company","_billing_address_1","_billing_address_2","_billing_city","_billing_state",
|
134 |
+
"_billing_postcode","_billing_country","_billing_email","_billing_phone","_shipping_first_name",
|
135 |
+
"_shipping_last_name","_shipping_company","_shipping_address_1","_shipping_address_2","_shipping_city",
|
136 |
+
"_shipping_state","_shipping_postcode","_shipping_country","_order_currency","_cart_discount",
|
137 |
+
"_cart_discount_tax","_order_shipping","_order_shipping_tax","_order_tax","_order_total","_order_version",
|
138 |
+
"_prices_include_tax","_billing_address_index","_shipping_address_index","_edit_lock",
|
139 |
+
"_aftership_tracking_provider", "_download_permissions_granted", "_recorded_sales", "_recorded_coupon_usage_counts"
|
140 |
+
);
|
141 |
+
|
142 |
+
// set an empty custom_field array
|
143 |
+
$custom_field = array();
|
144 |
+
|
145 |
+
foreach($meta_keys as $key) {
|
146 |
+
if (!(in_array($key, $filter_list))) {
|
147 |
+
$custom_field[$key] = get_post_meta($order_id, $key, true);
|
148 |
+
}
|
149 |
+
}
|
150 |
+
|
151 |
$order_data = array(
|
152 |
'id' => get_order_id($order),
|
153 |
'order_number' => $order->get_order_number(),
|
206 |
// 'tax_lines' => array(),
|
207 |
// 'fee_lines' => array(),
|
208 |
// 'coupon_lines' => array(),
|
209 |
+
'custom_fields' => $custom_field
|
210 |
);
|
211 |
|
212 |
// add line items
|
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 |
|
@@ -14,13 +14,13 @@ AfterShip is free for 100 first shipments, then try Premium.
|
|
14 |
== Description ==
|
15 |
|
16 |
###Top Shipment Tracking Plugin (Free)
|
17 |
-
By installing AfterShip plugin, you can automatically add Tracking Number and Courier fields to your admin panel. After you fulfill an order, simply enter the tracking number and select a courier at WooCommerce, the same info will be displayed at customer's order history page. AfterShip supports over
|
18 |
|
19 |
###Display tracking info at order history page (Free)
|
20 |
The plugin allows you to insert the AfterShip Track Button to order history page, so that your customers can track the latest order status in one click.
|
21 |
|
22 |
###Support 450+ International Courier (Free)
|
23 |
-
AfterShip supports UPS tracking, FedEx tracking, USPS tracking, DHL tracking and shipment tracking of over
|
24 |
|
25 |
|
26 |
###Track all shipments in one place (Free)
|
@@ -35,7 +35,7 @@ Upgrade to [Premium](https://www.aftership.com/pricing) to automatically send ou
|
|
35 |
|
36 |
[youtube http://www.youtube.com/watch?v=1zCCx8Ap9ms]
|
37 |
|
38 |
-
###Full list of supported carriers (
|
39 |
**①. US, Canada & Global Tracking (35)**
|
40 |
ABF Freight • APC Postal Logistics • Aramex • Asendia USA • Canada Post • Canpar Courier • Con-way Freight • DACHSER • DHL Express • DHL eCommerce • DHL Express (Piece ID) • DPD • DSV • Echo • Ensenda • Estes • FedEx • FedEx Freight • Globegistics Inc. • Greyhound • i-parcel • LaserShip • Newgistics • Old Dominion Freight Line • OnTrac • Purolator • RL Carriers • RR Donnelley • TNT • TNT Reference • UPS • UPS Freight • UPS Mail Innovations • USPS • YRC
|
41 |
|
@@ -89,7 +89,7 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
89 |
|
90 |
1. Add tracking number and carrier to WooCommerce
|
91 |
2. Display tracking info at order history page
|
92 |
-
3. Support tracking of UPS, DHL, FedEx, USPS and
|
93 |
4. AfterShip dashboard
|
94 |
5. Track all shipments in one place
|
95 |
6. View exception, and filter by status
|
@@ -97,6 +97,15 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 1.8.2 =
|
101 |
* Add couriers - ninjavan-philippines, omniva
|
102 |
|
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.9.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
14 |
== Description ==
|
15 |
|
16 |
###Top Shipment Tracking Plugin (Free)
|
17 |
+
By installing AfterShip plugin, you can automatically add Tracking Number and Courier fields to your admin panel. After you fulfill an order, simply enter the tracking number and select a courier at WooCommerce, the same info will be displayed at customer's order history page. AfterShip supports over 360+ carriers worldwide, you can select couriers by [signing up a free AfterShip account](https://secure.aftership.com/signup).
|
18 |
|
19 |
###Display tracking info at order history page (Free)
|
20 |
The plugin allows you to insert the AfterShip Track Button to order history page, so that your customers can track the latest order status in one click.
|
21 |
|
22 |
###Support 450+ International Courier (Free)
|
23 |
+
AfterShip supports UPS tracking, FedEx tracking, USPS tracking, DHL tracking and shipment tracking of over 360+ carriers worldwide. Please scroll down to see the full list of our supported carriers.
|
24 |
|
25 |
|
26 |
###Track all shipments in one place (Free)
|
35 |
|
36 |
[youtube http://www.youtube.com/watch?v=1zCCx8Ap9ms]
|
37 |
|
38 |
+
###Full list of supported carriers (360+):
|
39 |
**①. US, Canada & Global Tracking (35)**
|
40 |
ABF Freight • APC Postal Logistics • Aramex • Asendia USA • Canada Post • Canpar Courier • Con-way Freight • DACHSER • DHL Express • DHL eCommerce • DHL Express (Piece ID) • DPD • DSV • Echo • Ensenda • Estes • FedEx • FedEx Freight • Globegistics Inc. • Greyhound • i-parcel • LaserShip • Newgistics • Old Dominion Freight Line • OnTrac • Purolator • RL Carriers • RR Donnelley • TNT • TNT Reference • UPS • UPS Freight • UPS Mail Innovations • USPS • YRC
|
41 |
|
89 |
|
90 |
1. Add tracking number and carrier to WooCommerce
|
91 |
2. Display tracking info at order history page
|
92 |
+
3. Support tracking of UPS, DHL, FedEx, USPS and 360+ carriers
|
93 |
4. AfterShip dashboard
|
94 |
5. Track all shipments in one place
|
95 |
6. View exception, and filter by status
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 1.9.1 =
|
101 |
+
* Added custom fields import from order
|
102 |
+
|
103 |
+
= 1.8.7 =
|
104 |
+
* Updated couriers to latest
|
105 |
+
|
106 |
+
= 1.8.4 =
|
107 |
+
* Add couriers - Ninja Van Thailand, EFS (E-commerce Fulfillment Service)
|
108 |
+
|
109 |
= 1.8.2 =
|
110 |
* Add couriers - ninjavan-philippines, omniva
|
111 |
|