Order Export & Order Import for WooCommerce - Version 2.2.6

Version Description

2022-08-08 = * WooCommerce 6.7 Tested OK. * Bugfix: Orders search by billing/shipping address not working for imported orders. * Bugfix: Delimiter reset when using the re-run option from the History section.

Download this release

Release Info

Developer webtoffee
Plugin Icon 128x128 Order Export & Order Import for WooCommerce
Version 2.2.6
Comparing to
See all releases

Code changes from version 2.2.5 to 2.2.6

admin/modules/export/assets/js/main.js CHANGED
@@ -632,6 +632,10 @@ var wt_iew_basic_export=(function( $ ) {
632
  }
633
  this.to_export_title=$('[name="wt_iew_export_post_type"] option:selected').text();
634
  }
 
 
 
 
635
  $('.wt_iew_step_head_post_type_name').html(this.to_export_title);
636
  $('.wt-ierpro-blue-btn').attr("href", wt_iew_basic_params.pro_plugins[this.to_export]['url']);
637
  $('.wt-ier-product-name').html(wt_iew_basic_params.pro_plugins[this.to_export]['name']);
632
  }
633
  this.to_export_title=$('[name="wt_iew_export_post_type"] option:selected').text();
634
  }
635
+
636
+ if(this.to_export_title.includes('Product'))
637
+ $('#product-type-message').show();
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']);
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,14 +219,15 @@ class Wt_Import_Export_For_Woo_Basic_Import_Ajax
219
  {
220
  $this->selected_template_form_data=$this->import_obj->form_data;
221
  }
222
-
 
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_O_IEW_PLUGIN_PATH . 'admin/classes/class-csvreader.php';
229
- $delimiter = (isset($_POST['delimiter']) ? ($_POST['delimiter']) : ','); //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 */
@@ -236,7 +237,7 @@ class Wt_Import_Export_For_Woo_Basic_Import_Ajax
236
  $sample_data = $reader->get_sample_data($file_path, true);
237
  }
238
 
239
- //taking current page form data
240
  $meta_step_form_data=(isset($this->selected_template_form_data['meta_step_form_data']) ? $this->selected_template_form_data['meta_step_form_data'] : array());
241
 
242
  /* formdata/template data of fields in mapping page */
@@ -662,17 +663,13 @@ class Wt_Import_Export_For_Woo_Basic_Import_Ajax
662
  $ext= strtolower(end($ext_arr));
663
  if(isset($this->import_obj->allowed_import_file_type[$ext])) /* file type is in allowed list */
664
  {
665
- // if($ext=='xml')
666
- // {
667
- // include_once WT_O_IEW_PLUGIN_PATH.'admin/classes/class-xmlreader.php';
668
- // $reader=new Wt_Import_Export_For_Woo_Basic_Xmlreader();
669
- // }else /* csv */
670
- // {
671
- include_once WT_O_IEW_PLUGIN_PATH.'admin/classes/class-csvreader.php';
672
- $delimiter=(isset($_POST['delimiter']) ? ($_POST['delimiter']) : ','); //no sanitization
673
- $reader=new Wt_Import_Export_For_Woo_Basic_Csvreader($delimiter);
674
- // }
675
-
676
  /* take first two rows in csv and in xml takes column keys and a sample data */
677
  $sample_data=$reader->get_sample_data($file_path, true);
678
 
219
  {
220
  $this->selected_template_form_data=$this->import_obj->form_data;
221
  }
222
+
223
+ $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'] : ',';
224
  /* This is the sample data from input file */
225
  $file_heading_meta_fields=(isset($_POST['file_head_meta']) ? json_decode(stripslashes($_POST['file_head_meta']), true) : array());
 
226
 
227
  $sample_data = array();
228
  include_once WT_O_IEW_PLUGIN_PATH . 'admin/classes/class-csvreader.php';
229
+ $delimiter = (isset($_POST['delimiter']) ? ($_POST['delimiter']) : $delimit); //no sanitization
230
+
231
  $reader = new Wt_Import_Export_For_Woo_Basic_Csvreader($delimiter);
232
 
233
  /* take first two rows in csv and in xml takes column keys and a sample data */
237
  $sample_data = $reader->get_sample_data($file_path, true);
238
  }
239
 
240
+ //taking current page form data
241
  $meta_step_form_data=(isset($this->selected_template_form_data['meta_step_form_data']) ? $this->selected_template_form_data['meta_step_form_data'] : array());
242
 
243
  /* formdata/template data of fields in mapping page */
663
  $ext= strtolower(end($ext_arr));
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
+
669
+ include_once WT_O_IEW_PLUGIN_PATH.'admin/classes/class-csvreader.php';
670
+ $delimiter= isset( $_POST['delimiter'] ) ? $_POST['delimiter'] : $delimit; //no sanitization
671
+ $reader=new Wt_Import_Export_For_Woo_Basic_Csvreader($delimiter);
672
+
 
 
 
 
673
  /* take first two rows in csv and in xml takes column keys and a sample data */
674
  $sample_data=$reader->get_sample_data($file_path, true);
675
 
admin/modules/order/import/import.php CHANGED
@@ -1532,6 +1532,10 @@ class Wt_Import_Export_For_Woo_Basic_Order_Import {
1532
  if(isset($data['shipping']))
1533
  $order->set_address($data['shipping'], 'shipping');
1534
 
 
 
 
 
1535
  $order->set_prices_include_tax( 'yes' === get_option( 'woocommerce_prices_include_tax' ) );
1536
 
1537
  if( !empty( $data['order_key']) ){
1532
  if(isset($data['shipping']))
1533
  $order->set_address($data['shipping'], 'shipping');
1534
 
1535
+ // Store the concatenated version of billing/shipping address to make searches faster.
1536
+ update_post_meta( $order->get_id(), '_billing_address_index', implode( ' ', $order->get_address( 'billing' ) ) );
1537
+ update_post_meta( $order->get_id(), '_shipping_address_index', implode( ' ', $order->get_address( 'shipping' ) ) );
1538
+
1539
  $order->set_prices_include_tax( 'yes' === get_option( 'woocommerce_prices_include_tax' ) );
1540
 
1541
  if( !empty( $data['order_key']) ){
includes/class-wf-orderimpexp-plugin-uninstall-feedback.php CHANGED
@@ -20,10 +20,16 @@ if (!class_exists('WF_OrderImpExp_Uninstall_Feedback')) :
20
  $reasons = array(
21
  array(
22
  'id' => 'used-it',
23
- 'text' => __('Used it successfully. Don\'t need anymore.', 'wf_csv_import_export'),
24
  'type' => 'reviewhtml',
25
- 'placeholder' => __('Have used it successfully and aint in need of it anymore', 'wf_csv_import_export')
26
  ),
 
 
 
 
 
 
27
  array(
28
  'id' => 'could-not-understand',
29
  'text' => __('I couldn\'t understand how to make it work', 'order-import-export-for-woocommerce'),
20
  $reasons = array(
21
  array(
22
  'id' => 'used-it',
23
+ 'text' => __('Used it successfully. Don\'t need anymore.', 'order-import-export-for-woocommerce'),
24
  'type' => 'reviewhtml',
25
+ 'placeholder' => __('Have used it successfully and aint in need of it anymore', 'order-import-export-for-woocommerce')
26
  ),
27
+ array(
28
+ 'id' => 'temporary-deactivation',
29
+ 'text' => __('Temporary deactivation', 'order-import-export-for-woocommerce'),
30
+ 'type' => '',
31
+ 'placeholder' => __('Temporary de-activation. Will re-activate later.', 'order-import-export-for-woocommerce')
32
+ ),
33
  array(
34
  'id' => 'could-not-understand',
35
  'text' => __('I couldn\'t understand how to make it work', 'order-import-export-for-woocommerce'),
includes/class-wt-import-export-for-woo.php CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
80
  if ( defined( 'WT_O_IEW_VERSION' ) ) {
81
  $this->version = WT_O_IEW_VERSION;
82
  } else {
83
- $this->version = '2.2.5';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
80
  if ( defined( 'WT_O_IEW_VERSION' ) ) {
81
  $this->version = WT_O_IEW_VERSION;
82
  } else {
83
+ $this->version = '2.2.6';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
order-import-export-for-woocommerce.php CHANGED
@@ -6,12 +6,12 @@ Plugin URI: https://wordpress.org/plugins/order-import-export-for-woocommerce/
6
  Description: Export and Import Order detail including line items, From and To your WooCommerce Store.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/woocommerce-order-coupon-subscription-export-import/
9
- Version: 2.2.5
10
  Text Domain: order-import-export-for-woocommerce
11
  Domain Path: /languages
12
  Requires at least: 3.0
13
  Requires PHP: 5.6
14
- WC tested up to: 6.6
15
  License: GPLv3
16
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
17
  */
@@ -48,7 +48,7 @@ if ( !defined( 'WT_IEW_DEBUG_BASIC_TROUBLESHOOT' ) ) {
48
  * Start at version 1.0.0 and use SemVer - https://semver.org
49
  * Rename this for your plugin and update it as you release new versions.
50
  */
51
- define( 'WT_O_IEW_VERSION', '2.2.5' );
52
 
53
  /**
54
  * The code that runs during plugin activation.
6
  Description: Export and Import Order detail including line items, From and To your WooCommerce Store.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/woocommerce-order-coupon-subscription-export-import/
9
+ Version: 2.2.6
10
  Text Domain: order-import-export-for-woocommerce
11
  Domain Path: /languages
12
  Requires at least: 3.0
13
  Requires PHP: 5.6
14
+ WC tested up to: 6.7
15
  License: GPLv3
16
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
17
  */
48
  * Start at version 1.0.0 and use SemVer - https://semver.org
49
  * Rename this for your plugin and update it as you release new versions.
50
  */
51
+ define( 'WT_O_IEW_VERSION', '2.2.6' );
52
 
53
  /**
54
  * The code that runs during plugin activation.
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: order export, woocommerce, order, export, csv, order import, woocommerce e
5
  Requires at least: 3.0.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
- Stable tag: 2.2.5
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -28,7 +28,7 @@ The following are functionalities offered by the basic version of the plugin.
28
  &#128312; Bulk update WooCommerce orders and coupons.
29
  &#128312; Compatible with YITH WooCommerce Order Tracking plugin.
30
  &#128312; Supports various export filters (order status, product, coupon, customer, date range)
31
- &#128312; Tested OK with WooCommerce 6.6
32
  &#128312; Tested OK with WordPress 6.0
33
  &#128312; Tested OK with PHP 8.0
34
 
@@ -229,6 +229,10 @@ Yes.
229
 
230
  == Changelog ==
231
 
 
 
 
 
232
  = 2.2.5 2022-07-04 =
233
  * WooCommerce 6.6 Tested OK.
234
  * Enhancement: Export to CSV option to Bulk Action drop-down menu in WC Orders listing page.
@@ -511,7 +515,7 @@ Yes.
511
 
512
  == Upgrade Notice ==
513
 
514
- = 2.2.5 =
515
- * WooCommerce 6.6 Tested OK.
516
- * Enhancement: Export to CSV option to Bulk Action drop-down menu in WC Orders listing page.
517
- * Enhancement: Import progress screen improvements.
5
  Requires at least: 3.0.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 2.2.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
28
  &#128312; Bulk update WooCommerce orders and coupons.
29
  &#128312; Compatible with YITH WooCommerce Order Tracking plugin.
30
  &#128312; Supports various export filters (order status, product, coupon, customer, date range)
31
+ &#128312; Tested OK with WooCommerce 6.7
32
  &#128312; Tested OK with WordPress 6.0
33
  &#128312; Tested OK with PHP 8.0
34
 
229
 
230
  == Changelog ==
231
 
232
+ = 2.2.6 2022-08-08 =
233
+ * WooCommerce 6.7 Tested OK.
234
+ * Bugfix: Orders search by billing/shipping address not working for imported orders.
235
+ * Bugfix: Delimiter reset when using the re-run option from the History section.
236
  = 2.2.5 2022-07-04 =
237
  * WooCommerce 6.6 Tested OK.
238
  * Enhancement: Export to CSV option to Bulk Action drop-down menu in WC Orders listing page.
515
 
516
  == Upgrade Notice ==
517
 
518
+ = 2.2.6 =
519
+ * WooCommerce 6.7 Tested OK.
520
+ * Bugfix: Orders search by billing/shipping address not working for imported orders.
521
+ * Bugfix: Delimiter reset when using the re-run option from the History section.