Version Description
- WC 5.9 Tested OK
- Compatibility with YITH WooCommerce Order Tracking
Download this release
Release Info
Developer | webtoffee |
Plugin | Order Export & Order Import for WooCommerce |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.4
- admin/css/wt-import-export-for-woo-admin.css +6 -6
- admin/modules/export/export.php +1 -0
- admin/modules/export/views/main.php +5 -0
- admin/modules/import/views/main.php +5 -0
- admin/modules/order/data/data-order-post-columns.php +9 -1
- admin/modules/order/data/data/data-wf-reserved-fields-pair.php +9 -1
- admin/modules/order/export/export.php +20 -3
- admin/modules/order/import/import.php +22 -2
- admin/modules/order/order.php +30 -18
- includes/class-wf-orderimpexp-plugin-uninstall-feedback.php +9 -3
- includes/class-wt-import-export-for-woo.php +1 -1
- order-import-export-for-woocommerce.php +4 -5
- readme.txt +9 -4
admin/css/wt-import-export-for-woo-admin.css
CHANGED
@@ -93,7 +93,7 @@
|
|
93 |
width:100%;
|
94 |
padding: 0.35rem 0.75rem;
|
95 |
font-size: 1rem;
|
96 |
-
line-height: 1.5;
|
97 |
color: #495057;
|
98 |
background-color: #fff;
|
99 |
background-clip: padding-box;
|
@@ -159,11 +159,11 @@
|
|
159 |
.wt-iew-tab-container .wp-list-table thead th{ font-weight:bold; }
|
160 |
.wt-iew-exporter-step-btn, .wt-iew-exporter-step-export-btn{ float:right; }
|
161 |
|
162 |
-
.wt-iew-form-table select.wt_iew_delimiter_preset{ width:70
|
163 |
-
.wt-iew-form-table input[type="text"].wt_iew_custom_delimiter{ width:25
|
164 |
|
165 |
-
.wt-iew-form-table select.wt_iew_date_format_preset{ width:70
|
166 |
-
.wt-iew-form-table input[type="text"].wt_iew_custom_date_format{ width:25
|
167 |
|
168 |
|
169 |
.wt_iew_warn_box{padding:20px; padding-bottom:0px;}
|
@@ -818,7 +818,7 @@ ul.wt-ierpro-newfeat li {
|
|
818 |
margin-bottom: 20px;
|
819 |
}
|
820 |
.wt-ier-mt-5{
|
821 |
-
margin-top:
|
822 |
}
|
823 |
.wt-ier-v-center{
|
824 |
-ms-flex-align: center;
|
93 |
width:100%;
|
94 |
padding: 0.35rem 0.75rem;
|
95 |
font-size: 1rem;
|
96 |
+
line-height: 1.5 !important;
|
97 |
color: #495057;
|
98 |
background-color: #fff;
|
99 |
background-clip: padding-box;
|
159 |
.wt-iew-tab-container .wp-list-table thead th{ font-weight:bold; }
|
160 |
.wt-iew-exporter-step-btn, .wt-iew-exporter-step-export-btn{ float:right; }
|
161 |
|
162 |
+
.wt-iew-form-table select.wt_iew_delimiter_preset{ width:70% !important; float:left; }
|
163 |
+
.wt-iew-form-table input[type="text"].wt_iew_custom_delimiter{ width:25% !important; float:right; }
|
164 |
|
165 |
+
.wt-iew-form-table select.wt_iew_date_format_preset{ width:70% !important; float:left; }
|
166 |
+
.wt-iew-form-table input[type="text"].wt_iew_custom_date_format{ width:25% !important; float:right; }
|
167 |
|
168 |
|
169 |
.wt_iew_warn_box{padding:20px; padding-bottom:0px;}
|
818 |
margin-bottom: 20px;
|
819 |
}
|
820 |
.wt-ier-mt-5{
|
821 |
+
margin-top: 75px;
|
822 |
}
|
823 |
.wt-ier-v-center{
|
824 |
-ms-flex-align: center;
|
admin/modules/export/export.php
CHANGED
@@ -274,6 +274,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
274 |
'batch_count'=>array(
|
275 |
'label'=>__("Export in batches of"),
|
276 |
'type'=>'text',
|
|
|
277 |
'value'=>$this->default_batch_count,
|
278 |
'field_name'=>'batch_count',
|
279 |
'help_text'=>sprintf(__('The number of records that the server will process for every iteration within the configured timeout interval. If the export fails due to timeout you can lower this number accordingly and try again. Defaulted to %d records.'), 30),
|
274 |
'batch_count'=>array(
|
275 |
'label'=>__("Export in batches of"),
|
276 |
'type'=>'text',
|
277 |
+
'merge_right'=>true,
|
278 |
'value'=>$this->default_batch_count,
|
279 |
'field_name'=>'batch_count',
|
280 |
'help_text'=>sprintf(__('The number of records that the server will process for every iteration within the configured timeout interval. If the export fails due to timeout you can lower this number accordingly and try again. Defaulted to %d records.'), 30),
|
admin/modules/export/views/main.php
CHANGED
@@ -27,6 +27,11 @@ Wt_Iew_IE_Basic_Helper::debug_panel($this->module_base);
|
|
27 |
?>
|
28 |
<?php include WT_O_IEW_PLUGIN_PATH."/admin/views/_save_template_popup.php"; ?>
|
29 |
<h2 class="wt_iew_page_hd"><?php _e('Export'); ?><span class="wt_iew_post_type_name"></span></h2>
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
<?php
|
32 |
if($requested_rerun_id>0 && $this->rerun_id==0)
|
27 |
?>
|
28 |
<?php include WT_O_IEW_PLUGIN_PATH."/admin/views/_save_template_popup.php"; ?>
|
29 |
<h2 class="wt_iew_page_hd"><?php _e('Export'); ?><span class="wt_iew_post_type_name"></span></h2>
|
30 |
+
<span class="wt-webtoffee-icon" style="float: <?php echo (!is_rtl()) ? 'right' : 'left'; ?>; padding-<?php echo (!is_rtl()) ? 'right' : 'left'; ?>:30px; margin-top: -25px;">
|
31 |
+
<?php _e('Developed by'); ?> <a target="_blank" href="https://www.webtoffee.com">
|
32 |
+
<img src="<?php echo WT_O_IEW_PLUGIN_URL.'/assets/images/webtoffee-logo_small.png';?>" style="max-width:100px;">
|
33 |
+
</a>
|
34 |
+
</span>
|
35 |
|
36 |
<?php
|
37 |
if($requested_rerun_id>0 && $this->rerun_id==0)
|
admin/modules/import/views/main.php
CHANGED
@@ -37,6 +37,11 @@ Wt_Iew_IE_Basic_Helper::debug_panel($this->module_base);
|
|
37 |
<?php include WT_O_IEW_PLUGIN_PATH."/admin/views/_save_template_popup.php"; ?>
|
38 |
|
39 |
<h2 class="wt_iew_page_hd"><?php _e('Import'); ?><span class="wt_iew_post_type_name"></span></h2>
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
<?php
|
42 |
if($requested_rerun_id>0 && $this->rerun_id==0)
|
37 |
<?php include WT_O_IEW_PLUGIN_PATH."/admin/views/_save_template_popup.php"; ?>
|
38 |
|
39 |
<h2 class="wt_iew_page_hd"><?php _e('Import'); ?><span class="wt_iew_post_type_name"></span></h2>
|
40 |
+
<span class="wt-webtoffee-icon" style="float: <?php echo (!is_rtl()) ? 'right' : 'left'; ?>; padding-<?php echo (!is_rtl()) ? 'right' : 'left'; ?>:30px; margin-top: -25px;">
|
41 |
+
<?php _e('Developed by'); ?> <a target="_blank" href="https://www.webtoffee.com">
|
42 |
+
<img src="<?php echo WT_O_IEW_PLUGIN_URL.'/assets/images/webtoffee-logo_small.png';?>" style="max-width:100px;">
|
43 |
+
</a>
|
44 |
+
</span>
|
45 |
|
46 |
<?php
|
47 |
if($requested_rerun_id>0 && $this->rerun_id==0)
|
admin/modules/order/data/data-order-post-columns.php
CHANGED
@@ -65,9 +65,17 @@ $base_columns = array(
|
|
65 |
if (!function_exists('is_plugin_active'))
|
66 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
67 |
|
68 |
-
if (is_plugin_active('
|
69 |
$base_columns['meta:wf_invoice_number'] = 'WT Invoice number';
|
70 |
$base_columns['meta:_wf_invoice_date'] = 'WT Invoice date';
|
71 |
endif;
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
return apply_filters('hf_csv_order_post_columns', $base_columns);
|
65 |
if (!function_exists('is_plugin_active'))
|
66 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
67 |
|
68 |
+
if (is_plugin_active('print-invoices-packing-slip-labels-for-woocommerce/print-invoices-packing-slip-labels-for-woocommerce.php')):
|
69 |
$base_columns['meta:wf_invoice_number'] = 'WT Invoice number';
|
70 |
$base_columns['meta:_wf_invoice_date'] = 'WT Invoice date';
|
71 |
endif;
|
72 |
|
73 |
+
if (is_plugin_active('yith-woocommerce-order-tracking-premium/init.php')):
|
74 |
+
$base_columns['meta:ywot_tracking_code'] = 'Tracking code';
|
75 |
+
$base_columns['meta:ywot_tracking_postcode'] = 'Tracking postcode';
|
76 |
+
$base_columns['meta:ywot_carrier_id'] = 'Carrier name';
|
77 |
+
$base_columns['meta:ywot_pick_up_date'] = 'Pickup date';
|
78 |
+
$base_columns['meta:ywot_picked_up'] = 'Order picked up?';
|
79 |
+
endif;
|
80 |
+
|
81 |
return apply_filters('hf_csv_order_post_columns', $base_columns);
|
admin/modules/order/data/data/data-wf-reserved-fields-pair.php
CHANGED
@@ -65,10 +65,18 @@ $base_reserved_columns = array(
|
|
65 |
if (!function_exists('is_plugin_active'))
|
66 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
67 |
|
68 |
-
if (is_plugin_active('
|
69 |
$base_reserved_columns['meta:wf_invoice_number'] = array('title' => 'WT Invoice number ', 'description' => 'WebToffee Invoice number');
|
70 |
$base_reserved_columns['meta:_wf_invoice_date'] = array('title' => 'WT Invoice date ', 'description' => 'WebToffee Invoice date');
|
71 |
endif;
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
// Reserved column names
|
74 |
return apply_filters('woocommerce_csv_order_reserved_fields_pair', $base_reserved_columns);
|
65 |
if (!function_exists('is_plugin_active'))
|
66 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
67 |
|
68 |
+
if (is_plugin_active('print-invoices-packing-slip-labels-for-woocommerce/print-invoices-packing-slip-labels-for-woocommerce.php')):
|
69 |
$base_reserved_columns['meta:wf_invoice_number'] = array('title' => 'WT Invoice number ', 'description' => 'WebToffee Invoice number');
|
70 |
$base_reserved_columns['meta:_wf_invoice_date'] = array('title' => 'WT Invoice date ', 'description' => 'WebToffee Invoice date');
|
71 |
endif;
|
72 |
|
73 |
+
if (is_plugin_active('yith-woocommerce-order-tracking-premium/init.php')):
|
74 |
+
$base_reserved_columns['meta:ywot_tracking_code'] = array('title' => 'Tracking code', 'description' => 'YITH Tracking code');
|
75 |
+
$base_reserved_columns['meta:ywot_tracking_postcode'] = array('title' => 'Tracking postcode', 'description' => 'YITH Tracking postcode');
|
76 |
+
$base_reserved_columns['meta:ywot_carrier_id'] = array('title' => 'Carrier name', 'description' => 'YITH Tracking carrier');
|
77 |
+
$base_reserved_columns['meta:ywot_pick_up_date'] = array('title' => 'Pickup date', 'description' => 'YITH pickup date');
|
78 |
+
$base_reserved_columns['meta:ywot_picked_up'] = array('title' => 'Order picked up?', 'description' => 'YITH Is Order picked up?');
|
79 |
+
endif;
|
80 |
+
|
81 |
// Reserved column names
|
82 |
return apply_filters('woocommerce_csv_order_reserved_fields_pair', $base_reserved_columns);
|
admin/modules/order/export/export.php
CHANGED
@@ -13,6 +13,7 @@ class Wt_Import_Export_For_Woo_Basic_Order_Export {
|
|
13 |
private $export_to_separate_rows = false;
|
14 |
private $line_item_meta;
|
15 |
private $is_wt_invoice_active = false;
|
|
|
16 |
|
17 |
public function __construct($parent_object) {
|
18 |
|
@@ -24,9 +25,12 @@ class Wt_Import_Export_For_Woo_Basic_Order_Export {
|
|
24 |
$export_columns = $this->parent_module->get_selected_column_names();
|
25 |
|
26 |
$this->line_item_meta = self::get_all_line_item_metakeys();
|
27 |
-
if (is_plugin_active('
|
28 |
$this->is_wt_invoice_active = true;
|
29 |
endif;
|
|
|
|
|
|
|
30 |
|
31 |
$max_line_items = $this->line_items_max_count;
|
32 |
|
@@ -156,9 +160,10 @@ class Wt_Import_Export_For_Woo_Basic_Order_Export {
|
|
156 |
$batch_count = !empty($form_data['advanced_form_data']['wt_iew_batch_count']) ? $form_data['advanced_form_data']['wt_iew_batch_count'] : Wt_Import_Export_For_Woo_Basic_Common_Helper::get_advanced_settings('default_export_batch');
|
157 |
|
158 |
$exclude_already_exported = (!empty($form_data['advanced_form_data']['wt_iew_exclude_already_exported']) && $form_data['advanced_form_data']['wt_iew_exclude_already_exported'] == 'Yes') ? true : false;
|
|
|
|
|
|
|
159 |
|
160 |
-
$this->export_to_separate_columns = (!empty($form_data['advanced_form_data']['wt_iew_export_to_separate_columns']) && $form_data['advanced_form_data']['wt_iew_export_to_separate_columns'] == 'Yes') ? true : false;
|
161 |
-
$this->export_to_separate_rows = (!empty($form_data['advanced_form_data']['wt_iew_export_to_separate_rows']) && $form_data['advanced_form_data']['wt_iew_export_to_separate_rows'] == 'Yes') ? true : false;
|
162 |
|
163 |
$real_offset = ($current_offset + $batch_offset);
|
164 |
|
@@ -746,6 +751,18 @@ class Wt_Import_Export_For_Woo_Basic_Order_Export {
|
|
746 |
$order_data['meta:wf_invoice_number'] = empty($invoice_number) ? '' : $invoice_number;
|
747 |
$order_data['meta:_wf_invoice_date'] = empty($invoice_date) ? '' : date_i18n(get_option( 'date_format' ), $invoice_date);
|
748 |
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
749 |
|
750 |
$order_export_data = array();
|
751 |
foreach ($csv_columns as $key => $value) {
|
13 |
private $export_to_separate_rows = false;
|
14 |
private $line_item_meta;
|
15 |
private $is_wt_invoice_active = false;
|
16 |
+
private $is_yith_tracking_active = false;
|
17 |
|
18 |
public function __construct($parent_object) {
|
19 |
|
25 |
$export_columns = $this->parent_module->get_selected_column_names();
|
26 |
|
27 |
$this->line_item_meta = self::get_all_line_item_metakeys();
|
28 |
+
if (is_plugin_active('print-invoices-packing-slip-labels-for-woocommerce/print-invoices-packing-slip-labels-for-woocommerce.php')):
|
29 |
$this->is_wt_invoice_active = true;
|
30 |
endif;
|
31 |
+
if (is_plugin_active('yith-woocommerce-order-tracking-premium/init.php')):
|
32 |
+
$this->is_yith_tracking_active = true;
|
33 |
+
endif;
|
34 |
|
35 |
$max_line_items = $this->line_items_max_count;
|
36 |
|
160 |
$batch_count = !empty($form_data['advanced_form_data']['wt_iew_batch_count']) ? $form_data['advanced_form_data']['wt_iew_batch_count'] : Wt_Import_Export_For_Woo_Basic_Common_Helper::get_advanced_settings('default_export_batch');
|
161 |
|
162 |
$exclude_already_exported = (!empty($form_data['advanced_form_data']['wt_iew_exclude_already_exported']) && $form_data['advanced_form_data']['wt_iew_exclude_already_exported'] == 'Yes') ? true : false;
|
163 |
+
|
164 |
+
$this->export_to_separate_columns = (!empty($form_data['advanced_form_data']['wt_iew_export_to_separate']) && $form_data['advanced_form_data']['wt_iew_export_to_separate'] == 'column') ? true : false;
|
165 |
+
$this->export_to_separate_rows = (!empty($form_data['advanced_form_data']['wt_iew_export_to_separate']) && $form_data['advanced_form_data']['wt_iew_export_to_separate'] == 'row') ? true : false;
|
166 |
|
|
|
|
|
167 |
|
168 |
$real_offset = ($current_offset + $batch_offset);
|
169 |
|
751 |
$order_data['meta:wf_invoice_number'] = empty($invoice_number) ? '' : $invoice_number;
|
752 |
$order_data['meta:_wf_invoice_date'] = empty($invoice_date) ? '' : date_i18n(get_option( 'date_format' ), $invoice_date);
|
753 |
endif;
|
754 |
+
if ($this->is_yith_tracking_active):
|
755 |
+
$ywot_tracking_code = get_post_meta($order_data['order_id'], 'ywot_tracking_code', true);
|
756 |
+
$ywot_tracking_postcode = get_post_meta($order_data['order_id'], 'ywot_tracking_postcode', true);
|
757 |
+
$ywot_carrier_id = get_post_meta($order_data['order_id'], 'ywot_carrier_id', true);
|
758 |
+
$ywot_pick_up_date = get_post_meta($order_data['order_id'], 'ywot_pick_up_date', true);
|
759 |
+
$ywot_picked_up = get_post_meta($order_data['order_id'], 'ywot_picked_up', true);
|
760 |
+
$order_data['meta:ywot_tracking_code'] = empty($ywot_tracking_code) ? '' : $ywot_tracking_code;
|
761 |
+
$order_data['meta:ywot_tracking_postcode'] = empty($ywot_tracking_postcode) ? '' : $ywot_tracking_postcode;
|
762 |
+
$order_data['meta:ywot_carrier_id'] = empty($ywot_carrier_id) ? '' : $ywot_carrier_id;
|
763 |
+
$order_data['meta:ywot_pick_up_date'] = empty($ywot_pick_up_date) ? '' : $ywot_pick_up_date;
|
764 |
+
$order_data['meta:ywot_picked_up'] = empty($ywot_picked_up) ? '' : $ywot_picked_up;
|
765 |
+
endif;
|
766 |
|
767 |
$order_export_data = array();
|
768 |
foreach ($csv_columns as $key => $value) {
|
admin/modules/order/import/import.php
CHANGED
@@ -422,8 +422,28 @@ class Wt_Import_Export_For_Woo_Basic_Order_Import {
|
|
422 |
if ('meta:_wf_invoice_date' == $column ) {
|
423 |
$this->item_data['meta_data'][] = array('key'=>'_wf_invoice_date','value'=> strtotime($value));
|
424 |
continue;
|
425 |
-
}
|
426 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
if(strstr($column, 'line_item_')){
|
428 |
$this->item_data['order_items'][] = $this->wt_parse_line_item_field($value,$column);
|
429 |
continue;
|
422 |
if ('meta:_wf_invoice_date' == $column ) {
|
423 |
$this->item_data['meta_data'][] = array('key'=>'_wf_invoice_date','value'=> strtotime($value));
|
424 |
continue;
|
425 |
+
}
|
426 |
+
if ('meta:ywot_tracking_code' == $column ) {
|
427 |
+
$this->item_data['meta_data'][] = array('key'=>'ywot_tracking_code', 'value'=> $value);
|
428 |
+
continue;
|
429 |
+
}
|
430 |
+
if ('meta:ywot_tracking_postcode' == $column ) {
|
431 |
+
$this->item_data['meta_data'][] = array('key'=>'ywot_tracking_postcode', 'value'=> $value);
|
432 |
+
continue;
|
433 |
+
}
|
434 |
+
if ('meta:ywot_carrier_id' == $column ) {
|
435 |
+
$this->item_data['meta_data'][] = array('key'=>'ywot_carrier_id', 'value'=> $value);
|
436 |
+
continue;
|
437 |
+
}
|
438 |
+
if ('meta:ywot_pick_up_date' == $column ) {
|
439 |
+
$this->item_data['meta_data'][] = array('key'=>'ywot_pick_up_date', 'value'=> $value);
|
440 |
+
continue;
|
441 |
+
}
|
442 |
+
if ('meta:ywot_picked_up' == $column ) {
|
443 |
+
$this->item_data['meta_data'][] = array('key'=>'ywot_picked_up', 'value'=> $value);
|
444 |
+
continue;
|
445 |
+
}
|
446 |
+
|
447 |
if(strstr($column, 'line_item_')){
|
448 |
$this->item_data['order_items'][] = $this->wt_parse_line_item_field($value,$column);
|
449 |
continue;
|
admin/modules/order/order.php
CHANGED
@@ -384,28 +384,40 @@ class Wt_Import_Export_For_Woo_Basic_Order {
|
|
384 |
'help_text' => __("Option 'Yes' excludes the previously exported orders."),
|
385 |
);
|
386 |
|
387 |
-
$out['
|
388 |
-
'label' => __("Export line items
|
389 |
'type' => 'radio',
|
390 |
'radio_fields' => array(
|
391 |
-
'
|
392 |
-
'
|
|
|
393 |
),
|
394 |
-
'value' => '
|
395 |
-
'
|
396 |
-
'
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
);
|
|
|
409 |
foreach ($fields as $fieldk => $fieldv) {
|
410 |
$out[$fieldk] = $fieldv;
|
411 |
}
|
384 |
'help_text' => __("Option 'Yes' excludes the previously exported orders."),
|
385 |
);
|
386 |
|
387 |
+
$out['export_to_separate'] = array(
|
388 |
+
'label' => __("Export line items in"),
|
389 |
'type' => 'radio',
|
390 |
'radio_fields' => array(
|
391 |
+
'default' => __('Default mode'),
|
392 |
+
'column' => __('Separate columns'),
|
393 |
+
'row' => __('Separate rows')
|
394 |
),
|
395 |
+
'value' => 'default',
|
396 |
+
'merge_right'=>true,
|
397 |
+
'field_name' => 'export_to_separate',
|
398 |
+
//'help_text' => __("Option 'Yes' exports the line items within the order into separate columns in the exported file."),
|
399 |
+
'help_text_conditional'=>array(
|
400 |
+
array(
|
401 |
+
'help_text'=> __('The default option will export each line item details into a single column. This option is mainly used for the order migration purpose.'),
|
402 |
+
'condition'=>array(
|
403 |
+
array('field'=>'wt_iew_export_to_separate', 'value'=>'default')
|
404 |
+
)
|
405 |
+
),
|
406 |
+
array(
|
407 |
+
'help_text'=> __('This option will export each line item details into a separate column.'),
|
408 |
+
'condition'=>array(
|
409 |
+
array('field'=>'wt_iew_export_to_separate', 'value'=>'column')
|
410 |
+
)
|
411 |
+
),
|
412 |
+
array(
|
413 |
+
'help_text'=> __('This option will export each line item details into a separate row.'),
|
414 |
+
'condition'=>array(
|
415 |
+
array('field'=>'wt_iew_export_to_separate', 'value'=>'row')
|
416 |
+
)
|
417 |
+
)
|
418 |
+
)
|
419 |
);
|
420 |
+
|
421 |
foreach ($fields as $fieldk => $fieldv) {
|
422 |
$out[$fieldk] = $fieldv;
|
423 |
}
|
includes/class-wf-orderimpexp-plugin-uninstall-feedback.php
CHANGED
@@ -186,11 +186,17 @@ if (!class_exists('WF_OrderImpExp_Uninstall_Feedback')) :
|
|
186 |
var parent = $(this).parents('li:first');
|
187 |
modal.find('.reason-input').remove();
|
188 |
var inputType = parent.data('type'),
|
189 |
-
|
|
|
190 |
if ('reviewhtml' === inputType) {
|
191 |
-
|
|
|
|
|
192 |
} else {
|
193 |
-
|
|
|
|
|
|
|
194 |
}
|
195 |
if (inputType !== '') {
|
196 |
parent.append($(reasonInputHtml));
|
186 |
var parent = $(this).parents('li:first');
|
187 |
modal.find('.reason-input').remove();
|
188 |
var inputType = parent.data('type'),
|
189 |
+
inputPlaceholder = parent.data('placeholder');
|
190 |
+
var reasonInputHtml = '';
|
191 |
if ('reviewhtml' === inputType) {
|
192 |
+
if($('.reviewlink').length == 0){
|
193 |
+
reasonInputHtml = '<div class="reviewlink"><a href="#" target="_blank" class="review-and-deactivate"><?php _e('Deactivate and leave a review', 'order-import-export-for-woocommerce'); ?> <span class="xa-ocsie-rating-link"> ★★★★★ </span></a></div>';
|
194 |
+
}
|
195 |
} else {
|
196 |
+
if($('.reviewlink').length){
|
197 |
+
$('.reviewlink'). remove();
|
198 |
+
}
|
199 |
+
reasonInputHtml = '<div class="reason-input">' + (('text' === inputType) ? '<input type="text" class="input-text" size="40" />' : '<textarea rows="5" cols="45"></textarea>') + '</div>';
|
200 |
}
|
201 |
if (inputType !== '') {
|
202 |
parent.append($(reasonInputHtml));
|
includes/class-wt-import-export-for-woo.php
CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
|
|
80 |
if ( defined( 'WT_O_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_O_IEW_VERSION;
|
82 |
} else {
|
83 |
-
$this->version = '2.1.
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
80 |
if ( defined( 'WT_O_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_O_IEW_VERSION;
|
82 |
} else {
|
83 |
+
$this->version = '2.1.4';
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
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: 2.1.
|
10 |
Text Domain: order-import-export-for-woocommerce
|
11 |
-
WC tested up to: 5.
|
12 |
License: GPLv3
|
13 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
14 |
*/
|
@@ -45,7 +45,7 @@ if ( !defined( 'WT_IEW_DEBUG_BASIC_TROUBLESHOOT' ) ) {
|
|
45 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
46 |
* Rename this for your plugin and update it as you release new versions.
|
47 |
*/
|
48 |
-
define( 'WT_O_IEW_VERSION', '2.1.
|
49 |
|
50 |
/**
|
51 |
* The code that runs during plugin activation.
|
@@ -271,8 +271,7 @@ function wt_order_addon_basic_gopro_content() {
|
|
271 |
<ul class="ticked-list wt-ierpro-allfeat">
|
272 |
<li><?php _e('Supports CSV/XML file formats.'); ?></li>
|
273 |
<li><?php _e('Export and import subscription orders'); ?></li>
|
274 |
-
<li><?php _e('Import and export custom fields and hidden metadata.'); ?></li>
|
275 |
-
<li><?php _e('Option to send email notifications to users/customers after import.'); ?></li>
|
276 |
<li><?php _e('Run scheduled exports via FTP/SFTP.'); ?></li>
|
277 |
<li><?php _e('Run scheduled imports via URL/FTP/SFTP.'); ?></li>
|
278 |
<li><?php _e('Tested compatibility with various third-party plugins.'); ?></li>
|
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: 2.1.4
|
10 |
Text Domain: order-import-export-for-woocommerce
|
11 |
+
WC tested up to: 5.9
|
12 |
License: GPLv3
|
13 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
14 |
*/
|
45 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
46 |
* Rename this for your plugin and update it as you release new versions.
|
47 |
*/
|
48 |
+
define( 'WT_O_IEW_VERSION', '2.1.4' );
|
49 |
|
50 |
/**
|
51 |
* The code that runs during plugin activation.
|
271 |
<ul class="ticked-list wt-ierpro-allfeat">
|
272 |
<li><?php _e('Supports CSV/XML file formats.'); ?></li>
|
273 |
<li><?php _e('Export and import subscription orders'); ?></li>
|
274 |
+
<li><?php _e('Import and export custom fields and hidden metadata.'); ?></li>
|
|
|
275 |
<li><?php _e('Run scheduled exports via FTP/SFTP.'); ?></li>
|
276 |
<li><?php _e('Run scheduled imports via URL/FTP/SFTP.'); ?></li>
|
277 |
<li><?php _e('Tested compatibility with various third-party plugins.'); ?></li>
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: order export, woocommerce, order, export, csv, order import, woocommerce e
|
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.1.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -26,10 +26,11 @@ The following are functionalities offered by the basic version of the plugin.
|
|
26 |
🔸 Export coupons to CSV.
|
27 |
🔸 Import coupons from CSV to WooCommerce.
|
28 |
🔸 Bulk update WooCommerce orders and coupons.
|
|
|
29 |
🔸 Supports various export filters (order status, product, coupon, customer, date range)
|
30 |
🔸 Export Subscription orders to a CSV file(Premium Feature).
|
31 |
🔸 Import Subscription orders from a CSV file(Premium Feature).
|
32 |
-
🔸 Tested OK with WooCommerce 5.
|
33 |
🔸 Tested OK with WP 5.8
|
34 |
🔸 Tested OK with PHP 8.0
|
35 |
|
@@ -224,6 +225,9 @@ Yes.
|
|
224 |
|
225 |
== Changelog ==
|
226 |
|
|
|
|
|
|
|
227 |
= 2.1.3 =
|
228 |
* Bug fix: Time zones issue with coupon expiry date when importing coupon.
|
229 |
= 2.1.2 =
|
@@ -472,5 +476,6 @@ Yes.
|
|
472 |
|
473 |
== Upgrade Notice ==
|
474 |
|
475 |
-
= 2.1.
|
476 |
-
*
|
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.1.4
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
26 |
🔸 Export coupons to CSV.
|
27 |
🔸 Import coupons from CSV to WooCommerce.
|
28 |
🔸 Bulk update WooCommerce orders and coupons.
|
29 |
+
🔸 Compatible with YITH WooCommerce Order Tracking plugin.
|
30 |
🔸 Supports various export filters (order status, product, coupon, customer, date range)
|
31 |
🔸 Export Subscription orders to a CSV file(Premium Feature).
|
32 |
🔸 Import Subscription orders from a CSV file(Premium Feature).
|
33 |
+
🔸 Tested OK with WooCommerce 5.9
|
34 |
🔸 Tested OK with WP 5.8
|
35 |
🔸 Tested OK with PHP 8.0
|
36 |
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
= 2.1.4 =
|
229 |
+
* WC 5.9 Tested OK
|
230 |
+
* Compatibility with YITH WooCommerce Order Tracking
|
231 |
= 2.1.3 =
|
232 |
* Bug fix: Time zones issue with coupon expiry date when importing coupon.
|
233 |
= 2.1.2 =
|
476 |
|
477 |
== Upgrade Notice ==
|
478 |
|
479 |
+
= 2.1.4 =
|
480 |
+
* WC 5.9 Tested OK
|
481 |
+
* Compatibility with YITH WooCommerce Order Tracking
|