Version Description
- Fix undefined variables issue
- Add Icon
- Support Wordpress 4.0
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- aftership.php +27 -14
- readme.txt +9 -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.2.
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
@@ -58,21 +58,28 @@ if (is_woocommerce_active()) {
|
|
58 |
|
59 |
$options = get_option('aftership_option_name');
|
60 |
if ($options) {
|
61 |
-
|
62 |
-
if ($plugin
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
-
// View Order Page
|
74 |
-
$this->plugin = $plugin;
|
75 |
-
$this->use_track_button = $options['use_track_button'];
|
76 |
add_action('woocommerce_view_order', array(&$this, 'display_tracking_info'));
|
77 |
add_action('woocommerce_email_before_order_table', array(&$this, 'email_display'));
|
78 |
}
|
@@ -227,6 +234,7 @@ if (is_woocommerce_active()) {
|
|
227 |
|
228 |
woocommerce_wp_text_input(array(
|
229 |
'id' => 'aftership_tracking_provider_name',
|
|
|
230 |
'placeholder' => '',
|
231 |
'description' => '',
|
232 |
'class' => 'hidden',
|
@@ -235,6 +243,7 @@ if (is_woocommerce_active()) {
|
|
235 |
|
236 |
woocommerce_wp_text_input(array(
|
237 |
'id' => 'aftership_tracking_required_fields',
|
|
|
238 |
'placeholder' => '',
|
239 |
'description' => '',
|
240 |
'class' => 'hidden',
|
@@ -414,6 +423,10 @@ if (is_woocommerce_active()) {
|
|
414 |
$provider_name = $tracking_provider_name;
|
415 |
$provider_required_fields = explode(",", $tracking_required_fields);
|
416 |
|
|
|
|
|
|
|
|
|
417 |
foreach ($provider_required_fields as $field) {
|
418 |
if ($field == 'tracking_ship_date') {
|
419 |
if ($date_shipped) {
|
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.2.3
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
58 |
|
59 |
$options = get_option('aftership_option_name');
|
60 |
if ($options) {
|
61 |
+
|
62 |
+
if (isset($options['plugin'])) {
|
63 |
+
$plugin = $options['plugin'];
|
64 |
+
if ($plugin == 'aftership') {
|
65 |
+
add_action('admin_print_scripts', array(&$this, 'library_scripts'));
|
66 |
+
add_action('admin_print_styles', array(&$this, 'admin_styles'));
|
67 |
+
add_action('add_meta_boxes', array(&$this, 'add_meta_box'));
|
68 |
+
add_action('woocommerce_process_shop_order_meta', array(&$this, 'save_meta_box'), 0, 2);
|
69 |
+
add_action('plugins_loaded', array($this, 'load_plugin_textdomain'));
|
70 |
+
|
71 |
+
add_action('admin_footer', array(&$this, 'aftership_get_couriers'));
|
72 |
+
add_action('wp_ajax_aftership_get_couriers_callback', array(&$this, 'aftership_get_couriers_callback'));
|
73 |
+
}
|
74 |
+
|
75 |
+
// View Order Page
|
76 |
+
$this->plugin = $plugin;
|
77 |
+
}
|
78 |
+
|
79 |
+
if (isset($options['use_track_button'])) {
|
80 |
+
$this->use_track_button = $options['use_track_button'];
|
81 |
}
|
82 |
|
|
|
|
|
|
|
83 |
add_action('woocommerce_view_order', array(&$this, 'display_tracking_info'));
|
84 |
add_action('woocommerce_email_before_order_table', array(&$this, 'email_display'));
|
85 |
}
|
234 |
|
235 |
woocommerce_wp_text_input(array(
|
236 |
'id' => 'aftership_tracking_provider_name',
|
237 |
+
'label' => __('', 'wc_aftership'),
|
238 |
'placeholder' => '',
|
239 |
'description' => '',
|
240 |
'class' => 'hidden',
|
243 |
|
244 |
woocommerce_wp_text_input(array(
|
245 |
'id' => 'aftership_tracking_required_fields',
|
246 |
+
'label' => __('', 'wc_aftership'),
|
247 |
'placeholder' => '',
|
248 |
'description' => '',
|
249 |
'class' => 'hidden',
|
423 |
$provider_name = $tracking_provider_name;
|
424 |
$provider_required_fields = explode(",", $tracking_required_fields);
|
425 |
|
426 |
+
$date_shipped_str = '';
|
427 |
+
$postcode_str = '';
|
428 |
+
$account_str = '';
|
429 |
+
|
430 |
foreach ($provider_required_fields as $field) {
|
431 |
if ($field == 'tracking_ship_date') {
|
432 |
if ($date_shipped) {
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: aftership
|
|
3 |
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:
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -66,6 +66,8 @@ Correos de Mexico • Estafeta • Mexico Senda Express • Mexico Redpack • M
|
|
66 |
6. Generate [AfterShip's WordPress API Key](http://aftership.uservoice.com/knowledgebase/articles/405909) under `Users` > `Your Profile`
|
67 |
7. Input `Store URL` and `AfterShip's WordPress API Key` at [AfterShip WooCommerce page](https://www.aftership.com/apps/woocommerce)
|
68 |
|
|
|
|
|
69 |
###Further Reading
|
70 |
|
71 |
* [How to insert AfterShip Track Button to WordPress or WooCommerce](https://aftership.uservoice.com/knowledgebase/articles/268665)
|
@@ -93,6 +95,11 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
|
|
96 |
= 1.2.2 =
|
97 |
* Fix the header issues of different server
|
98 |
|
3 |
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.0
|
7 |
+
Stable tag: 1.2.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
66 |
6. Generate [AfterShip's WordPress API Key](http://aftership.uservoice.com/knowledgebase/articles/405909) under `Users` > `Your Profile`
|
67 |
7. Input `Store URL` and `AfterShip's WordPress API Key` at [AfterShip WooCommerce page](https://www.aftership.com/apps/woocommerce)
|
68 |
|
69 |
+
*** This plugin requires at least PHP 5.3.2
|
70 |
+
|
71 |
###Further Reading
|
72 |
|
73 |
* [How to insert AfterShip Track Button to WordPress or WooCommerce](https://aftership.uservoice.com/knowledgebase/articles/268665)
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
= 1.2.3 =
|
99 |
+
* Fix undefined variables issue
|
100 |
+
* Add Icon
|
101 |
+
* Support Wordpress 4.0
|
102 |
+
|
103 |
= 1.2.2 =
|
104 |
* Fix the header issues of different server
|
105 |
|