Flexible Shipping for WooCommerce - Version 3.1.10

Version Description

  • 2019-02-27 =
  • Fixed price calculation in customs values
Download this release

Release Info

Developer jablonowski
Plugin Icon 128x128 Flexible Shipping for WooCommerce
Version 3.1.10
Comparing to
See all releases

Code changes from version 3.1.9 to 3.1.10

classes/shipment/saas/class-shipment-saas-send.php CHANGED
@@ -94,7 +94,8 @@ class WPDesk_Flexible_Shipping_Shipment_Saas_Send {
94
  foreach ( $order->get_items() as $order_item ) {
95
  $unit_price = new \WPDesk\SaasPlatformClient\Model\Shipment\ClientMoney();
96
  $unit_price->currency = $order->get_currency();
97
- $unit_price->amount = $order_item->get_total();
 
98
 
99
  $unit_weight = new \WPDesk\SaasPlatformClient\Model\Shipment\ClientWeight();
100
  $unit_weight->setUnit( self::WEIGHT_UNIT );
94
  foreach ( $order->get_items() as $order_item ) {
95
  $unit_price = new \WPDesk\SaasPlatformClient\Model\Shipment\ClientMoney();
96
  $unit_price->currency = $order->get_currency();
97
+ $total_order_item = floatval( $order_item->get_total() ) + floatval( $order_item->get_total_tax() );
98
+ $unit_price->amount = strval( round( $total_order_item / floatval( $order_item->get_quantity() ), wc_get_rounding_precision() ) );
99
 
100
  $unit_weight = new \WPDesk\SaasPlatformClient\Model\Shipment\ClientWeight();
101
  $unit_weight->setUnit( self::WEIGHT_UNIT );
flexible-shipping.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Flexible Shipping
4
  Plugin URI: https://wordpress.org/plugins/flexible-shipping/
5
  Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
6
- Version: 3.1.9
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
@@ -44,7 +44,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
44
 
45
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
46
 
47
- $plugin_version = '3.1.9';
48
  $plugin_release_timestamp = '2019-02-06';
49
 
50
  $plugin_name = 'Flexible Shipping';
3
  Plugin Name: Flexible Shipping
4
  Plugin URI: https://wordpress.org/plugins/flexible-shipping/
5
  Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
6
+ Version: 3.1.10
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
44
 
45
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
46
 
47
+ $plugin_version = '3.1.10';
48
  $plugin_release_timestamp = '2019-02-06';
49
 
50
  $plugin_name = 'Flexible Shipping';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flexibleshipping.com/table-rate/
4
  Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
5
  Requires at least: 4.5
6
  Tested up to: 5.1.0
7
- Stable tag: 3.1.9
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -175,6 +175,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
175
 
176
  == Changelog ==
177
 
 
 
 
178
  = 3.1.9 - 2019-02-21 =
179
  * Fixed fatal error on wp-notice library
180
 
4
  Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
5
  Requires at least: 4.5
6
  Tested up to: 5.1.0
7
+ Stable tag: 3.1.10
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
175
 
176
  == Changelog ==
177
 
178
+ = 3.1.10 - 2019-02-27 =
179
+ * Fixed price calculation in customs values
180
+
181
  = 3.1.9 - 2019-02-21 =
182
  * Fixed fatal error on wp-notice library
183
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitd9ef8ae119c81aed6f91d4c10ca7543f::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit37cbe5f8e1940c704c2b8f9580a2af1f
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire37cbe5f8e1940c704c2b8f9580a2af1f($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire37cbe5f8e1940c704c2b8f9580a2af1f($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitd9ef8ae119c81aed6f91d4c10ca7543f
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitd9ef8ae119c81aed6f91d4c10ca7543f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitd9ef8ae119c81aed6f91d4c10ca7543f', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitd9ef8ae119c81aed6f91d4c10ca7543f::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInitd9ef8ae119c81aed6f91d4c10ca7543f::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequired9ef8ae119c81aed6f91d4c10ca7543f($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequired9ef8ae119c81aed6f91d4c10ca7543f($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f
8
  {
9
  public static $files = array (
10
  '46ae4ad8c3479aabff48f598a0e4b93f' => __DIR__ . '/..' . '/wpdesk/wp-mutex/src/WPDesk/functions.php',
@@ -620,9 +620,9 @@ class ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f
620
  public static function getInitializer(ClassLoader $loader)
621
  {
622
  return \Closure::bind(function () use ($loader) {
623
- $loader->prefixLengthsPsr4 = ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::$prefixLengthsPsr4;
624
- $loader->prefixDirsPsr4 = ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::$prefixDirsPsr4;
625
- $loader->classMap = ComposerStaticInit37cbe5f8e1940c704c2b8f9580a2af1f::$classMap;
626
 
627
  }, null, ClassLoader::class);
628
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitd9ef8ae119c81aed6f91d4c10ca7543f
8
  {
9
  public static $files = array (
10
  '46ae4ad8c3479aabff48f598a0e4b93f' => __DIR__ . '/..' . '/wpdesk/wp-mutex/src/WPDesk/functions.php',
620
  public static function getInitializer(ClassLoader $loader)
621
  {
622
  return \Closure::bind(function () use ($loader) {
623
+ $loader->prefixLengthsPsr4 = ComposerStaticInitd9ef8ae119c81aed6f91d4c10ca7543f::$prefixLengthsPsr4;
624
+ $loader->prefixDirsPsr4 = ComposerStaticInitd9ef8ae119c81aed6f91d4c10ca7543f::$prefixDirsPsr4;
625
+ $loader->classMap = ComposerStaticInitd9ef8ae119c81aed6f91d4c10ca7543f::$classMap;
626
 
627
  }, null, ClassLoader::class);
628
  }