Order Export & Order Import for WooCommerce - Version 2.2.4

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 Order Export & Order Import for WooCommerce
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

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,11 +292,24 @@ 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
-
298
  /* taking advanced fields from post type modules */
299
  $advanced_screen_fields=apply_filters('wt_iew_exporter_alter_advanced_fields_basic', $advanced_screen_fields, $this->to_export, $advanced_form_data);
 
300
  return $advanced_screen_fields;
301
  }
302
 
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
+
310
  /* taking advanced fields from post type modules */
311
  $advanced_screen_fields=apply_filters('wt_iew_exporter_alter_advanced_fields_basic', $advanced_screen_fields, $this->to_export, $advanced_form_data);
312
+
313
  return $advanced_screen_fields;
314
  }
315
 
admin/modules/order/import/import.php CHANGED
@@ -1505,8 +1505,12 @@ class Wt_Import_Export_For_Woo_Basic_Order_Import {
1505
  $order->set_address($data['shipping'], 'shipping');
1506
 
1507
  $order->set_prices_include_tax( 'yes' === get_option( 'woocommerce_prices_include_tax' ) );
1508
-
1509
- $order->add_meta_data( '_order_key', apply_filters('woocommerce_generate_order_key', uniqid('order_')) );
 
 
 
 
1510
 
1511
 
1512
  // handle order items
1505
  $order->set_address($data['shipping'], 'shipping');
1506
 
1507
  $order->set_prices_include_tax( 'yes' === get_option( 'woocommerce_prices_include_tax' ) );
1508
+
1509
+ if( !empty( $data['order_key']) ){
1510
+ $order->set_order_key( apply_filters( 'woocommerce_generate_order_key', $data['order_key'] ) );
1511
+ }else{
1512
+ $order->set_order_key( apply_filters( 'woocommerce_generate_order_key', uniqid( 'wc_order_' ) ) );
1513
+ }
1514
 
1515
 
1516
  // handle order items
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.3';
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.4';
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.3
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.4
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.3' );
52
 
53
  /**
54
  * The code that runs during plugin activation.
@@ -262,12 +262,16 @@ function wt_order_addon_basic_gopro_content() {
262
  ?>
263
  <div class="wt-ier-coupon wt-ier-order wt-ier-gopro-cta wt-ierpro-features" style="display: none;">
264
  <ul class="ticked-list wt-ierpro-allfeat">
265
- <li><?php _e('Supports CSV/XML file formats.'); ?></li>
266
- <li><?php _e('Export and import subscription orders'); ?></li>
267
- <li><?php _e('Import and export custom fields and hidden metadata.'); ?></li>
268
- <li><?php _e('Run scheduled exports via FTP/SFTP.'); ?></li>
269
- <li><?php _e('Run scheduled imports via URL/FTP/SFTP.'); ?></li>
270
- <li><?php _e('Tested compatibility with various third-party plugins.'); ?></li>
 
 
 
 
271
  </ul>
272
  <div class="wt-ierpro-btn-wrapper">
273
  <a href="<?php echo "https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Order_Import_Export&utm_content=".WT_O_IEW_VERSION; ?>" target="_blank" class="wt-ierpro-outline-btn"><?php _e('UPGRADE TO PREMIUM'); ?></a>
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.4
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.5
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.4' );
52
 
53
  /**
54
  * The code that runs during plugin activation.
262
  ?>
263
  <div class="wt-ier-coupon wt-ier-order wt-ier-gopro-cta wt-ierpro-features" style="display: none;">
264
  <ul class="ticked-list wt-ierpro-allfeat">
265
+ <li><?php _e('All free version features'); ?></li>
266
+ <li><?php _e('Import and export subscription orders'); ?></li>
267
+ <li><?php _e('XML file type support'); ?></li>
268
+ <li><?php _e('Import and export custom fields and hidden metadata'); ?></li>
269
+ <li><?php _e('Run scheduled automatic import and export'); ?></li>
270
+ <li><?php _e('Import from URL, FTP/SFTP'); ?></li>
271
+ <li><?php _e('Export to FTP/SFTP'); ?></li>
272
+ <li><?php _e('Option to email customers on order status change'); ?></li>
273
+ <li><?php _e('Option to create users on order import'); ?></li>
274
+ <li><?php _e('Tested compatibility with major third-party plugins.'); ?></li>
275
  </ul>
276
  <div class="wt-ierpro-btn-wrapper">
277
  <a href="<?php echo "https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Order_Import_Export&utm_content=".WT_O_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: order export, woocommerce, order, export, csv, order import, woocommerce export orders, woocommerce import orders, import, coupon export, coupon import, coupon
5
  Requires at least: 3.0.1
6
- Tested up to: 5.9
7
  Requires PHP: 5.6
8
- Stable tag: 2.2.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -28,8 +28,8 @@ 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.4
32
- &#128312; Tested OK with WP 5.9
33
  &#128312; Tested OK with PHP 8.0
34
 
35
  Additional features that will help you in the CSV export and import process:
@@ -182,11 +182,11 @@ Yes, the order IDs will be retained unless there is another post type or order o
182
 
183
  = Issue importing orders due to invalid date format? =
184
 
185
- To import orders in dd/mm/yy date format, you can use the {order_date@d/m/Y} expression in the mapping field for order date.
186
 
187
- = Does this plugin import orders to an XML file? =
188
 
189
- No, this is a premium feature.
190
 
191
  = Does this plugin support multisite? =
192
 
@@ -228,6 +228,10 @@ Yes.
228
 
229
  == Changelog ==
230
 
 
 
 
 
231
  = 2.2.3 2022-05-09 =
232
  * WC 6.4 Tested OK.
233
  * Enhancement: Bulk delete import logs.
@@ -502,6 +506,7 @@ Yes.
502
 
503
  == Upgrade Notice ==
504
 
505
- = 2.2.3 =
506
- * WC 6.4 Tested OK.
507
- * Enhancement: Bulk delete import logs.
 
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: order export, woocommerce, order, export, csv, order import, woocommerce export orders, woocommerce import orders, import, coupon export, coupon import, coupon
5
  Requires at least: 3.0.1
6
+ Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 2.2.4
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.5
32
+ &#128312; Tested OK with WordPress 6.0
33
  &#128312; Tested OK with PHP 8.0
34
 
35
  Additional features that will help you in the CSV export and import process:
182
 
183
  = Issue importing orders due to invalid date format? =
184
 
185
+ To import orders in d/m/y date format, you can use the {order_datewt_iew@d/m/Y} expression in the mapping field for order date.
186
 
187
+ = Does this plugin import orders from an XML file? =
188
 
189
+ No, this is a <a rel="nofollow" href="https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/">premium</a> feature.
190
 
191
  = Does this plugin support multisite? =
192
 
228
 
229
  == Changelog ==
230
 
231
+ = 2.2.4 2022-05-26 =
232
+ * WordPress 6.0 Tested OK.
233
+ * WooCommerce 6.5 Tested OK.
234
+ * Enhancement: Option to choose delimiter when exporting.
235
  = 2.2.3 2022-05-09 =
236
  * WC 6.4 Tested OK.
237
  * Enhancement: Bulk delete import logs.
506
 
507
  == Upgrade Notice ==
508
 
509
+ = 2.2.4 =
510
+ * WordPress 6.0 Tested OK.
511
+ * WooCommerce 6.5 Tested OK.
512
+ * Enhancement: Option to choose delimiter when exporting.