Order Export & Order Import for WooCommerce - Version 1.0.1

Version Description

  • Minor modification.
Download this release

Release Info

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

Code changes from version 1.0.0 to 1.0.1

includes/importer/class-wf-csv-parser.php CHANGED
@@ -339,15 +339,19 @@ class WF_CSV_Parser {
339
  }
340
 
341
  if ( $shipping_method ) {
 
342
  $postmeta[] = array( 'key' => '_shipping_method', 'value' => $shipping_method );
343
  $postmeta[] = array( 'key' => '_shipping_method_title', 'value' => $available_methods[ $shipping_method ]->title );
344
  } elseif ( $csv_export_file && $value ) {
 
345
  $postmeta[] = array( 'key' => '_shipping_method', 'value' => '' );
346
  $postmeta[] = array( 'key' => '_shipping_method_title', 'value' => $value );
347
  } elseif ( $value ) {
 
348
  $postmeta[] = array( 'key' => '_shipping_method', 'value' => $value );
349
  $postmeta[] = array( 'key' => '_shipping_method_title', 'value' => '' );
350
  } else {
 
351
  $postmeta[] = array( 'key' => '_shipping_method', 'value' => '' );
352
  $postmeta[] = array( 'key' => '_shipping_method_title', 'value' => '' );
353
  }
@@ -758,6 +762,7 @@ class WF_CSV_Parser {
758
  // add the order tax totals to the order meta
759
  $postmeta[] = array( 'key' => '_order_tax', 'value' => number_format( (float) $order_tax, 2, '.', '' ) );
760
  $postmeta[] = array( 'key' => '_order_shipping_tax', 'value' => number_format( (float) $order_shipping_tax, 2, '.', '' ) );
 
761
 
762
  if ( $order ) {
763
  $order['postmeta'] = $postmeta;
339
  }
340
 
341
  if ( $shipping_method ) {
342
+ //known shipping method found
343
  $postmeta[] = array( 'key' => '_shipping_method', 'value' => $shipping_method );
344
  $postmeta[] = array( 'key' => '_shipping_method_title', 'value' => $available_methods[ $shipping_method ]->title );
345
  } elseif ( $csv_export_file && $value ) {
346
+ //Order CSV Export format, shipping method title with no corresponding shipping method type found, so just use the title
347
  $postmeta[] = array( 'key' => '_shipping_method', 'value' => '' );
348
  $postmeta[] = array( 'key' => '_shipping_method_title', 'value' => $value );
349
  } elseif ( $value ) {
350
+ //Shipping method but no title
351
  $postmeta[] = array( 'key' => '_shipping_method', 'value' => $value );
352
  $postmeta[] = array( 'key' => '_shipping_method_title', 'value' => '' );
353
  } else {
354
+ //none
355
  $postmeta[] = array( 'key' => '_shipping_method', 'value' => '' );
356
  $postmeta[] = array( 'key' => '_shipping_method_title', 'value' => '' );
357
  }
762
  // add the order tax totals to the order meta
763
  $postmeta[] = array( 'key' => '_order_tax', 'value' => number_format( (float) $order_tax, 2, '.', '' ) );
764
  $postmeta[] = array( 'key' => '_order_shipping_tax', 'value' => number_format( (float) $order_shipping_tax, 2, '.', '' ) );
765
+
766
 
767
  if ( $order ) {
768
  $order['postmeta'] = $postmeta;
order-import-export.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  /*
3
  *
4
- Plugin Name: Woocommerce Order Import Export (BASIC)
5
  Plugin URI: http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/
6
- Description: Import and Export Order detail including line items, From and To your WooCommerce Store.
7
  Author: HikeForce
8
  Author URI: http://www.xadapter.com/vendor/hikeforce/
9
- Version: 1.0.0
10
  Text Domain: wf_order_import_export
11
  */
12
 
1
  <?php
2
  /*
3
  *
4
+ Plugin Name: Woocommerce Order Export Import(BASIC)
5
  Plugin URI: http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/
6
+ Description: Export and Import Order detail including line items, From and To your WooCommerce Store.
7
  Author: HikeForce
8
  Author URI: http://www.xadapter.com/vendor/hikeforce/
9
+ Version: 1.0.1
10
  Text Domain: wf_order_import_export
11
  */
12
 
readme.txt CHANGED
@@ -1,20 +1,20 @@
1
- === Order Import Export for WooCommerce===
2
  Contributors: hikeforce
3
  Donate link:
4
- Tags: woocommerce import orders, woocommerce export orders, woocommerce export import orders, export woocommerce orders with line item details
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5
7
- Stable tag: 1.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Order Import Export Plugin for WooCommerce
12
 
13
  == Description ==
14
 
15
  = Introduction =
16
 
17
- WooCommerce Order Import Export Plugin helps you to easily export and import orders in your store. This plugin lets you import/export all orders with line item details. It is super simple!
18
 
19
  <ul>
20
  <li>Export Orders into a CSV file.</li>
@@ -24,7 +24,7 @@ WooCommerce Order Import Export Plugin helps you to easily export and import ord
24
 
25
  = How does it work? =
26
 
27
- The WooCommerce Order Import Export Plugin takes CSV (Comma-Separated Values) file as input. You must create a CSV file and enter the order details in a structured format as explained in the tutorial. This is to match each field of CSV file to the field of a particular order that otherwise Admin need to input manually.
28
 
29
  You can create the CSV from scratch or you can export the order to get the format of CSV. You can use a spreadsheet program, such as Excel, or Google Spreadsheets for creating and modifying the CSV file. Save this file with extension .CSV. After entering all details about orders in spreadsheet, you can import order to your online store. With this plugin, you can also export and download order details as a CSV file.
30
 
@@ -32,7 +32,7 @@ You can create the CSV from scratch or you can export the order to get the forma
32
  <blockquote>
33
 
34
  = Premium version Features =
35
- Order Import Export Plugin for WooCommerce
36
 
37
  <ul>
38
  <li>Export Orders into a CSV file with different criteria.</li>
@@ -44,7 +44,7 @@ Order Import Export Plugin for WooCommerce
44
  <li>Excellent Support for setting it up!</li>
45
  </ul>
46
 
47
- Please visit <a rel="nofollow" href="http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/">Order Import Export Plugin for WooCommerce</a> for more details
48
 
49
  </blockquote>
50
 
@@ -74,9 +74,13 @@ Yes. You can import or export order line item details.
74
  3. Exported sample order Screen
75
 
76
  == Changelog ==
 
 
77
  = 1.0.0 =
78
- * Import /Export Woocommerce Orders.
79
 
80
  == Upgrade Notice ==
 
 
81
  = 1.0.0 =
82
- * Import /Export Woocommerce Orders.
1
+ === Order Export Import for WooCommerce ===
2
  Contributors: hikeforce
3
  Donate link:
4
+ Tags: woocommerce export orders, woocommerce import orders, woocommerce export import orders, export woocommerce orders with line item details
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5
7
+ Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Order Export Import Plugin for WooCommerce
12
 
13
  == Description ==
14
 
15
  = Introduction =
16
 
17
+ WooCommerce Order Export Import Plugin helps you to easily export and import orders in your store. This plugin lets you import/export all orders with line item details. It is super simple!
18
 
19
  <ul>
20
  <li>Export Orders into a CSV file.</li>
24
 
25
  = How does it work? =
26
 
27
+ The WooCommerce Order Export Import Plugin takes CSV (Comma-Separated Values) file as input. You must create a CSV file and enter the order details in a structured format as explained in the tutorial. This is to match each field of CSV file to the field of a particular order that otherwise Admin need to input manually.
28
 
29
  You can create the CSV from scratch or you can export the order to get the format of CSV. You can use a spreadsheet program, such as Excel, or Google Spreadsheets for creating and modifying the CSV file. Save this file with extension .CSV. After entering all details about orders in spreadsheet, you can import order to your online store. With this plugin, you can also export and download order details as a CSV file.
30
 
32
  <blockquote>
33
 
34
  = Premium version Features =
35
+ Order Export Import Plugin for WooCommerce
36
 
37
  <ul>
38
  <li>Export Orders into a CSV file with different criteria.</li>
44
  <li>Excellent Support for setting it up!</li>
45
  </ul>
46
 
47
+ Please visit <a rel="nofollow" href="http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/">Order Export Import Plugin for WooCommerce</a> for more details
48
 
49
  </blockquote>
50
 
74
  3. Exported sample order Screen
75
 
76
  == Changelog ==
77
+ = 1.0.1 =
78
+ * Minor modification.
79
  = 1.0.0 =
80
+ * Export /Import WooCommerce Orders.
81
 
82
  == Upgrade Notice ==
83
+ = 1.0.1 =
84
+ * Minor modification.
85
  = 1.0.0 =
86
+ * Export /Import WooCommerce Orders.