Product Import Export for WooCommerce - Version 2.0.8

Version Description

  • Fix: Product review import.
Download this release

Release Info

Developer webtoffee
Plugin Icon 128x128 Product Import Export for WooCommerce
Version 2.0.8
Comparing to
See all releases

Code changes from version 2.0.7 to 2.0.8

admin/modules/product_review/product_review.php CHANGED
@@ -87,8 +87,8 @@ class Wt_Import_Export_For_Woo_Basic_Product_Review {
87
  }
88
 
89
  if(0 == $batch_offset){
90
- $memory = size_format(wt_let_to_num(ini_get('memory_limit')));
91
- $wp_memory = size_format(wt_let_to_num(WP_MEMORY_LIMIT));
92
  Wt_Import_Export_For_Woo_Basic_Logwriter::write_log($this->module_base, 'import', '---[ New import started at '.date('Y-m-d H:i:s').' ] PHP Memory: ' . $memory . ', WP Memory: ' . $wp_memory);
93
  }
94
 
@@ -103,6 +103,29 @@ class Wt_Import_Export_For_Woo_Basic_Product_Review {
103
 
104
  return $response;
105
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
 
107
  public function exporter_do_export($export_data, $base, $step, $form_data, $selected_template_data, $method_export, $batch_offset) {
108
  if ($this->module_base != $base) {
87
  }
88
 
89
  if(0 == $batch_offset){
90
+ $memory = size_format(self::wt_let_to_num(ini_get('memory_limit')));
91
+ $wp_memory = size_format(self::wt_let_to_num(WP_MEMORY_LIMIT));
92
  Wt_Import_Export_For_Woo_Basic_Logwriter::write_log($this->module_base, 'import', '---[ New import started at '.date('Y-m-d H:i:s').' ] PHP Memory: ' . $memory . ', WP Memory: ' . $wp_memory);
93
  }
94
 
103
 
104
  return $response;
105
  }
106
+
107
+ public static function wt_let_to_num( $size ) {
108
+ $l = substr( $size, -1 );
109
+ $ret = (int) substr( $size, 0, -1 );
110
+ switch ( strtoupper( $l ) ) {
111
+ case 'P':
112
+ $ret *= 1024;
113
+ // No break.
114
+ case 'T':
115
+ $ret *= 1024;
116
+ // No break.
117
+ case 'G':
118
+ $ret *= 1024;
119
+ // No break.
120
+ case 'M':
121
+ $ret *= 1024;
122
+ // No break.
123
+ case 'K':
124
+ $ret *= 1024;
125
+ // No break.
126
+ }
127
+ return $ret;
128
+ }
129
 
130
  public function exporter_do_export($export_data, $base, $step, $form_data, $selected_template_data, $method_export, $batch_offset) {
131
  if ($this->module_base != $base) {
includes/class-wt-import-export-for-woo.php CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
80
  if ( defined( 'WT_P_IEW_VERSION' ) ) {
81
  $this->version = WT_P_IEW_VERSION;
82
  } else {
83
- $this->version = '2.0.7';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
80
  if ( defined( 'WT_P_IEW_VERSION' ) ) {
81
  $this->version = WT_P_IEW_VERSION;
82
  } else {
83
+ $this->version = '2.0.8';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
product-import-export-for-woo.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Import and Export Products From and To your WooCommerce Store.
6
  Author: WebToffee
7
  Author URI: https://www.webtoffee.com/product/product-import-export-woocommerce/
8
- Version: 2.0.7
9
  WC tested up to: 5.6
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -43,7 +43,7 @@ if ( !defined( 'WT_IEW_DEBUG_BASIC_TROUBLESHOOT' ) ) {
43
  * Start at version 1.0.0 and use SemVer - https://semver.org
44
  * Rename this for your plugin and update it as you release new versions.
45
  */
46
- define( 'WT_P_IEW_VERSION', '2.0.7' );
47
 
48
  /**
49
  * The code that runs during plugin activation.
5
  Description: Import and Export Products From and To your WooCommerce Store.
6
  Author: WebToffee
7
  Author URI: https://www.webtoffee.com/product/product-import-export-woocommerce/
8
+ Version: 2.0.8
9
  WC tested up to: 5.6
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
43
  * Start at version 1.0.0 and use SemVer - https://semver.org
44
  * Rename this for your plugin and update it as you release new versions.
45
  */
46
+ define( 'WT_P_IEW_VERSION', '2.0.8' );
47
 
48
  /**
49
  * The code that runs during plugin activation.
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: product export, product import, CSV import export, woocommerce, CSV, produ
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.7
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -174,6 +174,9 @@ Yes. You can import grouped, affiliate/external products in addition to simple p
174
 
175
  == Changelog ==
176
 
 
 
 
177
  = 2.0.7 =
178
  * Product review import export support added.
179
 
@@ -484,5 +487,5 @@ Yes. You can import grouped, affiliate/external products in addition to simple p
484
 
485
  == Upgrade Notice ==
486
 
487
- = 2.0.7 =
488
- * Product review import export support added.
5
  Requires at least: 3.0.1
6
  Tested up to: 5.8
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.8
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
174
 
175
  == Changelog ==
176
 
177
+ = 2.0.8 =
178
+ * Fix: Product review import.
179
+
180
  = 2.0.7 =
181
  * Product review import export support added.
182
 
487
 
488
  == Upgrade Notice ==
489
 
490
+ = 2.0.8 =
491
+ * Fix: Product review import.