Version Description
- Bug fix: Fixed Coupon import warnings.
Download this release
Release Info
Developer | xadapter |
Plugin | Order Export & Order Import for WooCommerce |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
includes/importer/class-wf-cpnimpexpcsv-coupon-import.php
CHANGED
@@ -552,8 +552,8 @@ class WF_CpnImpExpCsv_Coupon_Import extends WP_Importer {
|
|
552 |
*/
|
553 |
public function import_start( $file, $mapping, $start_pos, $end_pos, $eval_field ) {
|
554 |
|
555 |
-
|
556 |
-
|
557 |
|
558 |
$this->log->add( 'csv-import', '---[ New Import ] PHP Memory: ' . $memory . ', WP Memory: ' . $wp_memory );
|
559 |
$this->log->add( 'csv-import', __( 'Parsing coupons CSV.', 'wf_order_import_export' ) );
|
552 |
*/
|
553 |
public function import_start( $file, $mapping, $start_pos, $end_pos, $eval_field ) {
|
554 |
|
555 |
+
$memory = size_format( (WC()->version < '2.7.0')?woocommerce_let_to_num( ini_get( 'memory_limit' ) ):wc_let_to_num( ini_get( 'memory_limit' ) ) );
|
556 |
+
$wp_memory = size_format( (WC()->version < '2.7.0')? woocommerce_let_to_num( WP_MEMORY_LIMIT ) : wc_let_to_num( WP_MEMORY_LIMIT ) );
|
557 |
|
558 |
$this->log->add( 'csv-import', '---[ New Import ] PHP Memory: ' . $memory . ', WP Memory: ' . $wp_memory );
|
559 |
$this->log->add( 'csv-import', __( 'Parsing coupons CSV.', 'wf_order_import_export' ) );
|
includes/importer/class-wf-csv-parser-coupon.php
CHANGED
@@ -87,11 +87,13 @@ class WF_CSV_Parser_Coupon {
|
|
87 |
$s_heading = esc_attr( $mapping[$s_heading] );
|
88 |
}
|
89 |
}
|
|
|
90 |
foreach ($mapping as $mkey => $mvalue) {
|
91 |
if(trim($mvalue) === trim($heading)){
|
92 |
$s_heading = $mkey;
|
93 |
}
|
94 |
}
|
|
|
95 |
|
96 |
if ( $s_heading == '' )
|
97 |
continue;
|
@@ -99,6 +101,7 @@ class WF_CSV_Parser_Coupon {
|
|
99 |
// Add the heading to the parsed data
|
100 |
$row[$s_heading] = ( isset( $postmeta[$key] ) ) ? $this->format_data_from_csv( $postmeta[$key], $enc ) : '';
|
101 |
|
|
|
102 |
$row[$s_heading] = $this->evaluate_field($row[$s_heading], $eval_field[$s_heading]);
|
103 |
|
104 |
// Raw Headers stores the actual column name in the CSV
|
87 |
$s_heading = esc_attr( $mapping[$s_heading] );
|
88 |
}
|
89 |
}
|
90 |
+
if(!empty($mapping)){
|
91 |
foreach ($mapping as $mkey => $mvalue) {
|
92 |
if(trim($mvalue) === trim($heading)){
|
93 |
$s_heading = $mkey;
|
94 |
}
|
95 |
}
|
96 |
+
}
|
97 |
|
98 |
if ( $s_heading == '' )
|
99 |
continue;
|
101 |
// Add the heading to the parsed data
|
102 |
$row[$s_heading] = ( isset( $postmeta[$key] ) ) ? $this->format_data_from_csv( $postmeta[$key], $enc ) : '';
|
103 |
|
104 |
+
if(isset($eval_field[$s_heading]))
|
105 |
$row[$s_heading] = $this->evaluate_field($row[$s_heading], $eval_field[$s_heading]);
|
106 |
|
107 |
// Raw Headers stores the actual column name in the CSV
|
includes/importer/class-wf-orderimpexpcsv-order-import.php
CHANGED
@@ -441,8 +441,8 @@ class WF_OrderImpExpCsv_Order_Import extends WP_Importer {
|
|
441 |
*/
|
442 |
public function import_start( $file, $start_pos, $end_pos ) {
|
443 |
|
444 |
-
|
445 |
-
|
446 |
|
447 |
$this->log->add( 'csv-import', '---[ New Import ] PHP Memory: ' . $memory . ', WP Memory: ' . $wp_memory );
|
448 |
$this->log->add( 'csv-import', __( 'Parsing products CSV.', 'wf_order_import_export' ) );
|
441 |
*/
|
442 |
public function import_start( $file, $start_pos, $end_pos ) {
|
443 |
|
444 |
+
$memory = size_format( (WC()->version < '2.7.0')?woocommerce_let_to_num( ini_get( 'memory_limit' ) ):wc_let_to_num( ini_get( 'memory_limit' ) ) );
|
445 |
+
$wp_memory = size_format( (WC()->version < '2.7.0')? woocommerce_let_to_num( WP_MEMORY_LIMIT ) : wc_let_to_num( WP_MEMORY_LIMIT ) );
|
446 |
|
447 |
$this->log->add( 'csv-import', '---[ New Import ] PHP Memory: ' . $memory . ', WP Memory: ' . $wp_memory );
|
448 |
$this->log->add( 'csv-import', __( 'Parsing products CSV.', 'wf_order_import_export' ) );
|
order-import-export.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: https://www.xadapter.com/product/order-import-export-plugin-for-wooc
|
|
6 |
Description: Export and Import Order detail including line items, From and To your WooCommerce Store.
|
7 |
Author: XAdapter
|
8 |
Author URI: https://www.xadapter.com/
|
9 |
-
Version: 1.2.
|
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: XAdapter
|
8 |
Author URI: https://www.xadapter.com/
|
9 |
+
Version: 1.2.1
|
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,woocommerce export coupons, woocommerce import coupons, woocommerce export import coupons
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -75,6 +75,8 @@ Yes. You can import or export order line item details.
|
|
75 |
3. Exported sample order Screen
|
76 |
|
77 |
== Changelog ==
|
|
|
|
|
78 |
= 1.2.0 =
|
79 |
* Bug fix: Fixed WC Log issues.
|
80 |
= 1.1.9 =
|
@@ -120,6 +122,8 @@ Yes. You can import or export order line item details.
|
|
120 |
* Export /Import WooCommerce Orders.
|
121 |
|
122 |
== Upgrade Notice ==
|
|
|
|
|
123 |
= 1.2.0 =
|
124 |
* Bug fix: Fixed WC Log issues.
|
125 |
= 1.1.9 =
|
4 |
Tags: woocommerce export orders, woocommerce import orders, woocommerce export import orders, export woocommerce orders with line item details,woocommerce export coupons, woocommerce import coupons, woocommerce export import coupons
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
75 |
3. Exported sample order Screen
|
76 |
|
77 |
== Changelog ==
|
78 |
+
= 1.2.1 =
|
79 |
+
* Bug fix: Fixed Coupon import warnings.
|
80 |
= 1.2.0 =
|
81 |
* Bug fix: Fixed WC Log issues.
|
82 |
= 1.1.9 =
|
122 |
* Export /Import WooCommerce Orders.
|
123 |
|
124 |
== Upgrade Notice ==
|
125 |
+
= 1.2.1 =
|
126 |
+
* Bug fix: Fixed Coupon import warnings.
|
127 |
= 1.2.0 =
|
128 |
* Bug fix: Fixed WC Log issues.
|
129 |
= 1.1.9 =
|