WooCommerce ShipStation Gateway - Version 4.1.46

Version Description

  • 2021-09-10 =
  • Fix - Order is not changed to completed when the order has partial refund and is marked as shipped in ShipStation.
Download this release

Release Info

Developer shellbeezy
Plugin Icon 128x128 WooCommerce ShipStation Gateway
Version 4.1.46
Comparing to
See all releases

Code changes from version 4.1.45 to 4.1.46

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** ShipStation for WooCommerce ***
2
 
 
 
 
3
  = 4.1.45 - 2021-08-24 =
4
  * Fix - Remove all usage of deprecated $HTTP_RAW_POST_DATA.
5
 
1
  *** ShipStation for WooCommerce ***
2
 
3
+ = 4.1.46 - 2021-09-10 =
4
+ * Fix - Order is not changed to completed when the order has partial refund and is marked as shipped in ShipStation.
5
+
6
  = 4.1.45 - 2021-08-24 =
7
  * Fix - Remove all usage of deprecated $HTTP_RAW_POST_DATA.
8
 
includes/api-requests/class-wc-shipstation-api-shipnotify.php CHANGED
@@ -37,7 +37,7 @@ class WC_Shipstation_API_Shipnotify extends WC_Shipstation_API_Request {
37
  }
38
 
39
  if ( is_a( $product, 'WC_Product' ) && $product->needs_shipping() ) {
40
- $needs_shipping += $item['qty'];
41
  }
42
  }
43
 
37
  }
38
 
39
  if ( is_a( $product, 'WC_Product' ) && $product->needs_shipping() ) {
40
+ $needs_shipping += ( $item['qty'] - abs( $order->get_qty_refunded_for_item( $item_id ) ) );
41
  }
42
  }
43
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: shipping, woocommerce, automattic
4
  Requires at least: 4.4
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
- Stable tag: 4.1.45
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -46,6 +46,9 @@ If you get stuck, you can ask for help in the Plugin Forum.
46
 
47
  == Changelog ==
48
 
 
 
 
49
  = 4.1.45 - 2021-08-24 =
50
  * Fix - Remove all usage of deprecated $HTTP_RAW_POST_DATA.
51
 
@@ -73,7 +76,4 @@ If you get stuck, you can ask for help in the Plugin Forum.
73
  * Tweak - WC 4.5 compatibility.
74
  * Fix - Updated shop_thumbnail to woocommerce_gallery_thumbnail for thumbnail export.
75
 
76
- = 4.1.38 - 2020-08-19 =
77
- * Tweak - WordPress 5.5 compatibility.
78
-
79
  [See changelog for all versions](https://github.com/woocommerce/woocommerce-shipstation/raw/master/changelog.txt).
4
  Requires at least: 4.4
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
+ Stable tag: 4.1.46
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 4.1.46 - 2021-09-10 =
50
+ * Fix - Order is not changed to completed when the order has partial refund and is marked as shipped in ShipStation.
51
+
52
  = 4.1.45 - 2021-08-24 =
53
  * Fix - Remove all usage of deprecated $HTTP_RAW_POST_DATA.
54
 
76
  * Tweak - WC 4.5 compatibility.
77
  * Fix - Updated shop_thumbnail to woocommerce_gallery_thumbnail for thumbnail export.
78
 
 
 
 
79
  [See changelog for all versions](https://github.com/woocommerce/woocommerce-shipstation/raw/master/changelog.txt).
woocommerce-shipstation.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WooCommerce - ShipStation Integration
4
  * Plugin URI: https://woocommerce.com/products/shipstation-integration/
5
- * Version: 4.1.45
6
  * Description: Adds ShipStation label printing support to WooCommerce. Requires server DomDocument support.
7
  * Author: WooCommerce
8
  * Author URI: https://woocommerce.com/
@@ -41,7 +41,7 @@ function woocommerce_shipstation_init() {
41
  return;
42
  }
43
 
44
- define( 'WC_SHIPSTATION_VERSION', '4.1.45' ); // WRCS: DEFINED_VERSION.
45
  define( 'WC_SHIPSTATION_FILE', __FILE__ );
46
 
47
  if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {
2
  /**
3
  * Plugin Name: WooCommerce - ShipStation Integration
4
  * Plugin URI: https://woocommerce.com/products/shipstation-integration/
5
+ * Version: 4.1.46
6
  * Description: Adds ShipStation label printing support to WooCommerce. Requires server DomDocument support.
7
  * Author: WooCommerce
8
  * Author URI: https://woocommerce.com/
41
  return;
42
  }
43
 
44
+ define( 'WC_SHIPSTATION_VERSION', '4.1.46' ); // WRCS: DEFINED_VERSION.
45
  define( 'WC_SHIPSTATION_FILE', __FILE__ );
46
 
47
  if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {