Booster for WooCommerce - Version 2.0.1

Version Description

  • 12/12/2014 =
  • Dev - CURRENCIES - Prices and Currencies by Country - Added no retries on unsuccessful DB update.
Download this release

Release Info

Developer algoritmika
Plugin Icon 128x128 Booster for WooCommerce
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

includes/class-wcj-price-by-country.php CHANGED
@@ -182,9 +182,14 @@ class WCJ_Price_By_Country {
182
  public function check_and_update_database() {
183
 
184
  // This product includes GeoLite data created by MaxMind, available from <a href="http://www.maxmind.com">http://www.maxmind.com</a>.
 
 
 
 
185
 
186
- if ( get_option( 'wcj_geoipcountry_db_version', 0 ) < $this->current_db_file_version ) {
187
-
 
188
  // Updating DB - get IPs from file
189
  $csv = array_map( 'str_getcsv', file( plugin_dir_path( __FILE__ ) . 'lib/ipdb.csv' ) );
190
 
@@ -414,7 +419,7 @@ class WCJ_Price_By_Country {
414
  'desc' => __( 'Enable the Price by Country feature', 'woocommerce-jetpack' ),
415
  'desc_tip' => __( 'Change product\'s price and currency by customer\'s country.', 'woocommerce-jetpack' ),
416
  'id' => 'wcj_price_by_country_enabled',
417
- 'default' => 'yes',
418
  'type' => 'checkbox',
419
  ),
420
 
182
  public function check_and_update_database() {
183
 
184
  // This product includes GeoLite data created by MaxMind, available from <a href="http://www.maxmind.com">http://www.maxmind.com</a>.
185
+ $current_version = get_option( 'wcj_geoipcountry_db_version', 0 );
186
+ if ( -1 == $current_version )
187
+ return;
188
+ if ( $current_version < $this->current_db_file_version ) {
189
 
190
+ // Updating DB - started
191
+ update_option( 'wcj_geoipcountry_db_version', -1 );
192
+
193
  // Updating DB - get IPs from file
194
  $csv = array_map( 'str_getcsv', file( plugin_dir_path( __FILE__ ) . 'lib/ipdb.csv' ) );
195
 
419
  'desc' => __( 'Enable the Price by Country feature', 'woocommerce-jetpack' ),
420
  'desc_tip' => __( 'Change product\'s price and currency by customer\'s country.', 'woocommerce-jetpack' ),
421
  'id' => 'wcj_price_by_country_enabled',
422
+ 'default' => 'no',
423
  'type' => 'checkbox',
424
  ),
425
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://algoritmika.com/donate/
4
  Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs,add to cart text,order number,sequential order numbering,email pdf invoice,pdf invoice,pdf invoices,already in cart,empty cart,redirect to checkout,minimum order amount,customize checkout fields,checkout fields,email,customize product tabs,product tabs,related products number,empty cart,redirect add to cart,redirect to checkout,product already in cart,custom payment gateway,payment gateway icon,auto-complete all orders,custom order statuses,custom order status,remove text from price,custom css,hide categories count,hide subcategories count,hide category count,hide subcategory count,display total sales,custom product tabs,remove product tab,payment gateway fee,
5
  Requires at least: 3.9.1
6
  Tested up to: 4.0
7
- Stable tag: 2.0.0
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -64,6 +64,9 @@ To unlock all WooCommerce Jetpack features, please install additional <a href="h
64
 
65
  == Changelog ==
66
 
 
 
 
67
  = 2.0.0 - 12/12/2014 =
68
  * Fix - CHECKOUT - **Payment Gateways** - *Fee value* step changed to two digits after point in *Payment Gateways Fees Options*. Suggested by Patryk.
69
  * Fix - PRODUCTS - Sorting - *Remove All Sorting* setting in "WooCommerce > Settings > Products" was disappearing after checkbox is disabled, fixed.
4
  Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs,add to cart text,order number,sequential order numbering,email pdf invoice,pdf invoice,pdf invoices,already in cart,empty cart,redirect to checkout,minimum order amount,customize checkout fields,checkout fields,email,customize product tabs,product tabs,related products number,empty cart,redirect add to cart,redirect to checkout,product already in cart,custom payment gateway,payment gateway icon,auto-complete all orders,custom order statuses,custom order status,remove text from price,custom css,hide categories count,hide subcategories count,hide category count,hide subcategory count,display total sales,custom product tabs,remove product tab,payment gateway fee,
5
  Requires at least: 3.9.1
6
  Tested up to: 4.0
7
+ Stable tag: 2.0.1
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
64
 
65
  == Changelog ==
66
 
67
+ = 2.0.1 - 12/12/2014 =
68
+ * Dev - CURRENCIES - **Prices and Currencies by Country** - Added no retries on unsuccessful DB update.
69
+
70
  = 2.0.0 - 12/12/2014 =
71
  * Fix - CHECKOUT - **Payment Gateways** - *Fee value* step changed to two digits after point in *Payment Gateways Fees Options*. Suggested by Patryk.
72
  * Fix - PRODUCTS - Sorting - *Remove All Sorting* setting in "WooCommerce > Settings > Products" was disappearing after checkbox is disabled, fixed.
woocommerce-jetpack.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce Jetpack
4
  Plugin URI: http://woojetpack.com
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
- Version: 2.0.0
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.
3
  Plugin Name: WooCommerce Jetpack
4
  Plugin URI: http://woojetpack.com
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
+ Version: 2.0.1
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.