AfterShip – WooCommerce Tracking - Version 1.3.9

Version Description

  • Disable get_cart_discount() and get_order_discount() as it's deprecated in WooCommerce 2.3
Download this release

Release Info

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

Code changes from version 1.3.8 to 1.3.9

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.3.8
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.3.9
7
  Author: AfterShip
8
  Author URI: http://aftership.com
9
 
api/class-aftership-api-orders.php CHANGED
@@ -130,8 +130,8 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
130
  'cart_tax' => wc_format_decimal($order->get_cart_tax(), 2),
131
  'shipping_tax' => wc_format_decimal($order->get_shipping_tax(), 2),
132
  'total_discount' => wc_format_decimal($order->get_total_discount(), 2),
133
- 'cart_discount' => wc_format_decimal($order->get_cart_discount(), 2),
134
- 'order_discount' => wc_format_decimal($order->get_order_discount(), 2),
135
  'shipping_methods' => $order->get_shipping_method(),
136
  'payment_details' => array(
137
  'method_id' => $order->payment_method,
130
  'cart_tax' => wc_format_decimal($order->get_cart_tax(), 2),
131
  'shipping_tax' => wc_format_decimal($order->get_shipping_tax(), 2),
132
  'total_discount' => wc_format_decimal($order->get_total_discount(), 2),
133
+ // 'cart_discount' => wc_format_decimal($order->get_cart_discount(), 2),
134
+ // 'order_discount' => wc_format_decimal($order->get_order_discount(), 2),
135
  'shipping_methods' => $order->get_shipping_method(),
136
  'payment_details' => array(
137
  'method_id' => $order->payment_method,
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.1
7
- Stable tag: 1.3.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -95,6 +95,9 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
95
 
96
  == Changelog ==
97
 
 
 
 
98
  = 1.3.8 =
99
  * Force load the script to display the plugin if the script didn't execute normally after 2 seconds while the page loaded.
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.1
7
+ Stable tag: 1.3.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
95
 
96
  == Changelog ==
97
 
98
+ = 1.3.9 =
99
+ * Disable get_cart_discount() and get_order_discount() as it's deprecated in WooCommerce 2.3
100
+
101
  = 1.3.8 =
102
  * Force load the script to display the plugin if the script didn't execute normally after 2 seconds while the page loaded.
103