Version Description
- Fix the "Illegal string offset" issue
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.9.3 |
Comparing to | |
See all releases |
Code changes from version 1.9.2 to 1.9.3
- aftership.php +1 -1
- api/class-aftership-api-orders.php +7 -5
- readme.txt +6 -3
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.9.
|
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.3
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
api/class-aftership-api-orders.php
CHANGED
@@ -138,7 +138,7 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
|
|
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 |
|
@@ -303,10 +303,12 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
|
|
303 |
// Handle new Shipping Tracking plugin version higher than 1.6.4
|
304 |
$tracking_items = order_post_meta_getter($order, 'wc_shipment_tracking_items')[0];
|
305 |
|
306 |
-
$
|
307 |
-
'
|
308 |
-
|
309 |
-
|
|
|
|
|
310 |
} else {
|
311 |
$order_data['aftership']['woocommerce']['trackings'][] = array(
|
312 |
'tracking_number' => $tn,
|
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 |
|
303 |
// Handle new Shipping Tracking plugin version higher than 1.6.4
|
304 |
$tracking_items = order_post_meta_getter($order, 'wc_shipment_tracking_items')[0];
|
305 |
|
306 |
+
if(!empty($tracking_items)) {
|
307 |
+
$order_data['aftership']['woocommerce']['trackings'][] = array(
|
308 |
+
'tracking_number' => $tracking_items['tracking_number'],
|
309 |
+
'tracking_provider' => $tracking_items['custom_tracking_provider']
|
310 |
+
);
|
311 |
+
}
|
312 |
} else {
|
313 |
$order_data['aftership']['woocommerce']['trackings'][] = array(
|
314 |
'tracking_number' => $tn,
|
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.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -97,10 +97,13 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
-
= 1.9.
|
|
|
|
|
|
|
101 |
* Add new couriers supported by Aftership
|
102 |
|
103 |
-
= 1.9.1 =
|
104 |
* Added custom fields import from order
|
105 |
|
106 |
= 1.8.7 =
|
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.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 1.9.3 =
|
101 |
+
* Fix the "Illegal string offset" issue
|
102 |
+
|
103 |
+
= 1.9.2 =
|
104 |
* Add new couriers supported by Aftership
|
105 |
|
106 |
+
= 1.9.1 =
|
107 |
* Added custom fields import from order
|
108 |
|
109 |
= 1.8.7 =
|