Version Description
- Fix the email display issues
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.1.8 |
Comparing to | |
See all releases |
Code changes from version 1.1.7 to 1.1.8
- aftership.php +8 -8
- readme.txt +5 -2
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 |
|
@@ -389,13 +389,13 @@ if (is_woocommerce_active()) {
|
|
389 |
function display_tracking_info($order_id, $for_email = false)
|
390 |
{
|
391 |
if ($this->plugin == 'aftership') {
|
392 |
-
$this->display_order_aftership($order_id);
|
393 |
} else if ($this->plugin == 'wc-shipment-tracking') { //$49
|
394 |
-
$this->display_order_wc_shipment_tracking($order_id);
|
395 |
}
|
396 |
}
|
397 |
|
398 |
-
private function display_order_aftership($order_id)
|
399 |
{
|
400 |
$tracking_provider = get_post_meta($order_id, '_aftership_tracking_provider', true);
|
401 |
$tracking_number = get_post_meta($order_id, '_aftership_tracking_number', true);
|
@@ -434,15 +434,15 @@ if (is_woocommerce_active()) {
|
|
434 |
|
435 |
echo wpautop(sprintf(__('Your order was shipped%s%s. Tracking number is %s.%s%s', 'wc_shipment_tracking'), $date_shipped_str, $provider_name, $tracking_number, $postcode_str, $account_str));
|
436 |
|
437 |
-
if ($this->use_track_button) {
|
438 |
$this->display_track_button($tracking_provider, $tracking_number);
|
439 |
}
|
440 |
|
441 |
}
|
442 |
|
443 |
-
private function display_order_wc_shipment_tracking($order_id)
|
444 |
{
|
445 |
-
if (!$this->use_track_button) {
|
446 |
return;
|
447 |
}
|
448 |
|
@@ -475,7 +475,7 @@ if (is_woocommerce_active()) {
|
|
475 |
* @access public
|
476 |
* @return void
|
477 |
*/
|
478 |
-
function email_display($order
|
479 |
{
|
480 |
$this->display_tracking_info($order->id, true);
|
481 |
}
|
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.8
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
389 |
function display_tracking_info($order_id, $for_email = false)
|
390 |
{
|
391 |
if ($this->plugin == 'aftership') {
|
392 |
+
$this->display_order_aftership($order_id, $for_email);
|
393 |
} else if ($this->plugin == 'wc-shipment-tracking') { //$49
|
394 |
+
$this->display_order_wc_shipment_tracking($order_id, $for_email);
|
395 |
}
|
396 |
}
|
397 |
|
398 |
+
private function display_order_aftership($order_id, $for_email)
|
399 |
{
|
400 |
$tracking_provider = get_post_meta($order_id, '_aftership_tracking_provider', true);
|
401 |
$tracking_number = get_post_meta($order_id, '_aftership_tracking_number', true);
|
434 |
|
435 |
echo wpautop(sprintf(__('Your order was shipped%s%s. Tracking number is %s.%s%s', 'wc_shipment_tracking'), $date_shipped_str, $provider_name, $tracking_number, $postcode_str, $account_str));
|
436 |
|
437 |
+
if (!$for_email && $this->use_track_button) {
|
438 |
$this->display_track_button($tracking_provider, $tracking_number);
|
439 |
}
|
440 |
|
441 |
}
|
442 |
|
443 |
+
private function display_order_wc_shipment_tracking($order_id, $for_email)
|
444 |
{
|
445 |
+
if ($for_email || !$this->use_track_button) {
|
446 |
return;
|
447 |
}
|
448 |
|
475 |
* @access public
|
476 |
* @return void
|
477 |
*/
|
478 |
+
function email_display($order)
|
479 |
{
|
480 |
$this->display_tracking_info($order->id, true);
|
481 |
}
|
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 |
|
@@ -59,7 +59,7 @@ Correos de Mexico • Estafeta • Mexico Senda Express • Mexico Redpack • M
|
|
59 |
== Installation ==
|
60 |
|
61 |
1. [Sign up AfterShip account for FREE](https://www.aftership.com/signup)
|
62 |
-
2. [Download AfterShip plugin](
|
63 |
3. Enter [AfterShip API Key](https://www.aftership.com/apps/api) at plugin settings
|
64 |
4. Select AfterShip Plugin or [WooCommerce Shipment Tracking Plugin](http://www.woothemes.com/products/shipment-tracking/) for entering tracking number
|
65 |
5. Check `Use Track Button` for displaying tracking info at order history page
|
@@ -93,6 +93,9 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
96 |
= 1.1.7 =
|
97 |
* Fix the headers issues
|
98 |
|
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
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
59 |
== Installation ==
|
60 |
|
61 |
1. [Sign up AfterShip account for FREE](https://www.aftership.com/signup)
|
62 |
+
2. [Download AfterShip plugin](http://downloads.wordpress.org/plugin/aftership-woocommerce-tracking.zip), then install and activate at wordpress.
|
63 |
3. Enter [AfterShip API Key](https://www.aftership.com/apps/api) at plugin settings
|
64 |
4. Select AfterShip Plugin or [WooCommerce Shipment Tracking Plugin](http://www.woothemes.com/products/shipment-tracking/) for entering tracking number
|
65 |
5. Check `Use Track Button` for displaying tracking info at order history page
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.1.8 =
|
97 |
+
* Fix the email display issues
|
98 |
+
|
99 |
= 1.1.7 =
|
100 |
* Fix the headers issues
|
101 |
|