Version Description
- 2018-06-11 =
- Fixed missing metabox Add Shipment in WooCommerce 3.4
Download this release
Release Info
Developer | jablonowski |
Plugin | Flexible Shipping for WooCommerce |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.4
- classes/order-add-shipping.php +3 -1
- flexible-shipping.php +3 -3
- readme.txt +4 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +1 -1
classes/order-add-shipping.php
CHANGED
@@ -70,7 +70,9 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping_Add_Shipping' ) ) {
|
|
70 |
$flexible_shipping = $all_shipping_methods['flexible_shipping'];
|
71 |
$flexible_shipping_rates = $flexible_shipping->get_all_rates();
|
72 |
foreach ( $order_shipping_methods as $order_shipping_method ) {
|
73 |
-
|
|
|
|
|
74 |
$add_metabox = true;
|
75 |
}
|
76 |
}
|
70 |
$flexible_shipping = $all_shipping_methods['flexible_shipping'];
|
71 |
$flexible_shipping_rates = $flexible_shipping->get_all_rates();
|
72 |
foreach ( $order_shipping_methods as $order_shipping_method ) {
|
73 |
+
/** @var WC_Order_Item_Shipping $order_shipping_method */
|
74 |
+
$fs_method = $order_shipping_method->get_meta( '_fs_method' );
|
75 |
+
if ( !empty( $fs_method ) && isset( $flexible_shipping_rates[ $fs_method['id_for_shipping'] ] ) ) {
|
76 |
$add_metabox = true;
|
77 |
}
|
78 |
}
|
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: 2.1.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-shipping
|
@@ -11,7 +11,7 @@
|
|
11 |
Requires at least: 4.5
|
12 |
Tested up to: 4.9.6
|
13 |
WC requires at least: 3.0.0
|
14 |
-
WC tested up to: 3.4.
|
15 |
|
16 |
Copyright 2017 WP Desk Ltd.
|
17 |
|
@@ -36,7 +36,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
36 |
exit;
|
37 |
} // Exit if accessed directly
|
38 |
|
39 |
-
$plugin_version = '2.1.
|
40 |
|
41 |
define( 'FLEXIBLE_SHIPPING_VERSION', $plugin_version );
|
42 |
|
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: 2.1.4
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-shipping
|
11 |
Requires at least: 4.5
|
12 |
Tested up to: 4.9.6
|
13 |
WC requires at least: 3.0.0
|
14 |
+
WC tested up to: 3.4.2
|
15 |
|
16 |
Copyright 2017 WP Desk Ltd.
|
17 |
|
36 |
exit;
|
37 |
} // Exit if accessed directly
|
38 |
|
39 |
+
$plugin_version = '2.1.4';
|
40 |
|
41 |
define( 'FLEXIBLE_SHIPPING_VERSION', $plugin_version );
|
42 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.wpdesk.net/products/flexible-shipping-pro-woocommerce/
|
|
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: 4.9.6
|
7 |
-
Stable tag: 2.1.
|
8 |
Requires PHP: 5.5
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -171,6 +171,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
|
|
171 |
|
172 |
== Changelog ==
|
173 |
|
|
|
|
|
|
|
174 |
= 2.1.3 - 2018-05-29 =
|
175 |
* Fixed opt-in/opt-out links
|
176 |
|
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: 4.9.6
|
7 |
+
Stable tag: 2.1.4
|
8 |
Requires PHP: 5.5
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
171 |
|
172 |
== Changelog ==
|
173 |
|
174 |
+
= 2.1.4 - 2018-06-11 =
|
175 |
+
* Fixed missing metabox Add Shipment in WooCommerce 3.4
|
176 |
+
|
177 |
= 2.1.3 - 2018-05-29 =
|
178 |
* Fixed opt-in/opt-out links
|
179 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInite5c7bd96112481520aa09571fa61f763::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit175f978dcd39292889849272d8efa5f6
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
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\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInite5c7bd96112481520aa09571fa61f763
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInite5c7bd96112481520aa09571fa61f763', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInite5c7bd96112481520aa09571fa61f763', '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\ComposerStaticInite5c7bd96112481520aa09571fa61f763::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static function getInitializer(ClassLoader $loader)
|
10 |
{
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInite5c7bd96112481520aa09571fa61f763
|
8 |
{
|
9 |
public static function getInitializer(ClassLoader $loader)
|
10 |
{
|