WooCommerce ShipStation Gateway - Version 4.1.32

Version Description

Download this release

Release Info

Developer bor0
Plugin Icon 128x128 WooCommerce ShipStation Gateway
Version 4.1.32
Comparing to
See all releases

Code changes from version 4.1.31 to 4.1.32

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** ShipStation for WooCommerce ***
2
 
 
 
 
3
  = 4.1.31 - 2020-01-15 =
4
  * Tweak - WP 5.3 compatibility.
5
  * Add - Filter `woocommerce_shipstation_no_shipping_item` for when an item does not need shipping or is a fee.
1
  *** ShipStation for WooCommerce ***
2
 
3
+ = 4.1.32 - 2020-02-12 =
4
+ * Fix - Export shipping address even when shipping country is not available.
5
+
6
  = 4.1.31 - 2020-01-15 =
7
  * Tweak - WP 5.3 compatibility.
8
  * Add - Filter `woocommerce_shipstation_no_shipping_item` for when an item does not need shipping or is a fee.
includes/api-requests/class-wc-shipstation-api-export.php CHANGED
@@ -173,7 +173,8 @@ class WC_Shipstation_API_Export extends WC_Shipstation_API_Request {
173
  $shipto_xml = $xml->createElement( 'ShipTo' );
174
 
175
  $shipping_country = $wc_gte_30 ? $order->get_shipping_country() : $order->shipping_country;
176
- if ( empty( $shipping_country ) ) {
 
177
  $name = ( $wc_gte_30 ? $order->get_billing_first_name() : $order->billing_first_name ) . ' ' . ( $wc_gte_30 ? $order->get_billing_last_name() : $order->billing_last_name );
178
  $this->xml_append( $shipto_xml, 'Name', $name );
179
  $this->xml_append( $shipto_xml, 'Company', $wc_gte_30 ? $order->get_billing_company() : $order->billing_company );
173
  $shipto_xml = $xml->createElement( 'ShipTo' );
174
 
175
  $shipping_country = $wc_gte_30 ? $order->get_shipping_country() : $order->shipping_country;
176
+ $shipping_address = $wc_gte_30 ? $order->get_shipping_address_1() : $order->shipping_address_1;
177
+ if ( empty( $shipping_country ) && empty( $shipping_address ) ) {
178
  $name = ( $wc_gte_30 ? $order->get_billing_first_name() : $order->billing_first_name ) . ' ' . ( $wc_gte_30 ? $order->get_billing_last_name() : $order->billing_last_name );
179
  $this->xml_append( $shipto_xml, 'Name', $name );
180
  $this->xml_append( $shipto_xml, 'Company', $wc_gte_30 ? $order->get_billing_company() : $order->billing_company );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: shipping, woocommerce, automattic
4
  Requires at least: 4.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.6
7
- Stable tag: 4.1.31
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
  = 2020-01-05 - version 4.1.31 =
50
  * Tweak - WP 5.3 compatibility.
51
 
4
  Requires at least: 4.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.6
7
+ Stable tag: 4.1.32
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 2020-02-12 - version 4.1.32 =
50
+ * Fix - Export shipping address even when shipping country is not available.
51
+
52
  = 2020-01-05 - version 4.1.31 =
53
  * Tweak - WP 5.3 compatibility.
54
 
woocommerce-shipstation.php CHANGED
@@ -2,14 +2,14 @@
2
  /**
3
  * Plugin Name: WooCommerce - ShipStation Integration
4
  * Plugin URI: https://woocommerce.com/products/shipstation-integration/
5
- * Version: 4.1.31
6
  * Description: Adds ShipStation label printing support to WooCommerce. Requires server DomDocument support.
7
  * Author: WooCommerce
8
  * Author URI: https://woocommerce.com/
9
  * Text Domain: woocommerce-shipstation
10
  * Domain Path: /languages
11
  * Tested up to: 5.3
12
- * WC tested up to: 3.8
13
  * WC requires at least: 2.6
14
  */
15
 
@@ -41,7 +41,7 @@ function woocommerce_shipstation_init() {
41
  return;
42
  }
43
 
44
- define( 'WC_SHIPSTATION_VERSION', '4.1.31' );
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.32
6
  * Description: Adds ShipStation label printing support to WooCommerce. Requires server DomDocument support.
7
  * Author: WooCommerce
8
  * Author URI: https://woocommerce.com/
9
  * Text Domain: woocommerce-shipstation
10
  * Domain Path: /languages
11
  * Tested up to: 5.3
12
+ * WC tested up to: 3.9
13
  * WC requires at least: 2.6
14
  */
15
 
41
  return;
42
  }
43
 
44
+ define( 'WC_SHIPSTATION_VERSION', '4.1.32' );
45
  define( 'WC_SHIPSTATION_FILE', __FILE__ );
46
 
47
  if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {