WooCommerce ShipStation Gateway - Version 4.1.39

Version Description

  • 2020-10-06 =
  • Add - Add woocommerce_shipstation_export_order_xml filter.
  • Tweak - Update Readme.
  • Tweak - WC 4.5 compatibility.
  • Fix - Updated shop_thumbnail to woocommerce_gallery_thumbnail for thumbnail export.
Download this release

Release Info

Developer brezo.cordero
Plugin Icon 128x128 WooCommerce ShipStation Gateway
Version 4.1.39
Comparing to
See all releases

Code changes from version 4.1.38 to 4.1.39

changelog.txt CHANGED
@@ -1,5 +1,11 @@
1
  *** ShipStation for WooCommerce ***
2
 
 
 
 
 
 
 
3
  = 4.1.38 - 2020-08-19 =
4
  * Tweak - WordPress 5.5 compatibility.
5
 
1
  *** ShipStation for WooCommerce ***
2
 
3
+ = 4.1.39 - 2020-10-06 =
4
+ * Add - Add woocommerce_shipstation_export_order_xml filter.
5
+ * Tweak - Update Readme.
6
+ * Tweak - WC 4.5 compatibility.
7
+ * Fix - Updated shop_thumbnail to woocommerce_gallery_thumbnail for thumbnail export.
8
+
9
  = 4.1.38 - 2020-08-19 =
10
  * Tweak - WordPress 5.5 compatibility.
11
 
includes/api-requests/class-wc-shipstation-api-export.php CHANGED
@@ -234,7 +234,7 @@ class WC_Shipstation_API_Export extends WC_Shipstation_API_Request {
234
  $this->xml_append( $item_xml, 'Name', $product->get_title() );
235
  // image data
236
  $image_id = $product->get_image_id();
237
- $image_url = $image_id ? current( wp_get_attachment_image_src( $image_id, 'shop_thumbnail' ) ) : '';
238
  $this->xml_append( $item_xml, 'ImageUrl', $image_url );
239
 
240
  $this->xml_append( $item_xml, 'Weight', wc_get_weight( $product->get_weight(), 'oz' ), false );
@@ -293,7 +293,7 @@ class WC_Shipstation_API_Export extends WC_Shipstation_API_Request {
293
 
294
  // Append items XML
295
  $order_xml->appendChild( $items_xml );
296
- $orders_xml->appendChild( $order_xml );
297
 
298
  $exported ++;
299
 
234
  $this->xml_append( $item_xml, 'Name', $product->get_title() );
235
  // image data
236
  $image_id = $product->get_image_id();
237
+ $image_url = $image_id ? current( wp_get_attachment_image_src( $image_id, 'woocommerce_gallery_thumbnail' ) ) : '';
238
  $this->xml_append( $item_xml, 'ImageUrl', $image_url );
239
 
240
  $this->xml_append( $item_xml, 'Weight', wc_get_weight( $product->get_weight(), 'oz' ), false );
293
 
294
  // Append items XML
295
  $order_xml->appendChild( $items_xml );
296
+ $orders_xml->appendChild( apply_filters( 'woocommerce_shipstation_export_order_xml', $order_xml ) );
297
 
298
  $exported ++;
299
 
includes/class-wc-shipstation-integration.php CHANGED
@@ -44,6 +44,7 @@ class WC_ShipStation_Integration extends WC_Integration {
44
  add_action( 'woocommerce_update_options_integration_shipstation', array( $this, 'process_admin_options' ) );
45
  add_filter( 'woocommerce_subscriptions_renewal_order_meta_query', array( $this, 'subscriptions_renewal_order_meta_query' ), 10, 4 );
46
  add_action( 'wp_loaded', array( $this, 'hide_notices' ) );
 
47
 
48
  $hide_notice = get_option( 'wc_shipstation_hide_activate_notice', '' );
49
  $settings_notice_dismissed = get_user_meta( get_current_user_id(), 'dismissed_shipstation-setup_notice' );
44
  add_action( 'woocommerce_update_options_integration_shipstation', array( $this, 'process_admin_options' ) );
45
  add_filter( 'woocommerce_subscriptions_renewal_order_meta_query', array( $this, 'subscriptions_renewal_order_meta_query' ), 10, 4 );
46
  add_action( 'wp_loaded', array( $this, 'hide_notices' ) );
47
+ add_filter( 'woocommerce_translations_updates_for_woocommerce_shipstation_integration', '__return_true' );
48
 
49
  $hide_notice = get_option( 'wc_shipstation_hide_activate_notice', '' );
50
  $settings_notice_dismissed = get_user_meta( get_current_user_id(), 'dismissed_shipstation-setup_notice' );
languages/woocommerce-shipstation.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the WooCommerce - ShipStation Integration package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce - ShipStation Integration 4.1.38\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-shipstation\n"
8
- "POT-Creation-Date: 2020-08-19 17:43:02+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -122,19 +122,19 @@ msgid ""
122
  "& packing slips with ease."
123
  msgstr ""
124
 
125
- #: includes/class-wc-shipstation-integration.php:113
126
  msgid "Action failed. Please refresh the page and retry."
127
  msgstr ""
128
 
129
- #: includes/class-wc-shipstation-integration.php:117
130
  msgid "Cheatin’ huh?"
131
  msgstr ""
132
 
133
- #: includes/class-wc-shipstation-integration.php:132
134
  msgid "ShipStation logo"
135
  msgstr ""
136
 
137
- #: includes/class-wc-shipstation-integration.php:142
138
  #. translators: %s: ShipStation URL
139
  msgid ""
140
  "To begin printing shipping labels with ShipStation head over to <a "
@@ -142,18 +142,18 @@ msgid ""
142
  "target=\"_blank\">ShipStation.com</a> and log in or create a new account."
143
  msgstr ""
144
 
145
- #: includes/class-wc-shipstation-integration.php:160
146
  #. translators: %s: ShipStation Auth Key
147
  msgid ""
148
  "After logging in, add a selling channel for WooCommerce and use your Auth "
149
  "Key (<code>%s</code>) to connect your store."
150
  msgstr ""
151
 
152
- #: includes/class-wc-shipstation-integration.php:167
153
  msgid "Once connected you're good to go!"
154
  msgstr ""
155
 
156
- #: includes/class-wc-shipstation-integration.php:174
157
  #. translators: %1$s: ShipStation plugin settings URL, %2$s: ShipStation
158
  #. documentation URL
159
  msgid ""
2
  # This file is distributed under the same license as the WooCommerce - ShipStation Integration package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce - ShipStation Integration 4.1.39\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-shipstation\n"
8
+ "POT-Creation-Date: 2020-10-06 20:41:46+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
122
  "&amp; packing slips with ease."
123
  msgstr ""
124
 
125
+ #: includes/class-wc-shipstation-integration.php:114
126
  msgid "Action failed. Please refresh the page and retry."
127
  msgstr ""
128
 
129
+ #: includes/class-wc-shipstation-integration.php:118
130
  msgid "Cheatin&#8217; huh?"
131
  msgstr ""
132
 
133
+ #: includes/class-wc-shipstation-integration.php:133
134
  msgid "ShipStation logo"
135
  msgstr ""
136
 
137
+ #: includes/class-wc-shipstation-integration.php:143
138
  #. translators: %s: ShipStation URL
139
  msgid ""
140
  "To begin printing shipping labels with ShipStation head over to <a "
142
  "target=\"_blank\">ShipStation.com</a> and log in or create a new account."
143
  msgstr ""
144
 
145
+ #: includes/class-wc-shipstation-integration.php:161
146
  #. translators: %s: ShipStation Auth Key
147
  msgid ""
148
  "After logging in, add a selling channel for WooCommerce and use your Auth "
149
  "Key (<code>%s</code>) to connect your store."
150
  msgstr ""
151
 
152
+ #: includes/class-wc-shipstation-integration.php:168
153
  msgid "Once connected you're good to go!"
154
  msgstr ""
155
 
156
+ #: includes/class-wc-shipstation-integration.php:175
157
  #. translators: %1$s: ShipStation plugin settings URL, %2$s: ShipStation
158
  #. documentation URL
159
  msgid ""
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === WooCommerce ShipStation Gateway ===
2
- Contributors: automattic, royho, akeda, mattyza, bor0, woothemes, dwainm, laurendavissmith001
3
  Tags: shipping, woocommerce, automattic
4
  Requires at least: 4.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.6
7
- Stable tag: 4.1.38
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -46,6 +46,12 @@ If you get stuck, you can ask for help in the Plugin Forum.
46
 
47
  == Changelog ==
48
 
 
 
 
 
 
 
49
  = 4.1.38 - 2020-08-19 =
50
  * Tweak - WordPress 5.5 compatibility.
51
 
1
+ === WooCommerce ShipStation Integration ===
2
+ Contributors: woocommerce, automattic, royho, akeda, mattyza, bor0, woothemes, dwainm, laurendavissmith001
3
  Tags: shipping, woocommerce, automattic
4
  Requires at least: 4.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.6
7
+ Stable tag: 4.1.39
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 4.1.39 - 2020-10-06 =
50
+ * Add - Add woocommerce_shipstation_export_order_xml filter.
51
+ * Tweak - Update Readme.
52
+ * Tweak - WC 4.5 compatibility.
53
+ * Fix - Updated shop_thumbnail to woocommerce_gallery_thumbnail for thumbnail export.
54
+
55
  = 4.1.38 - 2020-08-19 =
56
  * Tweak - WordPress 5.5 compatibility.
57
 
woocommerce-shipstation.php CHANGED
@@ -2,15 +2,15 @@
2
  /**
3
  * Plugin Name: WooCommerce - ShipStation Integration
4
  * Plugin URI: https://woocommerce.com/products/shipstation-integration/
5
- * Version: 4.1.38
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.5
12
- * WC tested up to: 4.2
13
- * WC requires at least: 2.6
14
  */
15
 
16
  if ( ! defined( 'ABSPATH' ) ) {
@@ -41,7 +41,7 @@ function woocommerce_shipstation_init() {
41
  return;
42
  }
43
 
44
- define( 'WC_SHIPSTATION_VERSION', '4.1.38' ); // 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.39
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.5
12
+ * WC tested up to: 4.5
13
+ * WC requires at least: 3.4
14
  */
15
 
16
  if ( ! defined( 'ABSPATH' ) ) {
41
  return;
42
  }
43
 
44
+ define( 'WC_SHIPSTATION_VERSION', '4.1.39' ); // WRCS: DEFINED_VERSION.
45
  define( 'WC_SHIPSTATION_FILE', __FILE__ );
46
 
47
  if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {