Order Export & Order Import for WooCommerce - Version 1.0.6

Version Description

  • CSV Parsing improvements.
Download this release

Release Info

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

Code changes from version 1.0.5 to 1.0.6

sample.csv → Order_Sample.csv RENAMED
File without changes
includes/importer/class-wf-csv-parser.php CHANGED
@@ -99,11 +99,11 @@ class WF_CSV_Parser {
99
  // Put all CSV data into an associative array
100
  if ( ( $handle = fopen( $file, "r" ) ) !== FALSE ) {
101
 
102
- $header = fgetcsv( $handle, 0, $delimiter );
103
  if ( $start_pos != 0 )
104
  fseek( $handle, $start_pos );
105
 
106
- while ( ( $postmeta = fgetcsv( $handle, 0, $delimiter ) ) !== FALSE ) {
107
  $row = array();
108
 
109
  foreach ( $header as $key => $heading ) {
99
  // Put all CSV data into an associative array
100
  if ( ( $handle = fopen( $file, "r" ) ) !== FALSE ) {
101
 
102
+ $header = fgetcsv( $handle, 0, $delimiter , '"', '"' );
103
  if ( $start_pos != 0 )
104
  fseek( $handle, $start_pos );
105
 
106
+ while ( ( $postmeta = fgetcsv( $handle, 0, $delimiter , '"', '"' ) ) !== FALSE ) {
107
  $row = array();
108
 
109
  foreach ( $header as $key => $heading ) {
includes/importer/class-wf-orderimpexpcsv-order-import.php CHANGED
@@ -219,7 +219,7 @@ class WF_OrderImpExpCsv_Order_Import extends WP_Importer {
219
  // Get CSV positions
220
  if ( ( $handle = fopen( $file, "r" ) ) !== FALSE ) {
221
 
222
- while ( ( $postmeta = fgetcsv( $handle, 0, $this->delimiter ) ) !== FALSE ) {
223
  $count++;
224
 
225
  if ( $count >= $limit ) {
@@ -389,9 +389,9 @@ class WF_OrderImpExpCsv_Order_Import extends WP_Importer {
389
  if ( ( $handle = fopen( $file, "r" ) ) !== FALSE ) {
390
 
391
  $row = $raw_headers = array();
392
- $header = fgetcsv( $handle, 0, $this->delimiter );
393
 
394
- while ( ( $postmeta = fgetcsv( $handle, 0, $this->delimiter ) ) !== FALSE ) {
395
  foreach ( $header as $key => $heading ) {
396
  if ( ! $heading ) continue;
397
  $s_heading = $heading;
219
  // Get CSV positions
220
  if ( ( $handle = fopen( $file, "r" ) ) !== FALSE ) {
221
 
222
+ while ( ( $postmeta = fgetcsv( $handle, 0, $this->delimiter , '"', '"' ) ) !== FALSE ) {
223
  $count++;
224
 
225
  if ( $count >= $limit ) {
389
  if ( ( $handle = fopen( $file, "r" ) ) !== FALSE ) {
390
 
391
  $row = $raw_headers = array();
392
+ $header = fgetcsv( $handle, 0, $this->delimiter , '"', '"' );
393
 
394
+ while ( ( $postmeta = fgetcsv( $handle, 0, $this->delimiter , '"', '"' ) ) !== FALSE ) {
395
  foreach ( $header as $key => $heading ) {
396
  if ( ! $heading ) continue;
397
  $s_heading = $heading;
includes/views/import/html-wf-import-orders.php CHANGED
@@ -14,7 +14,7 @@
14
  <a href="http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="button button-primary"><?php _e('Upgrade to Premium Version', 'wf_csv_import_export'); ?></a>
15
  <a href="http://orderimportexport.hikeforce.com/wp-admin/admin.php?page=wf_woocommerce_order_im_ex" target="_blank" class="button"><?php _e('Live Demo', 'wf_csv_import_export'); ?></a>
16
  <a href="http://www.xadapter.com/2016/06/20/setting-up-order-import-export-plugin-for-woocommerce/" target="_blank" class="button"><?php _e('Documentation', 'wf_csv_import_export'); ?></a>
17
- <a href="<?php echo plugins_url('sample.csv', WF_OrderImpExpCsv_FILE); ?>" target="_blank" class="button"><?php _e('Sample CSV', 'wf_csv_import_export'); ?></a>
18
  </p>
19
  </div>
20
  <style>
14
  <a href="http://www.xadapter.com/product/order-import-export-plugin-for-woocommerce/" target="_blank" class="button button-primary"><?php _e('Upgrade to Premium Version', 'wf_csv_import_export'); ?></a>
15
  <a href="http://orderimportexport.hikeforce.com/wp-admin/admin.php?page=wf_woocommerce_order_im_ex" target="_blank" class="button"><?php _e('Live Demo', 'wf_csv_import_export'); ?></a>
16
  <a href="http://www.xadapter.com/2016/06/20/setting-up-order-import-export-plugin-for-woocommerce/" target="_blank" class="button"><?php _e('Documentation', 'wf_csv_import_export'); ?></a>
17
+ <a href="<?php echo plugins_url('Order_Sample.csv', WF_OrderImpExpCsv_FILE); ?>" target="_blank" class="button"><?php _e('Sample CSV', 'wf_csv_import_export'); ?></a>
18
  </p>
19
  </div>
20
  <style>
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.5
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.6
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.5
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.5 =
75
  * Minor modification.
76
  = 1.0.4 =
@@ -85,6 +87,8 @@ Yes. You can import or export order line item details.
85
  * Export /Import WooCommerce Orders.
86
 
87
  == Upgrade Notice ==
 
 
88
  = 1.0.5 =
89
  * Minor modification.
90
  = 1.0.4 =
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.6
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.6 =
75
+ * CSV Parsing improvements.
76
  = 1.0.5 =
77
  * Minor modification.
78
  = 1.0.4 =
87
  * Export /Import WooCommerce Orders.
88
 
89
  == Upgrade Notice ==
90
+ = 1.0.6 =
91
+ * CSV Parsing improvements.
92
  = 1.0.5 =
93
  * Minor modification.
94
  = 1.0.4 =