Version Description
- 2021-04-20 =
- Fix - Use order currency code instead of store currency.
Download this release
Release Info
| Developer | brezo.cordero |
| Plugin | |
| Version | 4.1.42 |
| Comparing to | |
| See all releases | |
Code changes from version 4.1.41 to 4.1.42
changelog.txt
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
*** ShipStation for WooCommerce ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
= 4.1.41 - 2021-03-02 =
|
| 4 |
* Add - Add currency code and weight units to orders XML.
|
| 5 |
|
| 1 |
*** ShipStation for WooCommerce ***
|
| 2 |
|
| 3 |
+
= 4.1.42 - 2021-04-20 =
|
| 4 |
+
* Fix - Use order currency code instead of store currency.
|
| 5 |
+
|
| 6 |
= 4.1.41 - 2021-03-02 =
|
| 7 |
* Add - Add currency code and weight units to orders XML.
|
| 8 |
|
includes/api-requests/class-wc-shipstation-api-export.php
CHANGED
|
@@ -111,7 +111,7 @@ class WC_Shipstation_API_Export extends WC_Shipstation_API_Request {
|
|
| 111 |
continue;
|
| 112 |
}
|
| 113 |
|
| 114 |
-
$order = wc_get_order( $order_id );
|
| 115 |
$order_xml = $xml->createElement( 'Order' );
|
| 116 |
$wc_gte_30 = version_compare( WC_VERSION, '3.0', '>=' );// gte greater than or equal to 3.0
|
| 117 |
$formatted_order_number = ltrim( $order->get_order_number(), '#' );
|
|
@@ -135,7 +135,7 @@ class WC_Shipstation_API_Export extends WC_Shipstation_API_Request {
|
|
| 135 |
$this->xml_append( $order_xml, 'LastModified', gmdate( 'm/d/Y H:i', $last_modified ), false );
|
| 136 |
$this->xml_append( $order_xml, 'ShippingMethod', implode( ' | ', $this->get_shipping_methods( $order ) ) );
|
| 137 |
|
| 138 |
-
$this->xml_append( $order_xml, 'CurrencyCode',
|
| 139 |
$this->xml_append( $order_xml, 'OrderTotal', $order->get_total(), false );
|
| 140 |
$this->xml_append( $order_xml, 'TaxAmount', wc_round_tax_total( $order->get_total_tax() ), false );
|
| 141 |
|
| 111 |
continue;
|
| 112 |
}
|
| 113 |
|
| 114 |
+
$order = apply_filters( 'woocommerce_shipstation_export_get_order', wc_get_order( $order_id ) );
|
| 115 |
$order_xml = $xml->createElement( 'Order' );
|
| 116 |
$wc_gte_30 = version_compare( WC_VERSION, '3.0', '>=' );// gte greater than or equal to 3.0
|
| 117 |
$formatted_order_number = ltrim( $order->get_order_number(), '#' );
|
| 135 |
$this->xml_append( $order_xml, 'LastModified', gmdate( 'm/d/Y H:i', $last_modified ), false );
|
| 136 |
$this->xml_append( $order_xml, 'ShippingMethod', implode( ' | ', $this->get_shipping_methods( $order ) ) );
|
| 137 |
|
| 138 |
+
$this->xml_append( $order_xml, 'CurrencyCode', $order->get_currency(), false );
|
| 139 |
$this->xml_append( $order_xml, 'OrderTotal', $order->get_total(), false );
|
| 140 |
$this->xml_append( $order_xml, 'TaxAmount', wc_round_tax_total( $order->get_total_tax() ), false );
|
| 141 |
|
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.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-shipstation\n"
|
| 8 |
-
"POT-Creation-Date: 2021-
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 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.42\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-shipstation\n"
|
| 8 |
+
"POT-Creation-Date: 2021-04-20 20:29:19+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ 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.
|
| 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.41 - 2021-03-02 =
|
| 50 |
* Add - Add currency code and weight units to orders XML.
|
| 51 |
|
| 4 |
Requires at least: 4.4
|
| 5 |
Tested up to: 5.5
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 4.1.42
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
| 49 |
+
= 4.1.42 - 2021-04-20 =
|
| 50 |
+
* Fix - Use order currency code instead of store currency.
|
| 51 |
+
|
| 52 |
= 4.1.41 - 2021-03-02 =
|
| 53 |
* Add - Add currency code and weight units to orders XML.
|
| 54 |
|
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.
|
| 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 |
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.42
|
| 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.42' ); // WRCS: DEFINED_VERSION.
|
| 45 |
define( 'WC_SHIPSTATION_FILE', __FILE__ );
|
| 46 |
|
| 47 |
if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {
|
