WooCommerce ShipStation Gateway - Version 4.1.30

Version Description

Download this release

Release Info

Developer harriswong
Plugin Icon 128x128 WooCommerce ShipStation Gateway
Version 4.1.30
Comparing to
See all releases

Code changes from version 4.1.29 to 4.1.30

changelog.txt CHANGED
@@ -1,152 +1,155 @@
1
  *** ShipStation for WooCommerce ***
2
 
3
- = 2019-08-12 - version 4.1.29 =
 
 
 
4
  * Tweak - WC 3.7 compatibility.
5
 
6
- = 2019-04-17 - version 4.1.28 =
7
  * Tweak - WC 3.6 compatibility.
8
 
9
- = 2019-01-07 - version 4.1.27 =
10
  * Fix - Use product name from order instead of product itself.
11
  * Fix - Prevent errors when WooCommerce isn't active.
12
 
13
- = 2018-12-10 - version 4.1.26 =
14
  * Update - Setup notice link to WooCommerce-specific landing page.
15
 
16
- = 2018-11-08 - version 4.1.25 =
17
  * Update - WP 5.0 compatibility.
18
 
19
- = 2018-10-18 - version 4.1.24 =
20
  * Fix - Add missing language .pot file.
21
  * Update - WC 3.5 compatibility.
22
 
23
- = 2018-09-12 - version 4.1.23 =
24
  * Fix - Use correct textdomain on some strings.
25
  * Tweak - Rework settings notice to correctly provide setup instructions.
26
  * Tweak - Coding standards and making the plugin ready for wordpress.org.
27
 
28
- = 2018-05-24 - version 4.1.22 =
29
  * Fix - Order timestamp issue.
30
 
31
- = 2018-05-23 - version 4.1.21 =
32
  * Fix - Privacy policy updates.
33
 
34
- = 2018-05-23 - version 4.1.20 =
35
  * Fix - Paid date not showing actual payment date, but Order Date instead.
36
  * Update - Privacy policy notification.
37
  * Update - Export/erasure hooks added.
38
  * Update - WC 3.4 compatibility.
39
 
40
- = 2017-12-15 - version 4.1.19 =
41
  * Fix - WC 3.3 compatibility.
42
 
43
- = 2017-07-18 - version 4.1.18 =
44
  * Fix - Update the order status to complete if XML from ShipStation is not present in request's body. Also log the request information.
45
  * Fix - Adjusted text domain for two strings so that they are now translateable.
46
 
47
- = 2017-07-06 - version 4.1.17 =
48
  * Fix - Issue when a server couldn't read ShipNotify's XML posted in request's body, nothing is updated in the order.
49
  * Tweak - Added setting, docs, and support links in plugin action links.
50
 
51
- = 2017-06-14 - version 4.1.16 =
52
  * Fix - Issue where legacy code for converting sequential order numbers still used.
53
  * Fix - Make sure to not count non shippable item when get notified from ShipStation.
54
 
55
- = 2017-05-12 - version 4.1.15 =
56
  * Fix - Ensure some orders from previous version of ShipStation are able to be found on notifications.
57
 
58
- = 2017-05-11 - version 4.1.14 =
59
  * Fix - Possible error when order is not found during shipment notification.
60
  * Tweak - Order numbers are now sent via own XML field and will not display in invoice.
61
 
62
- = 2017-05-05 - version 4.1.13 =
63
  * Fix - WC30 date/time not displaying correctly.
64
  * Fix - Tax amount discrenpancy when sent to Shipstation.
65
  * Fix - When using split orders, order does not get updated in WooCommerce.
66
  * Tweak - Sequential Numbers Pro compatibility.
67
  * Add - Exported order note when the order has been exported.
68
 
69
- = 2017-05-02 - version 4.1.12 =
70
  * Fix - Product attributes not passing to Shipstation under certain conditions.
71
 
72
- = 2017-05-01 - version 4.1.11 =
73
  * Fix - Export error due to WC30 incompatibility.
74
 
75
- = 2017-04-10 - version 4.1.10 =
76
  * Fix - Allow additional characters to be used for shipping service name
77
 
78
- = 2017-04-06 - version 4.1.9 =
79
  * Fix - Additional updates for WC 3.0 compatibility
80
 
81
- = 2017-04-03 - version 4.1.8 =
82
  * Fix - PHP 7 compatibility
83
  * Fix - Update for WC 3.0 compatibility
84
 
85
- = 2016-10-03 - version 4.1.7 =
86
  * Fix - Digital products are also sent through.
87
  * Fix - Checkout add on fee not being sent through.
88
 
89
- = 2016-08-15 - version 4.1.6 =
90
  * Tweak - Added filter for ShipNotify order ID
91
  * Tweak - Send payment method ShipStation
92
  * Fix - Issue where fee items not be exported to ShipStation
93
 
94
- = 2016-02-24 - version 4.1.5 =
95
  * Fix - Compatibility issue with WC Order Status Manager
96
 
97
- = 2016-01-25 - version 4.1.4 =
98
  * Fix - Compatibility issue with woocommerce-sequential-order-numbers-pro version 1-9-0
99
 
100
- = 2015-09-23 - version 4.1.3 =
101
  * Fix - Allow copy/paste from API key field in firefox
102
 
103
- = 2015-08-21 - version 4.1.2 =
104
  * Fix - Send pre-discount unit price.
105
 
106
- = 2015-08-06 - version 4.1.1 =
107
  * Fix - Send UnitPrice as single product total-
108
  * Tweak - Date parsing.
109
 
110
- = 2015-06-24 - version 4.1.0 =
111
  * Fix - Sanitize XML response.
112
  * Fix - Prevent API requests being callable when not authenticated.
113
  * Fix - Prevent caching.
114
  * Tweak - Use hash_equals to compare keys.
115
  * Tweak - Send total discount to ShipStation.
116
 
117
- = 2015-05-12 - version 4.0.9 =
118
  * Tweak - woocommerce_shipstation_export_order filter.
119
  * Tweak - Exclude system notes.
120
  * Tweak - Custom field value filters.
121
 
122
- = 2015-04-03 - version 4.0.8 =
123
  * Fix - Don't automatically set to $is_customer_note to true
124
 
125
- = 2015-03-12 - version 4.0.7 =
126
  * Check if $product exists before checking if needs_shipping in export.
127
 
128
- = 2015-01-16 - version 4.0.6 =
129
  * Send negative discount.
130
 
131
- = 2015-01-08 - version 4.0.5 =
132
  * Export query based on post_modified_gmt rather than post_date_gmt
133
 
134
- = 2014-11-19 - version 4.0.4 =
135
  * Fix compatibility with Sequential order numbers.
136
 
137
- = 2014-11-13 - version 4.0.3 =
138
  * Extra logging in ShipNotify.
139
  * Fixed completing orders with multiple lines.
140
 
141
- = 2014-11-13 - version 4.0.2 =
142
  * Order results by date.
143
  * Enforce minimum page 1.
144
  * Removed check to see if orders need shipping to prevent issues with offset/max pages. Exports all orders.
145
 
146
- = 2014-11-12 - version 4.0.1 =
147
  * Added 'pages' node to XML feed so ShipStation knows how many pages of results are present.
148
 
149
- = 2014-11-01 - version 4.0.0 =
150
  * Completely refactored by WooThemes!
151
  * Supports split orders (only completes the order once all items are shipped).
152
  * Exports orders (from statuses you define).
1
  *** ShipStation for WooCommerce ***
2
 
3
+ = 4.1.30 - 2019-11-04 =
4
+ * Tweak - WC 3.8 compatibility.
5
+
6
+ = 4.1.29 - 2019-08-12 =
7
  * Tweak - WC 3.7 compatibility.
8
 
9
+ = 4.1.28 - 2019-04-17 =
10
  * Tweak - WC 3.6 compatibility.
11
 
12
+ = 4.1.27 - 2019-01-07 =
13
  * Fix - Use product name from order instead of product itself.
14
  * Fix - Prevent errors when WooCommerce isn't active.
15
 
16
+ = 4.1.26 - 2018-12-10 =
17
  * Update - Setup notice link to WooCommerce-specific landing page.
18
 
19
+ = 4.1.25 - 2018-11-08 =
20
  * Update - WP 5.0 compatibility.
21
 
22
+ = 4.1.24 - 2018-10-18 =
23
  * Fix - Add missing language .pot file.
24
  * Update - WC 3.5 compatibility.
25
 
26
+ = 4.1.23 - 2018-09-12 =
27
  * Fix - Use correct textdomain on some strings.
28
  * Tweak - Rework settings notice to correctly provide setup instructions.
29
  * Tweak - Coding standards and making the plugin ready for wordpress.org.
30
 
31
+ = 4.1.22 - 2018-05-24 =
32
  * Fix - Order timestamp issue.
33
 
34
+ = 4.1.21 - 2018-05-23 =
35
  * Fix - Privacy policy updates.
36
 
37
+ = 4.1.20 - 2018-05-23 =
38
  * Fix - Paid date not showing actual payment date, but Order Date instead.
39
  * Update - Privacy policy notification.
40
  * Update - Export/erasure hooks added.
41
  * Update - WC 3.4 compatibility.
42
 
43
+ = 4.1.19 - 2017-12-15 =
44
  * Fix - WC 3.3 compatibility.
45
 
46
+ = 4.1.18 - 2017-07-18 =
47
  * Fix - Update the order status to complete if XML from ShipStation is not present in request's body. Also log the request information.
48
  * Fix - Adjusted text domain for two strings so that they are now translateable.
49
 
50
+ = 4.1.17 - 2017-07-06 =
51
  * Fix - Issue when a server couldn't read ShipNotify's XML posted in request's body, nothing is updated in the order.
52
  * Tweak - Added setting, docs, and support links in plugin action links.
53
 
54
+ = 4.1.16 - 2017-06-14 =
55
  * Fix - Issue where legacy code for converting sequential order numbers still used.
56
  * Fix - Make sure to not count non shippable item when get notified from ShipStation.
57
 
58
+ = 4.1.15 - 2017-05-12 =
59
  * Fix - Ensure some orders from previous version of ShipStation are able to be found on notifications.
60
 
61
+ = 4.1.14 - 2017-05-11 =
62
  * Fix - Possible error when order is not found during shipment notification.
63
  * Tweak - Order numbers are now sent via own XML field and will not display in invoice.
64
 
65
+ = 4.1.13 - 2017-05-05 =
66
  * Fix - WC30 date/time not displaying correctly.
67
  * Fix - Tax amount discrenpancy when sent to Shipstation.
68
  * Fix - When using split orders, order does not get updated in WooCommerce.
69
  * Tweak - Sequential Numbers Pro compatibility.
70
  * Add - Exported order note when the order has been exported.
71
 
72
+ = 4.1.12 - 2017-05-02 =
73
  * Fix - Product attributes not passing to Shipstation under certain conditions.
74
 
75
+ = 4.1.11 - 2017-05-01 =
76
  * Fix - Export error due to WC30 incompatibility.
77
 
78
+ = 4.1.10 - 2017-04-10 =
79
  * Fix - Allow additional characters to be used for shipping service name
80
 
81
+ = 4.1.9 - 2017-04-06 =
82
  * Fix - Additional updates for WC 3.0 compatibility
83
 
84
+ = 4.1.8 - 2017-04-03 =
85
  * Fix - PHP 7 compatibility
86
  * Fix - Update for WC 3.0 compatibility
87
 
88
+ = 4.1.7 - 2016-10-03 =
89
  * Fix - Digital products are also sent through.
90
  * Fix - Checkout add on fee not being sent through.
91
 
92
+ = 4.1.6 - 2016-08-15 =
93
  * Tweak - Added filter for ShipNotify order ID
94
  * Tweak - Send payment method ShipStation
95
  * Fix - Issue where fee items not be exported to ShipStation
96
 
97
+ = 4.1.5 - 2016-02-24 =
98
  * Fix - Compatibility issue with WC Order Status Manager
99
 
100
+ = 4.1.4 - 2016-01-25 =
101
  * Fix - Compatibility issue with woocommerce-sequential-order-numbers-pro version 1-9-0
102
 
103
+ = 4.1.3 - 2015-09-23 =
104
  * Fix - Allow copy/paste from API key field in firefox
105
 
106
+ = 4.1.2 - 2015-08-21 =
107
  * Fix - Send pre-discount unit price.
108
 
109
+ = 4.1.1 - 2015-08-06 =
110
  * Fix - Send UnitPrice as single product total-
111
  * Tweak - Date parsing.
112
 
113
+ = 4.1.0 - 2015-06-24 =
114
  * Fix - Sanitize XML response.
115
  * Fix - Prevent API requests being callable when not authenticated.
116
  * Fix - Prevent caching.
117
  * Tweak - Use hash_equals to compare keys.
118
  * Tweak - Send total discount to ShipStation.
119
 
120
+ = 4.0.9 - 2015-05-12 =
121
  * Tweak - woocommerce_shipstation_export_order filter.
122
  * Tweak - Exclude system notes.
123
  * Tweak - Custom field value filters.
124
 
125
+ = 4.0.8 - 2015-04-03 =
126
  * Fix - Don't automatically set to $is_customer_note to true
127
 
128
+ = 4.0.7 - 2015-03-12 =
129
  * Check if $product exists before checking if needs_shipping in export.
130
 
131
+ = 4.0.6 - 2015-01-16 =
132
  * Send negative discount.
133
 
134
+ = 4.0.5 - 2015-01-08 =
135
  * Export query based on post_modified_gmt rather than post_date_gmt
136
 
137
+ = 4.0.4 - 2014-11-19 =
138
  * Fix compatibility with Sequential order numbers.
139
 
140
+ = 4.0.3 - 2014-11-13 =
141
  * Extra logging in ShipNotify.
142
  * Fixed completing orders with multiple lines.
143
 
144
+ = 4.0.2 - 2014-11-13 =
145
  * Order results by date.
146
  * Enforce minimum page 1.
147
  * Removed check to see if orders need shipping to prevent issues with offset/max pages. Exports all orders.
148
 
149
+ = 4.0.1 - 2014-11-12 =
150
  * Added 'pages' node to XML feed so ShipStation knows how many pages of results are present.
151
 
152
+ = 4.0.0 - 2014-11-01 =
153
  * Completely refactored by WooThemes!
154
  * Supports split orders (only completes the order once all items are shipped).
155
  * Exports orders (from statuses you define).
includes/api-requests/class-wc-shipstation-api-shipnotify.php CHANGED
@@ -109,7 +109,7 @@ class WC_Shipstation_API_Shipnotify extends WC_Shipstation_API_Request {
109
  /**
110
  * Retrieves the raw request data (body).
111
  *
112
- * `$HTTP_RAW_POST_DATA` is deprecated in PHP 5.6 and removed in PHP 5.7,
113
  * it's used here for server that has issue with reading `php://input`
114
  * stream.
115
  *
109
  /**
110
  * Retrieves the raw request data (body).
111
  *
112
+ * `$HTTP_RAW_POST_DATA` is deprecated in PHP 5.6 and removed in PHP 7.0,
113
  * it's used here for server that has issue with reading `php://input`
114
  * stream.
115
  *
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: shipping, woocommerce, automattic
4
  Requires at least: 4.4
5
  Tested up to: 5.1
6
  Requires PHP: 5.6
7
- Stable tag: 4.1.29
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
  = 2019-08-12 - version 4.1.29 =
50
  * Tweak - WC 3.7 compatibility.
51
 
4
  Requires at least: 4.4
5
  Tested up to: 5.1
6
  Requires PHP: 5.6
7
+ Stable tag: 4.1.30
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 2019-11-04 - version 4.1.30 =
50
+ * Tweak - WC 3.8 compatibility.
51
+
52
  = 2019-08-12 - version 4.1.29 =
53
  * Tweak - WC 3.7 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.29
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.0
12
- * WC tested up to: 3.7
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.29' );
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.30
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
  return;
42
  }
43
 
44
+ define( 'WC_SHIPSTATION_VERSION', '4.1.30' );
45
  define( 'WC_SHIPSTATION_FILE', __FILE__ );
46
 
47
  if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {