Order Export & Order Import for WooCommerce - Version 1.5.0

Version Description

  • Tweak: Status field made mandatory to import new orders.
  • WC 3.6.5 Tested OK.
Download this release

Release Info

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

Code changes from version 1.4.9 to 1.5.0

includes/importer/class-wf-orderimpexpcsv-order-import.php CHANGED
@@ -518,8 +518,14 @@ class WF_OrderImpExpCsv_Order_Import extends WP_Importer {
518
  }
519
  if (!$merging && $is_order_exist) {
520
  $usr_msg = 'Order with same ID already exists.';
521
- $this->add_import_result('skipped', __($usr_msg, 'order-import-export-for-woocommerce'), $order_id, $order_data['post_title'], $order_id);
522
- $this->hf_order_log_data_change('order-csv-import', sprintf(__('> “%s”' . $usr_msg, 'order-import-export-for-woocommerce'), esc_html($order_data['post_title'])), true);
 
 
 
 
 
 
523
  unset($post);
524
  return;
525
  } else {
518
  }
519
  if (!$merging && $is_order_exist) {
520
  $usr_msg = 'Order with same ID already exists.';
521
+ $this->add_import_result('skipped', __($usr_msg, 'order-import-export-for-woocommerce'), $order_id, isset($order_data['post_title']) ? $order_data['post_title'] : '', $order_id);
522
+ $this->hf_order_log_data_change('order-csv-import', sprintf(__('> “%s”' . $usr_msg, 'order-import-export-for-woocommerce'), esc_html(isset($order_data['post_title']) ? $order_data['post_title'] : '')), true);
523
+ unset($post);
524
+ return;
525
+ } elseif (!$is_order_exist && !isset($order_data['post_status'])) {
526
+ $usr_msg = 'Cannot insert order without order status.';
527
+ $this->add_import_result('skipped', __($usr_msg, 'order-import-export-for-woocommerce'), $order_id, isset($order_data['post_title']) ? $order_data['post_title'] : '', $order_id);
528
+ $this->hf_order_log_data_change('order-csv-import', sprintf(__('> “%s”' . $usr_msg, 'order-import-export-for-woocommerce'), esc_html(isset($order_data['post_title']) ? $order_data['post_title'] : '')), true);
529
  unset($post);
530
  return;
531
  } else {
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.4.9
10
  Text Domain: order-import-export-for-woocommerce
11
- WC tested up to: 3.6.4
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.4.9");
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.5.0
10
  Text Domain: order-import-export-for-woocommerce
11
+ WC tested up to: 3.6.5
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.5.0");
28
  }
29
 
30
  /**
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webtoffee
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: Order Export, Order Import, WooCommerce Export Orders , WooCommerce Import Orders , Export Orders, Import Orders , order, export, import, woocommerce, csv, coupon, coupon export, coupon import, woocommerce export coupon , woocommerce import coupon , export coupons, import coupons,
5
  Requires at least: 3.0.1
6
- Tested up to: 5.2
7
- Stable tag: 1.4.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -21,7 +21,7 @@ This is perfect tool if you are migrating an existing shop on a different eComme
21
  🔸 Import Coupons from CSV file.
22
  🔸 Export Subscription Orders to CSV file(Premium Feature).
23
  🔸 Import Subscription Orders from CSV file(Premium Feature).
24
- 🔸 Tested OK with WooCommerce 3.6.4
25
  🔸 Tested OK with PHP 7.3.5
26
 
27
  <blockquote>
@@ -115,6 +115,9 @@ By default, admin and store manager are given access to export orders from your
115
 
116
  == Changelog ==
117
 
 
 
 
118
  = 1.4.9 =
119
  * Bug fix: Refund,Coupon,Fee Items export import.
120
  = 1.4.8 =
@@ -248,5 +251,6 @@ By default, admin and store manager are given access to export orders from your
248
  * Export /Import WooCommerce Orders.
249
 
250
  == Upgrade Notice ==
251
- = 1.4.9 =
252
- * Bug fix: Refund,Coupon,Fee Items export import.
 
3
  Donate link: https://www.webtoffee.com/plugins/
4
  Tags: Order Export, Order Import, WooCommerce Export Orders , WooCommerce Import Orders , Export Orders, Import Orders , order, export, import, woocommerce, csv, coupon, coupon export, coupon import, woocommerce export coupon , woocommerce import coupon , export coupons, import coupons,
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.2.2
7
+ Stable tag: 1.5.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
21
  &#128312; Import Coupons from CSV file.
22
  &#128312; Export Subscription Orders to CSV file(Premium Feature).
23
  &#128312; Import Subscription Orders from CSV file(Premium Feature).
24
+ &#128312; Tested OK with WooCommerce 3.6.5
25
  &#128312; Tested OK with PHP 7.3.5
26
 
27
  <blockquote>
115
 
116
  == Changelog ==
117
 
118
+ = 1.5.0 =
119
+ * Tweak: Status field made mandatory to import new orders.
120
+ * WC 3.6.5 Tested OK.
121
  = 1.4.9 =
122
  * Bug fix: Refund,Coupon,Fee Items export import.
123
  = 1.4.8 =
251
  * Export /Import WooCommerce Orders.
252
 
253
  == Upgrade Notice ==
254
+ = 1.5.0 =
255
+ * Tweak: Status field made mandatory to import new orders.
256
+ * WC 3.6.5 Tested OK.