Product Import Export for WooCommerce - Version 2.2.3

Version Description

2022-08-09 = * Enhancement: Product - total sales count in export/import. * Bugfix: Delimiter reset when using the re-run option from the History section. * WooCommerce 6.7 Tested OK.

Download this release

Release Info

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

Code changes from version 2.2.2 to 2.2.3

admin/modules/export/assets/js/main.js CHANGED
@@ -636,6 +636,10 @@ var wt_iew_basic_export=(function( $ ) {
636
  }
637
  this.to_export_title=$('[name="wt_iew_export_post_type"] option:selected').text();
638
  }
 
 
 
 
639
  $('.wt_iew_step_head_post_type_name').html(this.to_export_title);
640
  $('.wt-ierpro-blue-btn').attr("href", wt_iew_basic_params.pro_plugins[this.to_export]['url']);
641
  $('.wt-ier-product-name').html(wt_iew_basic_params.pro_plugins[this.to_export]['name']);
636
  }
637
  this.to_export_title=$('[name="wt_iew_export_post_type"] option:selected').text();
638
  }
639
+
640
+ if(this.to_export_title.includes('Product'))
641
+ $('#product-type-message').show();
642
+
643
  $('.wt_iew_step_head_post_type_name').html(this.to_export_title);
644
  $('.wt-ierpro-blue-btn').attr("href", wt_iew_basic_params.pro_plugins[this.to_export]['url']);
645
  $('.wt-ier-product-name').html(wt_iew_basic_params.pro_plugins[this.to_export]['name']);
admin/modules/export/views/_export_method_export_page.php CHANGED
@@ -13,7 +13,7 @@ if (!defined('ABSPATH')) {
13
  <div class="wt_iew_warn wt_iew_export_template_wrn" style="display:none;">
14
  <?php _e('Please select an export template.');?>
15
  </div>
16
-
17
  <table class="form-table wt-iew-form-table">
18
  <tr>
19
  <th><label><?php _e('Select an export method');?></label></th>
13
  <div class="wt_iew_warn wt_iew_export_template_wrn" style="display:none;">
14
  <?php _e('Please select an export template.');?>
15
  </div>
16
+ <div id="product-type-message" class="updated" style="margin:0px;display: none;background: #dceff4;"><p><?php esc_html_e('The free version of this plugin exports and imports only WooCommerce Simple, Grouped and External/Affiliate product types.'); ?></p></div>
17
  <table class="form-table wt-iew-form-table">
18
  <tr>
19
  <th><label><?php _e('Select an export method');?></label></th>
admin/modules/import/assets/js/main.js CHANGED
@@ -107,13 +107,14 @@ var wt_iew_basic_import=(function( $ ) {
107
  {
108
  this.prepare_ajax_data('get_meta_mapping_fields', 'json');
109
  this.ajax_data['file_head_meta']=JSON.stringify(wt_iew_file_head_remaining_meta);
 
110
  $('.meta_mapping_box_con[data-loaded="0"]').html('<div class="wt_iew_import_step_loader">'+wt_iew_basic_params.msgs.loading+'</div>');
111
  $.ajax({
112
- type: 'POST',
113
- url:wt_iew_basic_params.ajax_url,
114
- data:this.ajax_data,
115
- dataType:'json',
116
- success:function(data)
117
  {
118
  if(data.status==1)
119
  {
107
  {
108
  this.prepare_ajax_data('get_meta_mapping_fields', 'json');
109
  this.ajax_data['file_head_meta']=JSON.stringify(wt_iew_file_head_remaining_meta);
110
+ this.ajax_data['rerun_id']=this.rerun_id;
111
  $('.meta_mapping_box_con[data-loaded="0"]').html('<div class="wt_iew_import_step_loader">'+wt_iew_basic_params.msgs.loading+'</div>');
112
  $.ajax({
113
+ type: 'POST',
114
+ url:wt_iew_basic_params.ajax_url,
115
+ data:this.ajax_data,
116
+ dataType:'json',
117
+ success:function(data)
118
  {
119
  if(data.status==1)
120
  {
admin/modules/import/classes/class-import-ajax.php CHANGED
@@ -219,13 +219,14 @@ class Wt_Import_Export_For_Woo_Basic_Import_Ajax
219
  $this->selected_template_form_data=$this->import_obj->form_data;
220
  }
221
 
 
222
  /* This is the sample data from input file */
223
  $file_heading_meta_fields=(isset($_POST['file_head_meta']) ? json_decode(stripslashes($_POST['file_head_meta']), true) : array());
224
 
225
 
226
  $sample_data = array();
227
  include_once WT_P_IEW_PLUGIN_PATH . 'admin/classes/class-csvreader.php';
228
- $delimiter = (isset($_POST['delimiter']) ? ($_POST['delimiter']) : ','); //no sanitization
229
  $reader = new Wt_Import_Export_For_Woo_Basic_Csvreader($delimiter);
230
 
231
  /* take first two rows in csv and in xml takes column keys and a sample data */
@@ -663,9 +664,10 @@ class Wt_Import_Export_For_Woo_Basic_Import_Ajax
663
  if(isset($this->import_obj->allowed_import_file_type[$ext])) /* file type is in allowed list */
664
  {
665
 
666
- include_once WT_P_IEW_PLUGIN_PATH.'admin/classes/class-csvreader.php';
667
- $delimiter=(isset($_POST['delimiter']) ? ($_POST['delimiter']) : ','); //no sanitization
668
- $reader=new Wt_Import_Export_For_Woo_Basic_Csvreader($delimiter);
 
669
 
670
 
671
  /* take first two rows in csv and in xml takes column keys and a sample data */
219
  $this->selected_template_form_data=$this->import_obj->form_data;
220
  }
221
 
222
+ $delimit = isset( $this->selected_template_form_data['method_import_form_data']['wt_iew_delimiter'] ) ? $this->selected_template_form_data['method_import_form_data']['wt_iew_delimiter'] : ',';
223
  /* This is the sample data from input file */
224
  $file_heading_meta_fields=(isset($_POST['file_head_meta']) ? json_decode(stripslashes($_POST['file_head_meta']), true) : array());
225
 
226
 
227
  $sample_data = array();
228
  include_once WT_P_IEW_PLUGIN_PATH . 'admin/classes/class-csvreader.php';
229
+ $delimiter = isset($_POST['delimiter']) ? $_POST['delimiter'] : $delimit; //no sanitization
230
  $reader = new Wt_Import_Export_For_Woo_Basic_Csvreader($delimiter);
231
 
232
  /* take first two rows in csv and in xml takes column keys and a sample data */
664
  if(isset($this->import_obj->allowed_import_file_type[$ext])) /* file type is in allowed list */
665
  {
666
 
667
+ $delimit = isset( $this->selected_template_form_data['method_import_form_data']['wt_iew_delimiter'] ) ? $this->selected_template_form_data['method_import_form_data']['wt_iew_delimiter'] : ',';
668
+ include_once WT_P_IEW_PLUGIN_PATH.'admin/classes/class-csvreader.php';
669
+ $delimiter = isset($_POST['delimiter']) ? $_POST['delimiter'] : $delimit; //no sanitization
670
+ $reader = new Wt_Import_Export_For_Woo_Basic_Csvreader($delimiter);
671
 
672
 
673
  /* take first two rows in csv and in xml takes column keys and a sample data */
admin/modules/product/data/data-product-post-columns.php CHANGED
@@ -63,6 +63,7 @@ $post_columns = array(
63
  'images' => 'Images (featured and gallery)',
64
  "$file_path_header" => 'Downloadable file paths',
65
  'product_page_url' => 'Product page URL',
 
66
  //'taxonomies' => 'Taxonomies (cat/tags/shipping-class)',
67
  //'meta' => 'Meta (custom fields)',
68
  //'attributes' => 'Attributes',
63
  'images' => 'Images (featured and gallery)',
64
  "$file_path_header" => 'Downloadable file paths',
65
  'product_page_url' => 'Product page URL',
66
+ 'meta:total_sales' => 'Total sales count',
67
  //'taxonomies' => 'Taxonomies (cat/tags/shipping-class)',
68
  //'meta' => 'Meta (custom fields)',
69
  //'attributes' => 'Attributes',
includes/class-wf-prodimpexp-plugin-uninstall-feedback.php CHANGED
@@ -235,6 +235,12 @@ if (!class_exists('WT_ProdImpExp_Uninstall_Feedback')) :
235
  'type' => 'reviewhtml',
236
  'placeholder' => __('Have used it successfully and aint in need of it anymore', 'product-import-export-for-woo')
237
  ),
 
 
 
 
 
 
238
  array(
239
  'id' => 'could-not-understand',
240
  'text' => __('I couldn\'t understand how to make it work', 'product-import-export-for-woo'),
235
  'type' => 'reviewhtml',
236
  'placeholder' => __('Have used it successfully and aint in need of it anymore', 'product-import-export-for-woo')
237
  ),
238
+ array(
239
+ 'id' => 'temporary-deactivation',
240
+ 'text' => __('Temporary deactivation', 'product-import-export-for-woo'),
241
+ 'type' => '',
242
+ 'placeholder' => __('Temporary de-activation. Will re-activate later.', 'product-import-export-for-woo')
243
+ ),
244
  array(
245
  'id' => 'could-not-understand',
246
  'text' => __('I couldn\'t understand how to make it work', 'product-import-export-for-woo'),
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.2';
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.3';
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.2
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.6
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.2' );
50
 
51
  /**
52
  * The code that runs during plugin activation.
@@ -254,7 +254,7 @@ function wt_product_addon_basic_gopro_content() {
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>
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.3
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.7
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.3' );
50
 
51
  /**
52
  * The code that runs during plugin activation.
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 and import variable products, subscription products and custom product types'); ?></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>
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: 6.0
7
  Requires PHP: 5.6
8
- Stable tag: 2.2.2
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.6
60
 
61
  ###COMPATIBLE PLUGINS###
62
 
@@ -242,6 +242,10 @@ Yes, you can import grouped, affiliate/external products in addition to simple p
242
 
243
  == CHANGELOG ==
244
 
 
 
 
 
245
  = 2.2.2 2022-07-05 =
246
  * Enhancement: Export to CSV option to Bulk Action drop-down menu in WC Product listing page.
247
  * Enhancement: Import progress screen improvements.
@@ -611,7 +615,7 @@ Yes, you can import grouped, affiliate/external products in addition to simple p
611
 
612
  == Upgrade Notice ==
613
 
614
- = 2.2.2 =
615
- * Enhancement: Export to CSV option to Bulk Action drop-down menu in WC Product listing page.
616
- * Enhancement: Import progress screen improvements.
617
- * WooCommerce 6.6 Tested OK.
5
  Requires at least: 3.0.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 2.2.3
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.7
60
 
61
  ###COMPATIBLE PLUGINS###
62
 
242
 
243
  == CHANGELOG ==
244
 
245
+ = 2.2.3 2022-08-09 =
246
+ * Enhancement: Product - total sales count in export/import.
247
+ * Bugfix: Delimiter reset when using the re-run option from the History section.
248
+ * WooCommerce 6.7 Tested OK.
249
  = 2.2.2 2022-07-05 =
250
  * Enhancement: Export to CSV option to Bulk Action drop-down menu in WC Product listing page.
251
  * Enhancement: Import progress screen improvements.
615
 
616
  == Upgrade Notice ==
617
 
618
+ = 2.2.3 =
619
+ * Enhancement: Product - total sales count in export/import.
620
+ * Bugfix: Delimiter reset when using the re-run option from the History section.
621
+ * WooCommerce 6.7 Tested OK.