Version Description
- 2016-06-17 =
- Fixed default shipping method in the checkout
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Shipping for WooCommerce |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.4.1
- classes/shipping_method.php +5 -2
- flexible-shipping.php +1 -1
- readme.txt +5 -2
classes/shipping_method.php
CHANGED
@@ -539,8 +539,11 @@ if ( ! class_exists( 'WPDesk_Flexible_Shipping' ) ) {
|
|
539 |
'rule_costs' => $rule_costs,
|
540 |
) );
|
541 |
if ( !$default_method_is_set && isset( $shipping_method['method_default'] ) && $shipping_method['method_default'] == 'yes' ) {
|
542 |
-
WC()->session->
|
543 |
-
$
|
|
|
|
|
|
|
544 |
}
|
545 |
}
|
546 |
}
|
539 |
'rule_costs' => $rule_costs,
|
540 |
) );
|
541 |
if ( !$default_method_is_set && isset( $shipping_method['method_default'] ) && $shipping_method['method_default'] == 'yes' ) {
|
542 |
+
$chosen_shipping_method = WC()->session->get( 'chosen_shipping_methods', array() );
|
543 |
+
if ( empty( $chosen_shipping_method['0'] ) ) {
|
544 |
+
WC()->session->set('chosen_shipping_methods', array( '0' => $id ) );
|
545 |
+
$default_method_is_set = true;
|
546 |
+
}
|
547 |
}
|
548 |
}
|
549 |
}
|
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 shipping methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
-
Version: 1.4
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-shipping
|
3 |
Plugin Name: Flexible Shipping
|
4 |
Plugin URI: https://wordpress.org/plugins/flexible-shipping/
|
5 |
Description: Create additional shipping methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
+
Version: 1.4.1
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-shipping
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Flexible Shipping for WooCommerce ===
|
2 |
-
Contributors: wpdesk, swoboda
|
3 |
Donate link: https://www.wpdesk.net/
|
4 |
Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart total
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.5.2
|
7 |
-
Stable tag: 1.4
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -116,6 +116,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
|
|
116 |
|
117 |
== Changelog ==
|
118 |
|
|
|
|
|
|
|
119 |
= 1.4 - 2016-06-14 =
|
120 |
* Converted to English
|
121 |
* Added Polish (pl_PL) translation
|
1 |
=== Flexible Shipping for WooCommerce ===
|
2 |
+
Contributors: wpdesk, swoboda, jablonowski
|
3 |
Donate link: https://www.wpdesk.net/
|
4 |
Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart total
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.5.2
|
7 |
+
Stable tag: 1.4.1
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
116 |
|
117 |
== Changelog ==
|
118 |
|
119 |
+
= 1.4.1 - 2016-06-17 =
|
120 |
+
* Fixed default shipping method in the checkout
|
121 |
+
|
122 |
= 1.4 - 2016-06-14 =
|
123 |
* Converted to English
|
124 |
* Added Polish (pl_PL) translation
|