Flexible Shipping for WooCommerce - Version 4.0.3

Version Description

  • 2020-12-21 =
  • Removed rounding on cost per order value
Download this release

Release Info

Developer wpdesk
Plugin Icon 128x128 Flexible Shipping for WooCommerce
Version 4.0.3
Comparing to
See all releases

Code changes from version 4.0.2 to 4.0.3

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: 4.0.2
7
  * Author: WP Desk
8
  * Author URI: https://flexibleshipping.com/?utm_source=plugin-list&utm_medium=link&utm_campaign=flexible-shipping-plugin-list
9
  * Text Domain: flexible-shipping
@@ -38,7 +38,7 @@ if ( ! defined( 'ABSPATH' ) ) {
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
- $plugin_version = '4.0.2';
42
 
43
  $plugin_name = 'Flexible Shipping';
44
  $product_id = '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: 4.0.3
7
  * Author: WP Desk
8
  * Author URI: https://flexibleshipping.com/?utm_source=plugin-list&utm_medium=link&utm_campaign=flexible-shipping-plugin-list
9
  * Text Domain: flexible-shipping
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
+ $plugin_version = '4.0.3';
42
 
43
  $plugin_name = 'Flexible Shipping';
44
  $product_id = 'Flexible Shipping';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flexibleshipping.com/table-rate/
4
  Tags: table rate, table rate shipping, conditional shipping, shipping method, 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, shipping, free shipping, advanced shipping
5
  Requires at least: 4.5
6
  Tested up to: 5.6
7
- Stable tag: 4.0.2
8
  Requires PHP: 7.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -163,6 +163,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
163
 
164
  == Changelog ==
165
 
 
 
 
166
  = 4.0.2 - 2020-12-17 =
167
  * Fixed conflict with "WC - APG Free Shipping" plugin
168
 
4
  Tags: table rate, table rate shipping, conditional shipping, shipping method, 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, shipping, free shipping, advanced shipping
5
  Requires at least: 4.5
6
  Tested up to: 5.6
7
+ Stable tag: 4.0.3
8
  Requires PHP: 7.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
163
 
164
  == Changelog ==
165
 
166
+ = 4.0.3 - 2020-12-21 =
167
+ * Removed rounding on cost per order value
168
+
169
  = 4.0.2 - 2020-12-17 =
170
  * Fixed conflict with "WC - APG Free Shipping" plugin
171
 
src/WPDesk/FS/TableRate/Rule/Rule.php CHANGED
@@ -146,12 +146,12 @@ class Rule {
146
  $cost = 0.0;
147
  foreach ( $this->cost_fields as $cost_field ) {
148
  if ( isset( $this->rule_settings[ $cost_field->get_name() ] ) ) {
149
- $field_cost = round( (float) $this->rule_settings[ $cost_field->get_name() ], $this->cost_rounding_precision );
150
  $logger->debug( sprintf( ' %1$s: %2$s', $cost_field->get_label(), $field_cost ) );
151
  $cost += $field_cost;
152
  }
153
  }
154
- $cost += round( $this->get_additional_costs( $shipping_contents, $logger ), $this->cost_rounding_precision );
155
 
156
  return $cost;
157
  }
146
  $cost = 0.0;
147
  foreach ( $this->cost_fields as $cost_field ) {
148
  if ( isset( $this->rule_settings[ $cost_field->get_name() ] ) ) {
149
+ $field_cost = (float) $this->rule_settings[ $cost_field->get_name() ];
150
  $logger->debug( sprintf( ' %1$s: %2$s', $cost_field->get_label(), $field_cost ) );
151
  $cost += $field_cost;
152
  }
153
  }
154
+ $cost += $this->get_additional_costs( $shipping_contents, $logger );
155
 
156
  return $cost;
157
  }
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderIniteb78cc20a8df65696b6f0a1ba1cad44e::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInite25dbe530ac4657986e0b8badf63c718::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderIniteb78cc20a8df65696b6f0a1ba1cad44e
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderIniteb78cc20a8df65696b6f0a1ba1cad44e
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderIniteb78cc20a8df65696b6f0a1ba1cad44e', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderIniteb78cc20a8df65696b6f0a1ba1cad44e', '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\ComposerStaticIniteb78cc20a8df65696b6f0a1ba1cad44e::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderIniteb78cc20a8df65696b6f0a1ba1cad44e
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticIniteb78cc20a8df65696b6f0a1ba1cad44e::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequireeb78cc20a8df65696b6f0a1ba1cad44e($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequireeb78cc20a8df65696b6f0a1ba1cad44e($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 ComposerAutoloaderInite25dbe530ac4657986e0b8badf63c718
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInite25dbe530ac4657986e0b8badf63c718', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInite25dbe530ac4657986e0b8badf63c718', '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\ComposerStaticInite25dbe530ac4657986e0b8badf63c718::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\ComposerStaticInite25dbe530ac4657986e0b8badf63c718::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequiree25dbe530ac4657986e0b8badf63c718($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequiree25dbe530ac4657986e0b8badf63c718($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 ComposerStaticIniteb78cc20a8df65696b6f0a1ba1cad44e
8
  {
9
  public static $files = array (
10
  '0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
@@ -596,10 +596,10 @@ class ComposerStaticIniteb78cc20a8df65696b6f0a1ba1cad44e
596
  public static function getInitializer(ClassLoader $loader)
597
  {
598
  return \Closure::bind(function () use ($loader) {
599
- $loader->prefixLengthsPsr4 = ComposerStaticIniteb78cc20a8df65696b6f0a1ba1cad44e::$prefixLengthsPsr4;
600
- $loader->prefixDirsPsr4 = ComposerStaticIniteb78cc20a8df65696b6f0a1ba1cad44e::$prefixDirsPsr4;
601
- $loader->fallbackDirsPsr4 = ComposerStaticIniteb78cc20a8df65696b6f0a1ba1cad44e::$fallbackDirsPsr4;
602
- $loader->classMap = ComposerStaticIniteb78cc20a8df65696b6f0a1ba1cad44e::$classMap;
603
 
604
  }, null, ClassLoader::class);
605
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInite25dbe530ac4657986e0b8badf63c718
8
  {
9
  public static $files = array (
10
  '0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
596
  public static function getInitializer(ClassLoader $loader)
597
  {
598
  return \Closure::bind(function () use ($loader) {
599
+ $loader->prefixLengthsPsr4 = ComposerStaticInite25dbe530ac4657986e0b8badf63c718::$prefixLengthsPsr4;
600
+ $loader->prefixDirsPsr4 = ComposerStaticInite25dbe530ac4657986e0b8badf63c718::$prefixDirsPsr4;
601
+ $loader->fallbackDirsPsr4 = ComposerStaticInite25dbe530ac4657986e0b8badf63c718::$fallbackDirsPsr4;
602
+ $loader->classMap = ComposerStaticInite25dbe530ac4657986e0b8badf63c718::$classMap;
603
 
604
  }, null, ClassLoader::class);
605
  }
vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Has_Plugin_Info.php CHANGED
@@ -5,6 +5,11 @@ namespace FSVendor;
5
  if (!\interface_exists('FSVendor\\WPDesk_Translatable')) {
6
  require_once __DIR__ . '/Translatable.php';
7
  }
 
 
 
 
 
8
  interface WPDesk_Has_Plugin_Info extends \FSVendor\WPDesk_Translatable
9
  {
10
  /**
5
  if (!\interface_exists('FSVendor\\WPDesk_Translatable')) {
6
  require_once __DIR__ . '/Translatable.php';
7
  }
8
+ /**
9
+ * Have MUST HAVE info for plugin instantion
10
+ *
11
+ * have to be compatible with PHP 5.2.x
12
+ */
13
  interface WPDesk_Has_Plugin_Info extends \FSVendor\WPDesk_Translatable
14
  {
15
  /**
vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translatable.php CHANGED
@@ -5,6 +5,11 @@ namespace FSVendor;
5
  if (!\interface_exists('FSVendor\\WPDesk_Translable')) {
6
  require_once 'Translable.php';
7
  }
 
 
 
 
 
8
  interface WPDesk_Translatable extends \FSVendor\WPDesk_Translable
9
  {
10
  /** @return string */
5
  if (!\interface_exists('FSVendor\\WPDesk_Translable')) {
6
  require_once 'Translable.php';
7
  }
8
+ /**
9
+ * Have info about textdomain - how to translate texts
10
+ *
11
+ * have to be compatible with PHP 5.2.x
12
+ */
13
  interface WPDesk_Translatable extends \FSVendor\WPDesk_Translable
14
  {
15
  /** @return string */
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker-interface.php CHANGED
@@ -14,15 +14,6 @@ namespace FSVendor;
14
  if (!\defined('ABSPATH')) {
15
  exit;
16
  }
17
- /**
18
- * WP Desk Tracker
19
- *
20
- * @class WPDESK_Tracker
21
- * @version 1.3.2
22
- * @package WPDESK/Helper
23
- * @category Class
24
- * @author WP Desk
25
- */
26
  interface WPDesk_Tracker_Interface
27
  {
28
  /**
14
  if (!\defined('ABSPATH')) {
15
  exit;
16
  }
 
 
 
 
 
 
 
 
 
17
  interface WPDesk_Tracker_Interface
18
  {
19
  /**