Order Export & Order Import for WooCommerce - Version 1.6.6

Version Description

  • [Improvement] import date format.
  • Tested OK with WC 4.2.0 and WP 5.4.2
Download this release

Release Info

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

Code changes from version 1.6.5 to 1.6.6

includes/importer/class-wf-csv-parser.php CHANGED
@@ -260,6 +260,15 @@ class WF_CSV_Parser {
260
  }
261
  }
262
  if (!empty($item['order_date'])){
 
 
 
 
 
 
 
 
 
263
  $item['date'] = $item['order_date'];
264
  } elseif (isset($item['order_date'])) {
265
  $item['date'] = time();
260
  }
261
  }
262
  if (!empty($item['order_date'])){
263
+ $item['order_date'] = apply_filters('wt_change_date_format_befor_import', $item['order_date']);
264
+ if((get_option('date_format') == 'd/m/Y') && strstr($item['order_date'], '/')) {
265
+ $date_arr = explode(" ", trim($item['order_date']));
266
+ if(count($date_arr) <= 1){
267
+ $item['order_date'] = $item['order_date'].' 00:00:00';
268
+ }
269
+ $date = DateTime::createFromFormat('d/m/Y H:i:s', $item['order_date']);
270
+ $item['order_date'] = $date->format('Y-m-d H:i:s');
271
+ }
272
  $item['date'] = $item['order_date'];
273
  } elseif (isset($item['order_date'])) {
274
  $item['date'] = time();
order-import-export-for-woocommerce.php CHANGED
@@ -6,9 +6,9 @@ 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: 1.6.5
10
  Text Domain: order-import-export-for-woocommerce
11
- WC tested up to: 4.1.0
12
  License: GPLv3
13
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
14
  */
@@ -24,7 +24,7 @@ define("WF_CPN_IMP_EXP_ID", "wf_cpn_imp_exp");
24
  define("wf_coupon_csv_im_ex", "wf_coupon_csv_im_ex");
25
 
26
  if (!defined('WF_ORDERIMPEXP_CURRENT_VERSION')) {
27
- define("WF_ORDERIMPEXP_CURRENT_VERSION", "1.6.5");
28
  }
29
 
30
  /**
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: 1.6.6
10
  Text Domain: order-import-export-for-woocommerce
11
+ WC tested up to: 4.2.0
12
  License: GPLv3
13
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
14
  */
24
  define("wf_coupon_csv_im_ex", "wf_coupon_csv_im_ex");
25
 
26
  if (!defined('WF_ORDERIMPEXP_CURRENT_VERSION')) {
27
+ define("WF_ORDERIMPEXP_CURRENT_VERSION", "1.6.6");
28
  }
29
 
30
  /**
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: order export, order import, woocommerce export orders, woocommerce import
5
  Requires at least: 3.0.1
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
- Stable tag: 1.6.5
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -22,7 +22,7 @@ This is a perfect tool if you are migrating an existing shop on a different eCom
22
  &#128312; Import Coupons from CSV file.
23
  &#128312; Export Subscription Orders to CSV file(Premium Feature).
24
  &#128312; Import Subscription Orders from CSV file(Premium Feature).
25
- &#128312; Tested OK with WooCommerce 4.1.0
26
  &#128312; Tested OK with PHP 7.3.5
27
 
28
  <blockquote>
@@ -118,6 +118,9 @@ By default, admin and store manager are given access to export orders from your
118
 
119
  == Changelog ==
120
 
 
 
 
121
  = 1.6.5 =
122
  * [Improvement] line item tax import and export.
123
  * Tested OK with WC 4.1.0 and WP 5.4.1
@@ -293,6 +296,6 @@ By default, admin and store manager are given access to export orders from your
293
 
294
  == Upgrade Notice ==
295
 
296
- = 1.6.5 =
297
- * [Improvement] line item tax import and export.
298
- * Tested OK with WC 4.1.0 and WP 5.4.1
5
  Requires at least: 3.0.1
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 1.6.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
22
  &#128312; Import Coupons from CSV file.
23
  &#128312; Export Subscription Orders to CSV file(Premium Feature).
24
  &#128312; Import Subscription Orders from CSV file(Premium Feature).
25
+ &#128312; Tested OK with WooCommerce 4.2.0
26
  &#128312; Tested OK with PHP 7.3.5
27
 
28
  <blockquote>
118
 
119
  == Changelog ==
120
 
121
+ = 1.6.6 =
122
+ * [Improvement] import date format.
123
+ * Tested OK with WC 4.2.0 and WP 5.4.2
124
  = 1.6.5 =
125
  * [Improvement] line item tax import and export.
126
  * Tested OK with WC 4.1.0 and WP 5.4.1
296
 
297
  == Upgrade Notice ==
298
 
299
+ = 1.6.6 =
300
+ * [Improvement] import date format.
301
+ * Tested OK with WC 4.2.0 and WP 5.4.2