Version Description
- Fix Bug - Order page - couriers callback
- Fix Bug - Avoid duplicate getAfterShipInstance()
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- aftership.php +16 -12
- readme.txt +5 -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.1.
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
@@ -128,8 +128,9 @@ if (is_woocommerce_active()) {
|
|
128 |
|
129 |
public function aftership_get_couriers()
|
130 |
{
|
131 |
-
|
132 |
-
|
|
|
133 |
jQuery(document).ready(function($) {
|
134 |
var data = {
|
135 |
"action": "aftership_get_couriers_callback"
|
@@ -142,11 +143,12 @@ if (is_woocommerce_active()) {
|
|
142 |
});
|
143 |
';
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
|
|
150 |
}
|
151 |
|
152 |
}
|
@@ -494,11 +496,13 @@ if (is_woocommerce_active()) {
|
|
494 |
echo "<br><br>";
|
495 |
}
|
496 |
}
|
497 |
-
}
|
498 |
|
499 |
-
|
500 |
-
|
501 |
-
|
|
|
|
|
|
|
502 |
}
|
503 |
|
504 |
/**
|
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.1.5
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
128 |
|
129 |
public function aftership_get_couriers()
|
130 |
{
|
131 |
+
//todo: not only check shop_order, have to check action=edit too
|
132 |
+
if (get_post_type(get_the_ID()) == 'shop_order') {
|
133 |
+
$js = '
|
134 |
jQuery(document).ready(function($) {
|
135 |
var data = {
|
136 |
"action": "aftership_get_couriers_callback"
|
143 |
});
|
144 |
';
|
145 |
|
146 |
+
if (function_exists('wc_enqueue_js')) {
|
147 |
+
wc_enqueue_js($js);
|
148 |
+
} else {
|
149 |
+
global $woocommerce;
|
150 |
+
$woocommerce->add_inline_js($js);
|
151 |
+
}
|
152 |
}
|
153 |
|
154 |
}
|
496 |
echo "<br><br>";
|
497 |
}
|
498 |
}
|
|
|
499 |
|
500 |
+
if (!function_exists('getAfterShipInstance')) {
|
501 |
+
function getAfterShipInstance()
|
502 |
+
{
|
503 |
+
return AfterShip::Instance();
|
504 |
+
}
|
505 |
+
}
|
506 |
}
|
507 |
|
508 |
/**
|
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: 3.9.2
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -93,6 +93,10 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
96 |
= 1.1.4 =
|
97 |
* Fix Bug - assets location
|
98 |
* Fix Bug - WC Dependency
|
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: 3.9.2
|
7 |
+
Stable tag: 1.1.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.1.5 =
|
97 |
+
* Fix Bug - Order page - couriers callback
|
98 |
+
* Fix Bug - Avoid duplicate getAfterShipInstance()
|
99 |
+
|
100 |
= 1.1.4 =
|
101 |
* Fix Bug - assets location
|
102 |
* Fix Bug - WC Dependency
|