Order Export & Order Import for WooCommerce - Version 1.0.8

Version Description

  • Order line items linking improvements.
Download this release

Release Info

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

Code changes from version 1.0.7 to 1.0.8

Order_Sample.csv CHANGED
@@ -1,4 +1,4 @@
1
- order_id,order_number,order_date,status,shipping_total,shipping_tax_total,fee_total,fee_tax_total,tax_total,cart_discount,order_discount,discount_total,order_total,refunded_total,order_currency,payment_method,shipping_method,customer_id,billing_first_name,billing_last_name,billing_company,billing_email,billing_phone,billing_address_1,billing_address_2,billing_postcode,billing_city,billing_state,billing_country,shipping_first_name,shipping_last_name,shipping_company,shipping_address_1,shipping_address_2,shipping_postcode,shipping_city,shipping_state,shipping_country,customer_note,shipping_items,fee_items,tax_items,coupon_items,order_notes,download_permissions,line_item_1,line_item_2,line_item_3
2
- 737,737,6/10/2016 5:56,processing,33.8,1.69,0,0,1.69,0,0,0,135.49,0,USD,cod,2nd Day Air (UPS),1,Sam,Jerry,MEGASYSTEMS INC,info@wooforce.com,8088379844,SUITE 5A-120,799 E DRAGRAM,90001,San Francisco,CA,US,Sam,Jerry,MEGASYSTEMS INC,SUITE 5A-120,799 E DRAGRAM,90001,San Francisco,CA,US,,method:2nd Day Air (UPS)|total:33.80,,code:US-V.A.T-1|total:1.69,,Payment to be made upon delivery. Order status changed from Pending Payment to Processing.,1,name:Red Hat|sku:003|quantity:1|total:100.00|refunded:0.00|meta:|tax:0.00,,
3
- 736,736,6/9/2016 14:15,processing,213.28,10.66,0,0,10.66,3,3,3,532.94,0,USD,cod,Ground (UPS),1,Sam,Jerry,MEGASYSTEMS INC,info@wooforce.com,8088379844,SUITE 5A-120,799 E DRAGRAM,90001,San Francisco,CA,US,Sam,Jerry,MEGASYSTEMS INC,SUITE 5A-120,799 E DRAGRAM,90001,San Francisco,CA,US,,method:Ground (UPS)|total:213.28,,code:US-V.A.T-1|total:10.66,code:7272ll|description:|amount:3.00,Payment to be made upon delivery. Order status changed from Pending Payment to Processing.,1,name:Men's Cotton T-Shirt|sku:B11V2|quantity:1|total:11.88|refunded:0.00|meta:color=Red|tax:0.00,name:Gift5|sku:006|quantity:1|total:198.08|refunded:0.00|meta:|tax:0.00,name:Red Hat|sku:003|quantity:1|total:99.04|refunded:0.00|meta:|tax:0.00
4
- 519,519,4/22/2016 7:40,processing,24.45,0,0,0,0,0,0,0,274.45,0,USD,cod,FedEx Ground (Delivery - Mon),2,John,Smith,ABC,john@example.com,123456789,SUITE 5A-120,799 E DRAGRAM,98102,SEATTLE,WA,US,John,Smith,ABC,SUITE 5A-120,799 E DRAGRAM,98102,SEATTLE,WA,US,,method:FedEx Ground (Delivery - Mon)|total:24.45,,,,Payment to be made upon delivery. Order status changed from Pending Payment to Processing.,1,name:Red Hat|sku:003|quantity:1|total:100.00|refunded:0.00|meta:|tax:0.00,name:Tee Shirt|sku:008|quantity:1|total:150.00|refunded:0.00|meta:|tax:0.00,
1
+ order_id,order_number,order_date,status,shipping_total,shipping_tax_total,fee_total,fee_tax_total,tax_total,cart_discount,order_discount,discount_total,order_total,refunded_total,order_currency,payment_method,shipping_method,customer_id,customer_user,billing_first_name,billing_last_name,billing_company,billing_email,billing_phone,billing_address_1,billing_address_2,billing_postcode,billing_city,billing_state,billing_country,shipping_first_name,shipping_last_name,shipping_company,shipping_address_1,shipping_address_2,shipping_postcode,shipping_city,shipping_state,shipping_country,customer_note,shipping_items,fee_items,tax_items,coupon_items,order_notes,download_permissions,line_item_1,line_item_2,line_item_3
2
+ 737,737,6/10/2016 5:56,processing,33.8,1.69,0,0,1.69,0,0,0,135.49,0,USD,cod,2nd Day Air (UPS),1,1,Sam,Jerry,MEGASYSTEMS INC,info@wooforce.com,8088379844,SUITE 5A-120,799 E DRAGRAM,90001,San Francisco,CA,US,Sam,Jerry,MEGASYSTEMS INC,SUITE 5A-120,799 E DRAGRAM,90001,San Francisco,CA,US,,method:2nd Day Air (UPS)|total:33.80,,code:US-V.A.T-1|total:1.69,,Payment to be made upon delivery. Order status changed from Pending Payment to Processing.,1,name:Red Hat|sku:003|quantity:1|total:100.00|refunded:0.00|meta:|tax:0.00,,
3
+ 736,736,6/9/2016 14:15,processing,213.28,10.66,0,0,10.66,3,3,3,532.94,0,USD,cod,Ground (UPS),1,1,Sam,Jerry,MEGASYSTEMS INC,info@wooforce.com,8088379844,SUITE 5A-120,799 E DRAGRAM,90001,San Francisco,CA,US,Sam,Jerry,MEGASYSTEMS INC,SUITE 5A-120,799 E DRAGRAM,90001,San Francisco,CA,US,,method:Ground (UPS)|total:213.28,,code:US-V.A.T-1|total:10.66,code:7272ll|description:|amount:3.00,Payment to be made upon delivery. Order status changed from Pending Payment to Processing.,1,name:Men's Cotton T-Shirt|sku:B11V2|quantity:1|total:11.88|refunded:0.00|meta:color=Red|tax:0.00,name:Gift5|sku:006|quantity:1|total:198.08|refunded:0.00|meta:|tax:0.00,name:Red Hat|sku:003|quantity:1|total:99.04|refunded:0.00|meta:|tax:0.00
4
+ 519,519,4/22/2016 7:40,processing,24.45,0,0,0,0,0,0,0,274.45,0,USD,cod,FedEx Ground (Delivery - Mon),2,2,John,Smith,ABC,john@example.com,123456789,SUITE 5A-120,799 E DRAGRAM,98102,SEATTLE,WA,US,John,Smith,ABC,SUITE 5A-120,799 E DRAGRAM,98102,SEATTLE,WA,US,,method:FedEx Ground (Delivery - Mon)|total:24.45,,,,Payment to be made upon delivery. Order status changed from Pending Payment to Processing.,1,name:Red Hat|sku:003|quantity:1|total:100.00|refunded:0.00|meta:|tax:0.00,name:Tee Shirt|sku:008|quantity:1|total:150.00|refunded:0.00|meta:|tax:0.00,
includes/exporter/class-wf-orderimpexpcsv-exporter.php CHANGED
@@ -151,6 +151,7 @@ class WF_OrderImpExpCsv_Exporter {
151
 
152
  $line_item = array(
153
  'name' => html_entity_decode($product->get_title() ? $product->get_title() : $item['name'], ENT_NOQUOTES, 'UTF-8'),
 
154
  'sku' => $product->get_sku(),
155
  'quantity' => $item['qty'],
156
  'total' => wc_format_decimal($order->get_line_total($item), 2),
151
 
152
  $line_item = array(
153
  'name' => html_entity_decode($product->get_title() ? $product->get_title() : $item['name'], ENT_NOQUOTES, 'UTF-8'),
154
+ 'product_id' => $product->id,
155
  'sku' => $product->get_sku(),
156
  'quantity' => $item['qty'],
157
  'total' => wc_format_decimal($order->get_line_total($item), 2),
includes/importer/class-wf-csv-parser.php CHANGED
@@ -445,7 +445,7 @@ class WF_CSV_Parser {
445
  break;
446
  case 'download_permissions':
447
  if ( isset( $item[ 'download_permissions' ] ) ) {
448
- //$postmeta[] = array( 'key' => '_download_permissions_granted', 'value' => $item[ 'download_permissions_granted' ] );
449
  $postmeta[] = array( 'key' => '_download_permissions', 'value' => $item[ 'download_permissions' ] );
450
  }
451
  break;
445
  break;
446
  case 'download_permissions':
447
  if ( isset( $item[ 'download_permissions' ] ) ) {
448
+ $postmeta[] = array( 'key' => '_download_permissions_granted', 'value' => $item[ 'download_permissions' ] );
449
  $postmeta[] = array( 'key' => '_download_permissions', 'value' => $item[ 'download_permissions' ] );
450
  }
451
  break;
order-import-export.php CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://www.xadapter.com/product/order-import-export-plugin-for-wooco
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.7
10
  Text Domain: wf_order_import_export
11
  */
12
 
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.8
10
  Text Domain: wf_order_import_export
11
  */
12
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.6
7
- Stable tag: 1.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,6 +71,8 @@ Yes. You can import or export order line item details.
71
  3. Exported sample order Screen
72
 
73
  == Changelog ==
 
 
74
  = 1.0.7 =
75
  * Updated customer linking with order details.
76
  = 1.0.6 =
@@ -89,6 +91,8 @@ Yes. You can import or export order line item details.
89
  * Export /Import WooCommerce Orders.
90
 
91
  == Upgrade Notice ==
 
 
92
  = 1.0.7 =
93
  * Updated customer linking with order details.
94
  = 1.0.6 =
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.6
7
+ Stable tag: 1.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
  3. Exported sample order Screen
72
 
73
  == Changelog ==
74
+ = 1.0.8 =
75
+ * Order line items linking improvements.
76
  = 1.0.7 =
77
  * Updated customer linking with order details.
78
  = 1.0.6 =
91
  * Export /Import WooCommerce Orders.
92
 
93
  == Upgrade Notice ==
94
+ = 1.0.8 =
95
+ * Order line items linking improvements.
96
  = 1.0.7 =
97
  * Updated customer linking with order details.
98
  = 1.0.6 =