Product Import Export for WooCommerce - Version 2.2.1

Version Description

2022-05-26 = * WordPress 6.0 Tested OK. * WooCommerce 6.5 Tested OK. * Enhancement: Option to choose delimiter when exporting.

Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.1

admin/modules/export/export.php CHANGED
@@ -120,7 +120,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
120
  'label'=>__("Default Export method"),
121
  'type'=>'select',
122
  'sele_vals'=>$export_methods,
123
- 'value' =>'quick',
124
  'field_name'=>'default_export_method',
125
  'field_group'=>'advanced_field',
126
  'help_text'=>__('Select the default method of export.'),
@@ -281,7 +281,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
281
  }
282
  }
283
 
284
-
285
  $advanced_screen_fields=array(
286
 
287
  'batch_count'=>array(
@@ -292,6 +292,18 @@ class Wt_Import_Export_For_Woo_Basic_Export
292
  'field_name'=>'batch_count',
293
  'help_text'=>sprintf(__('The number of records that the server will process for every iteration within the configured timeout interval. If the export fails due to timeout you can lower this number accordingly and try again. Defaulted to %d records.'), 30),
294
  'validation_rule'=>array('type'=>'absint'),
 
 
 
 
 
 
 
 
 
 
 
 
295
  )
296
  );
297
 
120
  'label'=>__("Default Export method"),
121
  'type'=>'select',
122
  'sele_vals'=>$export_methods,
123
+ 'value' =>'new',
124
  'field_name'=>'default_export_method',
125
  'field_group'=>'advanced_field',
126
  'help_text'=>__('Select the default method of export.'),
281
  }
282
  }
283
 
284
+ $delimiter_default = isset($advanced_form_data['wt_iew_delimiter']) ? $advanced_form_data['wt_iew_delimiter'] : ",";
285
  $advanced_screen_fields=array(
286
 
287
  'batch_count'=>array(
292
  'field_name'=>'batch_count',
293
  'help_text'=>sprintf(__('The number of records that the server will process for every iteration within the configured timeout interval. If the export fails due to timeout you can lower this number accordingly and try again. Defaulted to %d records.'), 30),
294
  'validation_rule'=>array('type'=>'absint'),
295
+ ),
296
+ 'delimiter'=>array(
297
+ 'label'=>__( 'Delimiter' ),
298
+ 'type'=>'select',
299
+ 'value'=>",",
300
+ 'css_class'=>"wt_iew_delimiter_preset",
301
+ 'tr_id'=>'delimiter_tr',
302
+ 'field_name'=>'delimiter_preset',
303
+ 'sele_vals'=>Wt_Iew_IE_Basic_Helper::_get_csv_delimiters(),
304
+ 'help_text'=>__( 'Separator for differentiating the columns in the CSV file. Assumes ‘,’ by default.' ),
305
+ 'validation_rule'=>array('type'=>'skip'),
306
+ 'after_form_field'=>'<input type="text" class="wt_iew_custom_delimiter" name="wt_iew_delimiter" value="'.$delimiter_default.'" />',
307
  )
308
  );
309
 
admin/modules/product/import/import.php CHANGED
@@ -1008,15 +1008,19 @@ class Wt_Import_Export_For_Woo_Basic_Product_Import {
1008
  *
1009
  * @return array
1010
  */
1011
- public function wt_parse_seperation_field( $value, $separator = ',' ) {
1012
- if ( empty( $value ) && '0' !== $value ) {
1013
- return array();
1014
- }
 
 
 
 
 
 
 
1015
 
1016
- return array_map( 'wc_clean', $this->wt_explode_values( $value ,$separator) );
1017
- }
1018
-
1019
- /**
1020
  * Parse a field that is generally '1' or '0' but can be something else.
1021
  *
1022
  * @param string $value Field value.
1008
  *
1009
  * @return array
1010
  */
1011
+ public function wt_parse_seperation_field($value, $separator = ',') {
1012
+ if (empty($value) && '0' !== $value) {
1013
+ return array();
1014
+ }
1015
+ $wt_clean_options = apply_filters('wt_clean_product_options', true);
1016
+ if ($wt_clean_options) {
1017
+ return array_map('wc_clean', $this->wt_explode_values($value, $separator));
1018
+ } else {
1019
+ return $this->wt_explode_values($value, $separator);
1020
+ }
1021
+ }
1022
 
1023
+ /**
 
 
 
1024
  * Parse a field that is generally '1' or '0' but can be something else.
1025
  *
1026
  * @param string $value Field value.
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.2.0';
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.2.1';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
product-import-export-for-woo.php CHANGED
@@ -5,12 +5,12 @@
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.2.0
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
  Text Domain: product-import-export-for-woo
12
  Domain Path: /languages
13
- WC tested up to: 6.4
14
  Requires at least: 3.0
15
  Requires PHP: 5.6
16
  */
@@ -46,7 +46,7 @@ if ( !defined( 'WT_IEW_DEBUG_BASIC_TROUBLESHOOT' ) ) {
46
  * Start at version 1.0.0 and use SemVer - https://semver.org
47
  * Rename this for your plugin and update it as you release new versions.
48
  */
49
- define( 'WT_P_IEW_VERSION', '2.2.0' );
50
 
51
  /**
52
  * The code that runs during plugin activation.
@@ -253,13 +253,15 @@ function wt_product_addon_basic_gopro_content() {
253
  ?>
254
  <div class="wt-ier-product wt-ier-product_review wt-ier-product_tags wt-ier-product_categories wt-ier-gopro-cta wt-ierpro-features" style="display: none;">
255
  <ul class="ticked-list wt-ierpro-allfeat">
256
- <li><?php _e('Supports all product types including variable and custom types.'); ?></li>
257
- <li><?php _e('CSV/XML file format support'); ?></li>
258
  <li><?php _e('Import and export custom fields and hidden metadata.'); ?></li>
259
- <li><?php _e('Run scheduled exports via FTP/SFTP.'); ?></li>
260
- <li><?php _e('Run scheduled imports via URL/FTP/SFTP.'); ?></li>
261
- <li><?php _e('Export products by product types.'); ?></li>
262
- <li><?php _e('Tested compatibility with various third-party plugins.'); ?></li>
 
 
263
  </ul>
264
  <div class="wt-ierpro-btn-wrapper">
265
  <a href="<?php echo "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_P_IEW_VERSION; ?>" target="_blank" class="wt-ierpro-outline-btn"><?php _e('UPGRADE TO PREMIUM'); ?></a>
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.2.1
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
  Text Domain: product-import-export-for-woo
12
  Domain Path: /languages
13
+ WC tested up to: 6.5
14
  Requires at least: 3.0
15
  Requires PHP: 5.6
16
  */
46
  * Start at version 1.0.0 and use SemVer - https://semver.org
47
  * Rename this for your plugin and update it as you release new versions.
48
  */
49
+ define( 'WT_P_IEW_VERSION', '2.2.1' );
50
 
51
  /**
52
  * The code that runs during plugin activation.
253
  ?>
254
  <div class="wt-ier-product wt-ier-product_review wt-ier-product_tags wt-ier-product_categories wt-ier-gopro-cta wt-ierpro-features" style="display: none;">
255
  <ul class="ticked-list wt-ierpro-allfeat">
256
+ <li><?php _e('All free version features'); ?></li>
257
+ <li><?php _e('Export & import all types of WooCommerce products'); ?></li>
258
  <li><?php _e('Import and export custom fields and hidden metadata.'); ?></li>
259
+ <li><?php _e('XML file type support'); ?></li>
260
+ <li><?php _e('Run scheduled automatic import and export'); ?></li>
261
+ <li><?php _e('Import from URL, FTP/SFTP'); ?></li>
262
+ <li><?php _e('Export to FTP/SFTP'); ?></li>
263
+ <li><?php _e('Option to export product images as a separate zip file'); ?></li>
264
+ <li><?php _e('Tested compatibility with major third-party plugins'); ?></li>
265
  </ul>
266
  <div class="wt-ierpro-btn-wrapper">
267
  <a href="<?php echo "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_P_IEW_VERSION; ?>" target="_blank" class="wt-ierpro-outline-btn"><?php _e('UPGRADE TO PREMIUM'); ?></a>
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: webtoffee
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: product export, product import, CSV import export, woocommerce, CSV, product, export, import, woocommerce product import, woocommerce import products, export woocommerce products, import products into woocommerce
5
  Requires at least: 3.0.1
6
- Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 2.2.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -56,7 +56,7 @@ With this plugin, you can export and import WooCommerce products to and from a C
56
  * <strong>Save frequently used import/export configurations</strong> as templates and use the template for future imports and exports.
57
  * The plugin <strong>stores all the past imports and exports</strong> and <strong>lets you re-run</strong> them when needed.
58
  * <strong>Easy debugging:</strong> View and download import log for debugging purpose.
59
- * Tested OK with WooCommerce 6.4
60
 
61
  ###COMPATIBLE PLUGINS###
62
 
@@ -131,17 +131,19 @@ The <a href="https://www.webtoffee.com/product/product-import-export-woocommerce
131
 
132
  = PREMIUM VERSION FEATURES =
133
 
134
- ✅ Export/Import simple, group, external, custom and variation product types.</li>
 
135
  ✅ Export/Import custom fields(meta) and hidden meta.</li>
136
  ✅ Choose from XML/CSV format for import/export.</li>
137
- ✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Step_3_Filter_d4">Various filter options for exporting products</a>
138
- ✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Step_3_Map_impo10">Map and transform fields during import</a>
139
- ✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Evaluate_field11">Bulk edit/evaluate data during import</a>
140
  ✅ WPML support for simple products.</li>
141
  ✅ Import/Export file via FTP/SFTP.</li>
 
142
  ✅ <a href="https://www.webtoffee.com/how-to-import-woocommerce-products-using-url/">Import from URL.</a></li>
143
  ✅ Automatic scheduled import and export.</li>
144
- ✅ <a href="https://www.webtoffee.com/product-import-export-plugin-third-party-compatibility/">Third party plugin customization support.</a></li>
145
 
146
 
147
  Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/product-import-export-woocommerce/">Product Import Export Plugin for WooCommerce</a> for more details.
@@ -184,7 +186,7 @@ No, the free version of the plugin does not support variable products. To import
184
 
185
  = Does this plugin support export/import of images? =
186
 
187
- Yes, you can import or export product images along with other details. Refer to: <a rel="nofollow" href="https://www.webtoffee.com/import-export-woocommerce-products-basic/">How to import and export WooCommerce products</a> for more information.
188
 
189
 
190
  = Which is the best free CSV editor suggested? =
@@ -198,7 +200,7 @@ Yes, you can import product taxonomy and attributes into WooCommerce using the p
198
 
199
  = Can I export products by category using this plugin?
200
 
201
- Yes, you can export products by category using the category filter option within the plugin. For more details, refer to the <a rel="nofollow" href="https://www.webtoffee.com/import-export-woocommerce-products-basic/#Step_3_Fil_4">Filter data section of the export process</a>.
202
 
203
  = Is it possible to import grouped and external products to WooCommerce using the plugin?
204
 
@@ -240,6 +242,10 @@ Yes, you can import grouped, affiliate/external products in addition to simple p
240
 
241
  == CHANGELOG ==
242
 
 
 
 
 
243
  = 2.2.0 2022-05-12 =
244
  * WC 6.4 Tested OK.
245
  * Enhancement: Bulk delete import logs.
@@ -601,6 +607,7 @@ Yes, you can import grouped, affiliate/external products in addition to simple p
601
 
602
  == Upgrade Notice ==
603
 
604
- = 2.2.0 =
605
- * WC 6.4 Tested OK.
606
- * Enhancement: Bulk delete import logs.
 
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: product export, product import, CSV import export, woocommerce, CSV, product, export, import, woocommerce product import, woocommerce import products, export woocommerce products, import products into woocommerce
5
  Requires at least: 3.0.1
6
+ Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 2.2.1
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
56
  * <strong>Save frequently used import/export configurations</strong> as templates and use the template for future imports and exports.
57
  * The plugin <strong>stores all the past imports and exports</strong> and <strong>lets you re-run</strong> them when needed.
58
  * <strong>Easy debugging:</strong> View and download import log for debugging purpose.
59
+ * Tested OK with WooCommerce 6.5
60
 
61
  ###COMPATIBLE PLUGINS###
62
 
131
 
132
  = PREMIUM VERSION FEATURES =
133
 
134
+ ✅ Export/Import simple, grouped, external, subscription, custom and variation product types.</li>
135
+ ✅ Export/Import WooCommerce bookings.</li>
136
  ✅ Export/Import custom fields(meta) and hidden meta.</li>
137
  ✅ Choose from XML/CSV format for import/export.</li>
138
+ ✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Step_3_Fil_4">Various filter options for exporting products</a>
139
+ ✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Step_3_Map_10">Map and transform fields during import</a>
140
+ ✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Evaluate_f_11">Bulk edit/evaluate data during import</a>
141
  ✅ WPML support for simple products.</li>
142
  ✅ Import/Export file via FTP/SFTP.</li>
143
+ ✅ <a href="https://www.webtoffee.com/exporting-importing-woocommerce-products-images-with-zip-file/#Exporting__0">Export product images as a separate zip file.</a></li>
144
  ✅ <a href="https://www.webtoffee.com/how-to-import-woocommerce-products-using-url/">Import from URL.</a></li>
145
  ✅ Automatic scheduled import and export.</li>
146
+ ✅ <a href="https://www.webtoffee.com/product-import-export-plugin-third-party-compatibility/">Compatible with various third-party plugins.</a></li>
147
 
148
 
149
  Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/product-import-export-woocommerce/">Product Import Export Plugin for WooCommerce</a> for more details.
186
 
187
  = Does this plugin support export/import of images? =
188
 
189
+ Yes, you can import and export product images along with other details. For more information, refer to: <a rel="nofollow" href="https://www.webtoffee.com/how-to-import-woocommerce-products-with-images-from-a-csv-file/">How to import WooCommerce products with images</a>.
190
 
191
 
192
  = Which is the best free CSV editor suggested? =
200
 
201
  = Can I export products by category using this plugin?
202
 
203
+ Yes, you can export products by category using the category filter option in the plugin. For more details, refer to the <a rel="nofollow" href="https://www.webtoffee.com/import-export-woocommerce-products-basic/#Step_3_Fil_4">Filter data section of the export process</a>.
204
 
205
  = Is it possible to import grouped and external products to WooCommerce using the plugin?
206
 
242
 
243
  == CHANGELOG ==
244
 
245
+ = 2.2.1 2022-05-26 =
246
+ * WordPress 6.0 Tested OK.
247
+ * WooCommerce 6.5 Tested OK.
248
+ * Enhancement: Option to choose delimiter when exporting.
249
  = 2.2.0 2022-05-12 =
250
  * WC 6.4 Tested OK.
251
  * Enhancement: Bulk delete import logs.
607
 
608
  == Upgrade Notice ==
609
 
610
+ = 2.2.1 =
611
+ * WordPress 6.0 Tested OK.
612
+ * WooCommerce 6.5 Tested OK.
613
+ * Enhancement: Option to choose delimiter when exporting.