Booster for WooCommerce - Version 2.0.5

Version Description

  • 16/12/2014 =
  • Fix - CURRENCIES - Prices and Currencies by Country - Calls to str_getcsv removed (as this function needs PHP 5.3.0 minimum).
Download this release

Release Info

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

Code changes from version 2.0.4 to 2.0.5

includes/class-wcj-price-by-country.php CHANGED
@@ -24,7 +24,7 @@ class WCJ_Price_By_Country {
24
  $this->customer_country = null;
25
  $this->customer_country_group_id = null;
26
 
27
- $this->current_db_file_version = 1;
28
 
29
  //$this->currency_symbols = include( 'currencies/wcj-currency-symbols.php' );
30
  /*$currencies = include( 'currencies/wcj-currencies.php' );
@@ -175,6 +175,13 @@ class WCJ_Price_By_Country {
175
  }
176
  return $result;
177
  }
 
 
 
 
 
 
 
178
 
179
  /**
180
  * check_and_update_database.
@@ -191,7 +198,8 @@ class WCJ_Price_By_Country {
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
 
196
  // Updating DB - IPs from
197
  foreach ( $csv as $key => $data )
24
  $this->customer_country = null;
25
  $this->customer_country_group_id = null;
26
 
27
+ $this->current_db_file_version = 2;
28
 
29
  //$this->currency_symbols = include( 'currencies/wcj-currency-symbols.php' );
30
  /*$currencies = include( 'currencies/wcj-currencies.php' );
175
  }
176
  return $result;
177
  }
178
+
179
+ /**
180
+ * str_getcsv.
181
+ */
182
+ public function parse_csv_line( $line ) {
183
+ return explode( ',', trim( $line ) );
184
+ }
185
 
186
  /**
187
  * check_and_update_database.
198
  update_option( 'wcj_geoipcountry_db_version', -1 );
199
 
200
  // Updating DB - get IPs from file
201
+ //$csv = array_map( 'str_getcsv', file( plugin_dir_path( __FILE__ ) . 'lib/ipdb.csv' ) );
202
+ $csv = array_map( array( $this, 'parse_csv_line' ), file( plugin_dir_path( __FILE__ ) . 'lib/ipdb.csv' ) );
203
 
204
  // Updating DB - IPs from
205
  foreach ( $csv as $key => $data )
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.1
7
- Stable tag: 2.0.4
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.4 - 16/12/2014 =
68
  * Dev - **PDF Invoices** - *Family font* option added.
69
  * Fix - **Reports** - Country sets 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.1
7
+ Stable tag: 2.0.5
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.5 - 16/12/2014 =
68
+ * Fix - CURRENCIES - **Prices and Currencies by Country** - Calls to `str_getcsv` removed (as this function needs PHP 5.3.0 minimum).
69
+
70
  = 2.0.4 - 16/12/2014 =
71
  * Dev - **PDF Invoices** - *Family font* option added.
72
  * Fix - **Reports** - Country sets 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.4
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.5
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.