Flexible Shipping for WooCommerce - Version 1.9.4

Version Description

  • 2017-06-22 =
  • Added support for WordPress below 4.7 in the WP Desk Tracker class
  • Fixed shipping methods export in Flexible Shipping PRO
Download this release

Release Info

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

Code changes from version 1.9.3 to 1.9.4

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: 1.9.3
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
@@ -100,7 +100,7 @@ if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) && !class_exists(
100
 
101
  add_action( 'flexible_shipping_method_rate_id', array( $this, 'flexible_shipping_method_rate_id' ), 9999999, 2 );
102
 
103
- add_action( 'wp_ajax_flexible_shipping', array( $this, 'wp_ajax_flexible_shipping' ) );
104
 
105
  add_filter( 'woocommerce_shipping_chosen_method', array( $this, 'woocommerce_shipping_chosen_method' ), 10, 2);
106
 
@@ -191,7 +191,7 @@ if ( wpdesk_is_plugin_active( 'woocommerce/woocommerce.php' ) && !class_exists(
191
  return $method;
192
  }
193
 
194
- function wp_ajax_flexible_shipping() {
195
  check_ajax_referer( 'flexible_shipping', 'flexible_shipping_nonce' );
196
  $ret = array( 'status' => 'ok' );
197
  $flexible_shipping_action = '';
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: 1.9.4
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
100
 
101
  add_action( 'flexible_shipping_method_rate_id', array( $this, 'flexible_shipping_method_rate_id' ), 9999999, 2 );
102
 
103
+ add_action( 'wp_ajax_flexible_shipping_export', array( $this, 'wp_ajax_flexible_shipping_export' ) );
104
 
105
  add_filter( 'woocommerce_shipping_chosen_method', array( $this, 'woocommerce_shipping_chosen_method' ), 10, 2);
106
 
191
  return $method;
192
  }
193
 
194
+ function wp_ajax_flexible_shipping_export() {
195
  check_ajax_referer( 'flexible_shipping', 'flexible_shipping_nonce' );
196
  $ret = array( 'status' => 'ok' );
197
  $flexible_shipping_action = '';
inc/wpdesk-tracker/assets/css/tracker.min.css CHANGED
@@ -1 +1 @@
1
- #wpdesk_tracker_connect{margin-top:30px}#wpdesk_tracker_connect .wpdesk-logo{background-image:url(../images/logo.png);background-repeat:no-repeat;background-size:215px 62px;display:block;height:62px;margin:0 auto;width:215px}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#wpdesk_tracker_connect .wpdesk-logo{background-image:url(../images/logo@2x.png);background-size:215px 62px}}#wpdesk_tracker_connect .message p{font-size:14px}#wpdesk_tracker_connect .plugin-card-bottom{border-bottom:1px solid #ddd;margin-bottom:10px}#wpdesk_tracker_connect .button-allow{float:right}#wpdesk_tracker_connect .permissions .trigger{display:block;font-size:.9em;text-align:center;margin-bottom:10px;text-decoration:none}#wpdesk_tracker_connect .permissions .permissions-details{height:0;overflow:hidden;margin:0}#wpdesk_tracker_connect .permissions.open .permissions-details{height:auto;padding:10px 20px}#wpdesk_tracker_connect .permissions ul{margin:0}#wpdesk_tracker_connect .permissions ul li{margin-bottom:12px}#wpdesk_tracker_connect .permissions ul li i.dashicons{float:left;font-size:40px;width:40px;height:40px}#wpdesk_tracker_connect .permissions ul li div{margin-left:55px}#wpdesk_tracker_connect .permissions ul li div span{font-weight:bold}#wpdesk_tracker_connect .permissions ul li div p{margin:2px 0 0 0}#wpdesk_tracker_connect .terms{font-size:.9em;padding:5px}#wpdesk_tracker_connect .terms a{color:#999}.wpdesk_tracker_deactivate .reason-input{display:none}.wpdesk_tracker_deactivate .reason-input input[type=text]{margin-left:25px;width:350px}
1
+ #wpdesk_tracker_connect{margin-top:30px}#wpdesk_tracker_connect .wpdesk-logo{background-image:url(../images/logo.png);background-repeat:no-repeat;background-size:215px 62px;display:block;height:62px;margin:0 auto;width:215px}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){#wpdesk_tracker_connect .wpdesk-logo{background-image:url(../images/logo@2x.png);background-size:215px 62px}}#wpdesk_tracker_connect .message p{font-size:14px}#wpdesk_tracker_connect .plugin-card-bottom{border-bottom:1px solid #ddd;margin-bottom:10px}#wpdesk_tracker_connect .button-allow{float:right}#wpdesk_tracker_connect .permissions .trigger{display:block;font-size:.9em;text-align:center;margin-bottom:10px;text-decoration:none}#wpdesk_tracker_connect .permissions .permissions-details{height:0;overflow:hidden;margin:0}#wpdesk_tracker_connect .permissions.open .permissions-details{height:auto;padding:10px 20px}#wpdesk_tracker_connect .permissions ul{margin:0}#wpdesk_tracker_connect .permissions ul li{margin-bottom:12px}#wpdesk_tracker_connect .permissions ul li i.dashicons{float:left;font-size:40px;width:40px;height:40px}#wpdesk_tracker_connect .permissions ul li div{margin-left:55px}#wpdesk_tracker_connect .permissions ul li div span{font-weight:bold}#wpdesk_tracker_connect .permissions ul li div p{margin:2px 0 0 0}#wpdesk_tracker_connect .terms{font-size:.9em;padding:5px}#wpdesk_tracker_connect .terms a{color:#999}.wpdesk_tracker_deactivate .reason-input{display:none}.wpdesk_tracker_deactivate .reason-input input[type=text]{margin-left:25px;width:350px}
inc/wpdesk-tracker/class-wpdesk-tracker.php CHANGED
@@ -3,7 +3,7 @@
3
  * WP Desk Tracker
4
  *
5
  * @class WPDESK_Tracker
6
- * @version 1.3
7
  * @package WPDESK/Helper
8
  * @category Class
9
  * @author WP Desk
@@ -221,7 +221,7 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
221
  return $value;
222
  }
223
 
224
- public static function default_option_wpdesk_helper_options( $default, $option, $passed_default ) {
225
  if ( apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
226
  $default = array();
227
  $default['wpdesk_tracker_agree'] = 1;
@@ -851,3 +851,15 @@ if ( !class_exists( 'WPDesk_Tracker' ) ) {
851
  }
852
 
853
  }
 
 
 
 
 
 
 
 
 
 
 
 
3
  * WP Desk Tracker
4
  *
5
  * @class WPDESK_Tracker
6
+ * @version 1.3.1
7
  * @package WPDESK/Helper
8
  * @category Class
9
  * @author WP Desk
221
  return $value;
222
  }
223
 
224
+ public static function default_option_wpdesk_helper_options( $default, $option = null, $passed_default = null ) {
225
  if ( apply_filters( 'wpdesk_tracker_do_not_ask', false ) ) {
226
  $default = array();
227
  $default['wpdesk_tracker_agree'] = 1;
851
  }
852
 
853
  }
854
+
855
+ if ( !function_exists( 'wpdesk_tracker_enabled' ) ) {
856
+ function wpdesk_tracker_enabled() {
857
+ $tracker_enabled = true;
858
+ if ( !empty( $_SERVER['SERVER_ADDR'] ) && $_SERVER['SERVER_ADDR'] == '127.0.0.1' ) {
859
+ $tracker_enabled = false;
860
+ }
861
+ return apply_filters( 'wpdesk_tracker_enabled', $tracker_enabled );
862
+ // add_filter( 'wpdesk_tracker_enabled', '__return_true' );
863
+ // add_filter( 'wpdesk_tracker_do_not_ask', '__return_true' );
864
+ }
865
+ }
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.4
6
  Tested up to: 4.8
7
- Stable tag: 1.9.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -110,13 +110,19 @@ There are several integrations that we provide for Flexible Shipping in Poland:
110
 
111
  = Flexible Shipping in a nutshell =
112
 
113
- This WooCommerce Shipping Plugin lets you create WooCommerce shipping cost rules such as:
114
 
115
- * price based shipping
116
- * weight based shipping
117
- * total order based shipping
118
- * item count based shipping
119
- * shipping class based shipping
 
 
 
 
 
 
120
 
121
  Check out this WooCommerce Table Rate Shipping Plugin today!
122
 
@@ -154,6 +160,10 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
154
 
155
  == Changelog ==
156
 
 
 
 
 
157
  = 1.9.3 - 2017-06-13 =
158
  * Added compatibility with WooCommerce DPD 1.0
159
  * Integrated WP Desk Tracker class to help us understand how you use the plugin (you need to opt in to enable it)
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.4
6
  Tested up to: 4.8
7
+ Stable tag: 1.9.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
110
 
111
  = Flexible Shipping in a nutshell =
112
 
113
+ Key features:
114
 
115
+ * improved user experience related to shipping,
116
+ * create custom shipping rules,
117
+ * offer free shipping based on the price or quantity of products in the basket,
118
+ * cost based shipping cost
119
+ * weight based shipping cost
120
+ * total order based shipping cost,
121
+ * item count based shipping cost,
122
+ * shipping class based shipping cost,
123
+ * WooCommerce shipping cost rules,
124
+ * Woocommerce shipping plugin,
125
+ * Woocommerce table rate shipping.
126
 
127
  Check out this WooCommerce Table Rate Shipping Plugin today!
128
 
160
 
161
  == Changelog ==
162
 
163
+ = 1.9.4 - 2017-06-22 =
164
+ * Added support for WordPress below 4.7 in the WP Desk Tracker class
165
+ * Fixed shipping methods export in Flexible Shipping PRO
166
+
167
  = 1.9.3 - 2017-06-13 =
168
  * Added compatibility with WooCommerce DPD 1.0
169
  * Integrated WP Desk Tracker class to help us understand how you use the plugin (you need to opt in to enable it)