AfterShip – WooCommerce Tracking - Version 1.2.8

Version Description

  • Fix Dependencies name
  • Hide the provider name and required fields wrapper
Download this release

Release Info

Developer aftership
Plugin Icon 128x128 AfterShip – WooCommerce Tracking
Version 1.2.8
Comparing to
See all releases

Code changes from version 1.2.7 to 1.2.8

woo-includes/woo-functions.php → aftership-functions.php RENAMED
@@ -2,14 +2,14 @@
2
  /**
3
  * Functions used by plugins
4
  */
5
- if ( ! class_exists( 'WC_Dependencies' ) )
6
- require_once 'class-wc-dependencies.php';
7
 
8
  /**
9
  * WC Detection
10
  */
11
  if ( ! function_exists( 'is_woocommerce_active' ) ) {
12
  function is_woocommerce_active() {
13
- return WC_Dependencies::woocommerce_active_check();
14
  }
15
  }
2
  /**
3
  * Functions used by plugins
4
  */
5
+ if ( ! class_exists( 'AfterShip_Dependencies' ) )
6
+ require_once 'class-aftership-dependencies.php';
7
 
8
  /**
9
  * WC Detection
10
  */
11
  if ( ! function_exists( 'is_woocommerce_active' ) ) {
12
  function is_woocommerce_active() {
13
+ return AfterShip_Dependencies::woocommerce_active_check();
14
  }
15
  }
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
7
  Author: AfterShip
8
  Author URI: http://aftership.com
9
 
@@ -19,7 +19,7 @@ defined('ABSPATH') or die("No script kiddies please!");
19
  * Required functions
20
  */
21
  if (!function_exists('is_woocommerce_active'))
22
- require_once('woo-includes/woo-functions.php');
23
 
24
 
25
  /**
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.8
7
  Author: AfterShip
8
  Author URI: http://aftership.com
9
 
19
  * Required functions
20
  */
21
  if (!function_exists('is_woocommerce_active'))
22
+ require_once('aftership-functions.php');
23
 
24
 
25
  /**
assets/js/admin.js CHANGED
@@ -84,7 +84,7 @@ jQuery(function() {
84
  jQuery('#aftership_tracking_provider_chosen').css({width: '100%'});
85
 
86
  providers = {};
87
- jQuery.each(couriers, function(index,courier){
88
  providers[courier.slug] = courier;
89
  });
90
  set_aftership_tracking_provider();
@@ -96,4 +96,12 @@ jQuery(function() {
96
  var couriers_selected_arr = (couriers_selected) ? couriers_selected.split(',') : [];
97
  fill_meta_box(couriers_selected_arr);
98
  }
 
 
 
 
 
 
 
 
99
  });
84
  jQuery('#aftership_tracking_provider_chosen').css({width: '100%'});
85
 
86
  providers = {};
87
+ jQuery.each(couriers, function(index, courier) {
88
  providers[courier.slug] = courier;
89
  });
90
  set_aftership_tracking_provider();
96
  var couriers_selected_arr = (couriers_selected) ? couriers_selected.split(',') : [];
97
  fill_meta_box(couriers_selected_arr);
98
  }
99
+
100
+ if (jQuery('#aftership_tracking_provider_name')) {
101
+ jQuery('#aftership_tracking_provider_name').parent().hide();
102
+ }
103
+
104
+ if (jQuery('#aftership_tracking_required_fields')) {
105
+ jQuery('#aftership_tracking_required_fields').parent().hide();
106
+ }
107
  });
woo-includes/class-wc-dependencies.php → class-aftership-dependencies.php RENAMED
@@ -1,10 +1,5 @@
1
  <?php
2
- /**
3
- * WC Dependency Checker
4
- *
5
- * Checks if WooCommerce is enabled
6
- */
7
- class WC_Dependencies {
8
 
9
  private static $active_plugins;
10
 
1
  <?php
2
+ class AfterShip_Dependencies {
 
 
 
 
 
3
 
4
  private static $active_plugins;
5
 
class-aftership-settings.php CHANGED
@@ -15,8 +15,8 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
15
  /**
16
  * Required functions
17
  */
18
- if ( ! class_exists( 'WC_Dependencies' ) )
19
- require_once 'woo-includes/class-wc-dependencies.php';
20
 
21
  class AfterShip_Settings
22
  {
@@ -200,7 +200,7 @@ class AfterShip_Settings
200
  $options = "";
201
  foreach ($this->plugins as $plugin) {
202
  //print_r($plugin);
203
- if (WC_Dependencies::plugin_active_check($plugin['path'])) {
204
  $option = '<option value="' . $plugin['value'] . '"';
205
 
206
  if (isset($this->options['plugin']) && esc_attr($this->options['plugin']) == $plugin['value']) {
15
  /**
16
  * Required functions
17
  */
18
+ if ( ! class_exists( 'AfterShip_Dependencies' ) )
19
+ require_once 'class-aftership-dependencies.php';
20
 
21
  class AfterShip_Settings
22
  {
200
  $options = "";
201
  foreach ($this->plugins as $plugin) {
202
  //print_r($plugin);
203
+ if (AfterShip_Dependencies::plugin_active_check($plugin['path'])) {
204
  $option = '<option value="' . $plugin['value'] . '"';
205
 
206
  if (isset($this->options['plugin']) && esc_attr($this->options['plugin']) == $plugin['value']) {
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.0
7
- Stable tag: 1.2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -95,6 +95,10 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
95
 
96
  == Changelog ==
97
 
 
 
 
 
98
  = 1.2.7 =
99
  * Fix svn
100
 
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.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
95
 
96
  == Changelog ==
97
 
98
+ = 1.2.8 =
99
+ * Fix Dependencies name
100
+ * Hide the provider name and required fields wrapper
101
+
102
  = 1.2.7 =
103
  * Fix svn
104