Version Description
2022-11-24 = * WooCommerce 7.1 Tested OK. * WordPress 6.1 Tested OK. * Enhancement: Revised import mapping screen.
Download this release
Release Info
Developer | webtoffee |
Plugin | Product Import Export for WooCommerce |
Version | 2.2.6 |
Comparing to | |
See all releases |
Code changes from version 2.2.5 to 2.2.6
- admin/class-wt-import-export-for-woo-admin.php +1 -1
- admin/css/wt-import-export-for-woo-admin.css +30 -8
- admin/js/wt-import-export-for-woo-admin.js +80 -1
- admin/modules/import/assets/js/main.js +12 -4
- admin/modules/import/views/_import_mapping_page.php +28 -28
- admin/modules/import/views/_import_mapping_tr_html.php +3 -0
- admin/modules/import/views/_import_meta_step_page.php +4 -3
- admin/views/market_front.php +3 -3
- helpers/class-wt-import-export-helper.php +9 -0
- includes/class-wt-import-export-for-woo.php +1 -1
- product-import-export-for-woo.php +3 -3
- readme.txt +33 -28
admin/class-wt-import-export-for-woo-admin.php
CHANGED
@@ -130,7 +130,7 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
|
|
130 |
'success'=>__('Success.'),
|
131 |
'loading'=>__('Loading...'),
|
132 |
'sure'=>__('Are you sure?'),
|
133 |
-
'use_expression'=>__('
|
134 |
'cancel'=>__('Cancel'),
|
135 |
),
|
136 |
'pro_plugins' => array(
|
130 |
'success'=>__('Success.'),
|
131 |
'loading'=>__('Loading...'),
|
132 |
'sure'=>__('Are you sure?'),
|
133 |
+
'use_expression'=>__('Apply'),
|
134 |
'cancel'=>__('Cancel'),
|
135 |
),
|
136 |
'pro_plugins' => array(
|
admin/css/wt-import-export-for-woo-admin.css
CHANGED
@@ -19,6 +19,7 @@
|
|
19 |
.wt-iew-settings-header{border-bottom:dashed 1px #ccc; margin-left:-15px; margin-right:-15px; padding-top:0px;}
|
20 |
.wt-iew-settings-header h3{margin-top:0px; margin-left:15px; width:60%; display:inline-block;}
|
21 |
.wt-iew-settings-header .wt_iew_step_info{float:right; font-weight:bold; margin-right:15px; background:#dceff4; display:inline-block; padding:5px 10px; margin-top:-6px; margin-bottom:-15px; padding-bottom:6px; line-height:24px; border-radius:6px; }
|
|
|
22 |
.wt-iew-plugin-toolbar {
|
23 |
height: 40px;
|
24 |
width: 100%;
|
@@ -189,7 +190,7 @@
|
|
189 |
|
190 |
|
191 |
/* mapping step */
|
192 |
-
.wt-iew-mapping-tb{ border:1px solid #e5e5e5; width:
|
193 |
.wt-iew-mapping-tb th{ text-align:left; height:30px; /* background:#e5e5e5; */ border-bottom:solid 1px #e5e5e5; }
|
194 |
.wt-iew-mapping-tb tr td:first-child, .wt-iew-mapping-tb tr th:first-child{ width:50px; }
|
195 |
.wt-iew-mapping-tb td, .wt-iew-mapping-tb th{ padding:5px; }
|
@@ -212,31 +213,37 @@
|
|
212 |
.wt_iew_sort_handle img{ margin-top:5px; color:#ccc; height:15px; opacity:.8; }
|
213 |
.wt_iew_checkbox{ display:inline-block; padding:0px 15px; }
|
214 |
.wt_iew_mapping_field_val{ width:100%; min-height:32px; display:inline-block; background:#fff; padding:5px 5px; box-sizing:border-box; border:solid 1px #ced4da; border-radius:0.25rem; cursor:text; }
|
|
|
215 |
span.wt_iew_mapping_field_val::after {
|
216 |
-
content: "\
|
217 |
font-family: 'dashicons';
|
218 |
font-size: 18px;
|
219 |
width: 20px;
|
220 |
height: 20px;
|
221 |
-
color: gray;
|
222 |
float: right;
|
223 |
top: 10px;
|
224 |
right: 10px;
|
225 |
}
|
|
|
|
|
226 |
.wt-iew-sortable-placeholder td{ height:30px; background:#fff; border-top:dashed 1px #ccc; border-bottom:dashed 1px #ccc; }
|
227 |
.wt-iew-sortable-placeholder td:first-child{ border:dashed 1px #ccc; border-right:none; }
|
228 |
.wt-iew-sortable-placeholder td:last-child{ border:dashed 1px #ccc; border-left:none; }
|
229 |
|
230 |
.meta_mapping_box{width:100%; float:left; height:auto; margin-bottom:0px;}
|
231 |
-
.meta_mapping_box_hd{min-width:720px; width:
|
232 |
-
.meta_mapping_box_hd_nil{min-width:720px; width:
|
233 |
.meta_mapping_box_hd .dashicons{ margin-top:10px; }
|
234 |
.meta_mapping_box_selected_count_box{ float:right; margin-top:-3px; font-weight:normal; font-style:italic; }
|
235 |
-
.meta_mapping_box_con{min-width:720px; width:
|
236 |
.wt-iew-mapping-tb{ min-width:720px; }
|
237 |
.meta_mapping_box_toggle{ font-weight:normal; float:right; cursor:pointer; }
|
238 |
.wt_iew_invalid_mapping_field{ color:red; display:inline-block !important; padding:0px !important; margin:0px !important; }
|
239 |
|
|
|
|
|
|
|
240 |
|
241 |
/* popup */
|
242 |
.wt_iew_overlay{ position:fixed; z-index:100000000; width:100%; height:100%; background-color:rgba(0,0,0,.5); left:0px; top:0px; display:none;}
|
@@ -462,14 +469,26 @@ border-top-right-radius: 5px; padding:5px; padding-left: 15px; line-height: 35px
|
|
462 |
}
|
463 |
.wt_iew_popover-footer{ background:#f7f7f7; clear:both; height:30px; margin:0px; margin-top:10px; border-bottom-left-radius:5px; border-bottom-right-radius:5px; padding:7px 15px;}
|
464 |
.wt_iew_popover-content input[type="text"]{
|
465 |
-
margin:5px
|
|
|
|
|
466 |
font-size: 1rem;
|
467 |
line-height: 1.5;
|
|
|
468 |
}
|
469 |
.wt_iew_popover-footer .button{
|
470 |
float: right; margin-left: 5px;
|
471 |
}
|
472 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
473 |
/* mapping field editor */
|
474 |
.wt_iew_mapping_field_editor_container{ display:none; }
|
475 |
.wt_iew_mapping_field_editor{ float:left; width:400px; padding:0px; background:#fff; margin:0px;}
|
@@ -477,7 +496,7 @@ border-top-right-radius: 5px; padding:5px; padding-left: 15px; line-height: 35px
|
|
477 |
.wt_iew_mapping_field_editor label{ float:left; width:100%; margin-bottom:3px; font-weight:bold; font-size:13px; color:#333; }
|
478 |
.wt_iew_mapping_field_editor_box{border:solid 1px #ddd; float:left; width:100%; height:auto; min-height:50px; padding:3px; margin-bottom:10px; margin-top:5px;}
|
479 |
.wt_iew_mapping_field_editor_box textarea{border:none; float:left; width:100%; height:50px; outline:none; resize:none;}
|
480 |
-
.wt_iew_mapping_field_editor_box input[type="text"]{width:
|
481 |
.wt_iew_mapping_field_editor_box input[type="text"]::placeholder{ font-size:12px; }
|
482 |
.wt_iew_mapping_field_editor_info{ margin:0px; }
|
483 |
.wt_iew_mapping_field_editor_er{ margin:0px; color:red; }
|
@@ -1276,6 +1295,9 @@ ul.wt-ierpro-newfeat li {
|
|
1276 |
margin: 0 0 0 12px;
|
1277 |
color: #5D63D9;
|
1278 |
}
|
|
|
|
|
|
|
1279 |
.wt-import-export-upsell-small-wrapper .wt-ierpro-mainfeatures ul{
|
1280 |
padding: 0;
|
1281 |
margin: 15px 25px 20px 25px;
|
19 |
.wt-iew-settings-header{border-bottom:dashed 1px #ccc; margin-left:-15px; margin-right:-15px; padding-top:0px;}
|
20 |
.wt-iew-settings-header h3{margin-top:0px; margin-left:15px; width:60%; display:inline-block;}
|
21 |
.wt-iew-settings-header .wt_iew_step_info{float:right; font-weight:bold; margin-right:15px; background:#dceff4; display:inline-block; padding:5px 10px; margin-top:-6px; margin-bottom:-15px; padding-bottom:6px; line-height:24px; border-radius:6px; }
|
22 |
+
.rtl .wt-iew-settings-header .wt_iew_step_info{float:right; margin-left:15px; }
|
23 |
.wt-iew-plugin-toolbar {
|
24 |
height: 40px;
|
25 |
width: 100%;
|
190 |
|
191 |
|
192 |
/* mapping step */
|
193 |
+
.wt-iew-mapping-tb{ border:1px solid #e5e5e5; width:100%; }
|
194 |
.wt-iew-mapping-tb th{ text-align:left; height:30px; /* background:#e5e5e5; */ border-bottom:solid 1px #e5e5e5; }
|
195 |
.wt-iew-mapping-tb tr td:first-child, .wt-iew-mapping-tb tr th:first-child{ width:50px; }
|
196 |
.wt-iew-mapping-tb td, .wt-iew-mapping-tb th{ padding:5px; }
|
213 |
.wt_iew_sort_handle img{ margin-top:5px; color:#ccc; height:15px; opacity:.8; }
|
214 |
.wt_iew_checkbox{ display:inline-block; padding:0px 15px; }
|
215 |
.wt_iew_mapping_field_val{ width:100%; min-height:32px; display:inline-block; background:#fff; padding:5px 5px; box-sizing:border-box; border:solid 1px #ced4da; border-radius:0.25rem; cursor:text; }
|
216 |
+
|
217 |
span.wt_iew_mapping_field_val::after {
|
218 |
+
content: "\f347";
|
219 |
font-family: 'dashicons';
|
220 |
font-size: 18px;
|
221 |
width: 20px;
|
222 |
height: 20px;
|
223 |
+
color: gray;
|
224 |
float: right;
|
225 |
top: 10px;
|
226 |
right: 10px;
|
227 |
}
|
228 |
+
|
229 |
+
|
230 |
.wt-iew-sortable-placeholder td{ height:30px; background:#fff; border-top:dashed 1px #ccc; border-bottom:dashed 1px #ccc; }
|
231 |
.wt-iew-sortable-placeholder td:first-child{ border:dashed 1px #ccc; border-right:none; }
|
232 |
.wt-iew-sortable-placeholder td:last-child{ border:dashed 1px #ccc; border-left:none; }
|
233 |
|
234 |
.meta_mapping_box{width:100%; float:left; height:auto; margin-bottom:0px;}
|
235 |
+
.meta_mapping_box_hd{min-width:720px; width:100%; display:inline-block; height:40px; line-height:40px; font-weight:bold; background:#f6f6f6; box-sizing:border-box; padding:2px 10px; box-shadow:1px 1px 1px #e0e0e0; border-bottom:solid 1px #ccc; border-top:solid 1px #fff; cursor:pointer;}
|
236 |
+
.meta_mapping_box_hd_nil{min-width:720px; width:100%; display:inline-block; height:40px; line-height:40px; font-weight:bold; background:#f6f6f6; box-sizing:border-box; padding:2px 10px; box-shadow:1px 1px 1px #e0e0e0; border-bottom:solid 1px #ccc; border-top:solid 1px #fff; cursor:pointer;}
|
237 |
.meta_mapping_box_hd .dashicons{ margin-top:10px; }
|
238 |
.meta_mapping_box_selected_count_box{ float:right; margin-top:-3px; font-weight:normal; font-style:italic; }
|
239 |
+
.meta_mapping_box_con{min-width:720px; width:100%; display:inline-block; height:auto; padding:0px; display:none;}
|
240 |
.wt-iew-mapping-tb{ min-width:720px; }
|
241 |
.meta_mapping_box_toggle{ font-weight:normal; float:right; cursor:pointer; }
|
242 |
.wt_iew_invalid_mapping_field{ color:red; display:inline-block !important; padding:0px !important; margin:0px !important; }
|
243 |
|
244 |
+
.wt-iew-mapping-tb-imp tr td:nth-child(2), .wt-iew-mapping-tb-imp tr th:nth-child(2), .meta_mapping_box_hd_imp tr td:nth-child(2), .meta_mapping_box_hd_imp tr th:nth-child(2){ width:30% !important; }
|
245 |
+
.wt-iew-mapping-tb-imp tr td:nth-child(3), .wt-iew-mapping-tb-imp tr th:nth-child(3), .meta_mapping_box_hd_imp tr td:nth-child(2), .meta_mapping_box_hd_imp tr th:nth-child(2){ width:50% !important; }
|
246 |
+
|
247 |
|
248 |
/* popup */
|
249 |
.wt_iew_overlay{ position:fixed; z-index:100000000; width:100%; height:100%; background-color:rgba(0,0,0,.5); left:0px; top:0px; display:none;}
|
469 |
}
|
470 |
.wt_iew_popover-footer{ background:#f7f7f7; clear:both; height:30px; margin:0px; margin-top:10px; border-bottom-left-radius:5px; border-bottom-right-radius:5px; padding:7px 15px;}
|
471 |
.wt_iew_popover-content input[type="text"]{
|
472 |
+
margin:5px;
|
473 |
+
border-radius:3px;
|
474 |
+
padding: 0.2rem 0.3rem;
|
475 |
font-size: 1rem;
|
476 |
line-height: 1.5;
|
477 |
+
text-indent: 25px;
|
478 |
}
|
479 |
.wt_iew_popover-footer .button{
|
480 |
float: right; margin-left: 5px;
|
481 |
}
|
482 |
|
483 |
+
|
484 |
+
.wt_iew_popover.wt-pop-hidden:before {
|
485 |
+
display: none;
|
486 |
+
}
|
487 |
+
.wt_iew_popover.wt-pop-hidden:after {
|
488 |
+
display: none;
|
489 |
+
}
|
490 |
+
|
491 |
+
|
492 |
/* mapping field editor */
|
493 |
.wt_iew_mapping_field_editor_container{ display:none; }
|
494 |
.wt_iew_mapping_field_editor{ float:left; width:400px; padding:0px; background:#fff; margin:0px;}
|
496 |
.wt_iew_mapping_field_editor label{ float:left; width:100%; margin-bottom:3px; font-weight:bold; font-size:13px; color:#333; }
|
497 |
.wt_iew_mapping_field_editor_box{border:solid 1px #ddd; float:left; width:100%; height:auto; min-height:50px; padding:3px; margin-bottom:10px; margin-top:5px;}
|
498 |
.wt_iew_mapping_field_editor_box textarea{border:none; float:left; width:100%; height:50px; outline:none; resize:none;}
|
499 |
+
.wt_iew_mapping_field_editor_box input[type="text"]{width:98%; font-size:12px;}
|
500 |
.wt_iew_mapping_field_editor_box input[type="text"]::placeholder{ font-size:12px; }
|
501 |
.wt_iew_mapping_field_editor_info{ margin:0px; }
|
502 |
.wt_iew_mapping_field_editor_er{ margin:0px; color:red; }
|
1295 |
margin: 0 0 0 12px;
|
1296 |
color: #5D63D9;
|
1297 |
}
|
1298 |
+
.rtl .wt-import-export-upsell-small-wrapper .wt-ierpro-name-small h4{
|
1299 |
+
margin: 0 12px 0 0px;
|
1300 |
+
}
|
1301 |
.wt-import-export-upsell-small-wrapper .wt-ierpro-mainfeatures ul{
|
1302 |
padding: 0;
|
1303 |
margin: 15px 25px 20px 25px;
|
admin/js/wt-import-export-for-woo-admin.js
CHANGED
@@ -513,6 +513,17 @@ var wt_iew_popover=
|
|
513 |
}
|
514 |
|
515 |
var cr_elm=jQuery(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
516 |
if(cr_elm.attr('data-popup-opened')==1)
|
517 |
{
|
518 |
jQuery('[data-wt_iew_popover="1"]').attr('data-popup-opened',0);
|
@@ -550,7 +561,7 @@ var wt_iew_popover=
|
|
550 |
pp_html=cr_elm.attr('data-content');
|
551 |
}
|
552 |
pp_elm.css({'display':'block'}).find('.wt_iew_popover-content').html(pp_html);
|
553 |
-
pp_elm.find('.wt_iew_popover-footer').show();
|
554 |
var cr_elm_w=cr_elm.width();
|
555 |
var cr_elm_h=cr_elm.height();
|
556 |
var pp_elm_w=pp_elm.width();
|
@@ -559,6 +570,34 @@ var wt_iew_popover=
|
|
559 |
var cr_elm_pos_t=cr_elm_pos.top-((pp_elm_h-cr_elm_h)/4);
|
560 |
var cr_elm_pos_l=cr_elm_pos.left+cr_elm_w;
|
561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
562 |
cr_elm_pos_t=cr_elm_pos_t+10; /* 10 px buffer for input span element padding */
|
563 |
|
564 |
pp_elm.find('.wt_iew_popover-title-text').html(ttle);
|
@@ -566,6 +605,16 @@ var wt_iew_popover=
|
|
566 |
jQuery('.wt_iew_target_column').html(target_elm_label);
|
567 |
jQuery('.wt_iew_popover-content').find('.wt_iew_mapping_field_editor_expression').val(cr_elm.siblings('.columns_val').val());
|
568 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
569 |
wt_iew_popover.set_active_row(cr_elm);
|
570 |
pp_elm.css({'display':'block','opacity':0, 'top':cr_elm_pos_t,'left':cr_elm_pos_l}).stop(true,true).animate({'left':cr_elm_pos_l+20,'opacity':1}, 500, function(){
|
571 |
jQuery('.wt_iew_mapping_field_editor_column_search').focus();
|
@@ -608,6 +657,36 @@ var wt_iew_popover=
|
|
608 |
wt_iew_basic_import.mapping_fields_selected_count(click_elm.parents('table'));
|
609 |
}
|
610 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
611 |
},
|
612 |
regclosePop:function()
|
613 |
{
|
513 |
}
|
514 |
|
515 |
var cr_elm=jQuery(this);
|
516 |
+
|
517 |
+
if(!cr_elm.hasClass('dashicons')){
|
518 |
+
jQuery('.wt_iew_mapping_field_editor_top').hide();
|
519 |
+
jQuery('.wt_iew_mapping_field_editor_bottom').hide();
|
520 |
+
|
521 |
+
}else{
|
522 |
+
jQuery('.wt_iew_mapping_field_editor_top').show();
|
523 |
+
jQuery('.wt_iew_mapping_field_editor_bottom').show();
|
524 |
+
var cr_elm = jQuery(this).closest('td').prev('td').find('span:first');
|
525 |
+
}
|
526 |
+
|
527 |
if(cr_elm.attr('data-popup-opened')==1)
|
528 |
{
|
529 |
jQuery('[data-wt_iew_popover="1"]').attr('data-popup-opened',0);
|
561 |
pp_html=cr_elm.attr('data-content');
|
562 |
}
|
563 |
pp_elm.css({'display':'block'}).find('.wt_iew_popover-content').html(pp_html);
|
564 |
+
//pp_elm.find('.wt_iew_popover-footer').show();
|
565 |
var cr_elm_w=cr_elm.width();
|
566 |
var cr_elm_h=cr_elm.height();
|
567 |
var pp_elm_w=pp_elm.width();
|
570 |
var cr_elm_pos_t=cr_elm_pos.top-((pp_elm_h-cr_elm_h)/4);
|
571 |
var cr_elm_pos_l=cr_elm_pos.left+cr_elm_w;
|
572 |
|
573 |
+
|
574 |
+
jQuery('.wt_iew_popover').removeClass('wt-pop-hidden');
|
575 |
+
if(!jQuery(this).hasClass('dashicons')){
|
576 |
+
var cr_elm_pos_l=cr_elm_pos.left-20;
|
577 |
+
var cr_elm_pos_t=cr_elm_pos.top+cr_elm_h+3;
|
578 |
+
jQuery('.wt_iew_popover').addClass('wt-pop-hidden');
|
579 |
+
jQuery('.wt_iew_popover-content').css('padding', '0');
|
580 |
+
jQuery( '.wt_iew_mapping_popup_label' ).hide();
|
581 |
+
jQuery('.wt_iew_mapping_field_editor_box').css('margin-bottom', '0');
|
582 |
+
jQuery('.wt_iew_mapping_field_editor_box').css('margin-top', '0');
|
583 |
+
jQuery('.wt_iew_mapping_field_editor_box').css({'border-radius': 0});
|
584 |
+
var quick_map_w = jQuery('.wt_iew_mapping_field_val').width()+10;
|
585 |
+
if(quick_map_w < 250){
|
586 |
+
quick_map_w = 250;
|
587 |
+
}
|
588 |
+
jQuery('.wt_iew_mapping_field_editor').css('width', quick_map_w);
|
589 |
+
jQuery('.wt_iew_mapping_field_selector_box').css('height', '320');
|
590 |
+
jQuery('.wt-input-column-search').css({'top':15, 'left': 15});
|
591 |
+
}else{
|
592 |
+
jQuery('.wt_iew_popover-content').css('padding', '15');
|
593 |
+
jQuery( '.wt_iew_mapping_popup_label' ).show();
|
594 |
+
jQuery('.wt_iew_mapping_field_editor_box').css({'margin-bottom':10, 'margin-top':5});
|
595 |
+
jQuery('.wt_iew_mapping_field_editor').css('width', '400');
|
596 |
+
jQuery('.wt_iew_mapping_field_selector_box').css('height', '200');
|
597 |
+
jQuery('.wt-input-column-search').css({'top':272, 'left': 30});
|
598 |
+
jQuery('.wt_iew_mapping_field_editor_box').css({'border-radius': 5});
|
599 |
+
}
|
600 |
+
|
601 |
cr_elm_pos_t=cr_elm_pos_t+10; /* 10 px buffer for input span element padding */
|
602 |
|
603 |
pp_elm.find('.wt_iew_popover-title-text').html(ttle);
|
605 |
jQuery('.wt_iew_target_column').html(target_elm_label);
|
606 |
jQuery('.wt_iew_popover-content').find('.wt_iew_mapping_field_editor_expression').val(cr_elm.siblings('.columns_val').val());
|
607 |
|
608 |
+
var animation_speed = 500;
|
609 |
+
if(!jQuery(this).hasClass('dashicons')){
|
610 |
+
jQuery('.wt_iew_popover-footer').hide();
|
611 |
+
jQuery('.wt_iew_popover-title').hide();
|
612 |
+
animation_speed = 0;
|
613 |
+
}else{
|
614 |
+
jQuery('.wt_iew_popover-footer').show();
|
615 |
+
jQuery('.wt_iew_popover-title').show();
|
616 |
+
}
|
617 |
+
|
618 |
wt_iew_popover.set_active_row(cr_elm);
|
619 |
pp_elm.css({'display':'block','opacity':0, 'top':cr_elm_pos_t,'left':cr_elm_pos_l}).stop(true,true).animate({'left':cr_elm_pos_l+20,'opacity':1}, 500, function(){
|
620 |
jQuery('.wt_iew_mapping_field_editor_column_search').focus();
|
657 |
wt_iew_basic_import.mapping_fields_selected_count(click_elm.parents('table'));
|
658 |
}
|
659 |
});
|
660 |
+
|
661 |
+
jQuery(document).on('click', '.wt_iew_mapping_field_selector>li' ,function (e) {
|
662 |
+
if(!jQuery('.wt_iew_popover-footer').is(':visible')){
|
663 |
+
var click_elm = jQuery('[name="wt_iew_popover_do_action"]').data('click-elm');
|
664 |
+
var vl= jQuery(this).attr('data-val');
|
665 |
+
var html_vl=vl;
|
666 |
+
if(wt_iew_popover.action_module=='import')
|
667 |
+
{
|
668 |
+
var html_vl='{'+vl+'}';
|
669 |
+
}
|
670 |
+
|
671 |
+
click_elm.html(html_vl);
|
672 |
+
click_elm.siblings('.columns_val').val(html_vl);
|
673 |
+
wt_iew_popover.closePop();
|
674 |
+
|
675 |
+
if(wt_iew_popover.action_module=='import')
|
676 |
+
{
|
677 |
+
if(vl=="")
|
678 |
+
{
|
679 |
+
click_elm.parents('tr').find('.wt_iew_mapping_checkbox_sub').prop('checked', false);
|
680 |
+
}else
|
681 |
+
{
|
682 |
+
click_elm.parents('tr').find('.wt_iew_mapping_checkbox_sub').prop('checked', true);
|
683 |
+
|
684 |
+
}
|
685 |
+
wt_iew_basic_import.mapping_fields_selected_count(click_elm.parents('table'));
|
686 |
+
}
|
687 |
+
}
|
688 |
+
});
|
689 |
+
|
690 |
},
|
691 |
regclosePop:function()
|
692 |
{
|
admin/modules/import/assets/js/main.js
CHANGED
@@ -104,7 +104,7 @@ var wt_iew_basic_import=(function( $ ) {
|
|
104 |
});
|
105 |
},
|
106 |
load_meta_mapping_fields:function()
|
107 |
-
{
|
108 |
this.prepare_ajax_data('get_meta_mapping_fields', 'json');
|
109 |
this.ajax_data['file_head_meta']=JSON.stringify(wt_iew_file_head_remaining_meta);
|
110 |
this.ajax_data['rerun_id']=this.rerun_id;
|
@@ -117,13 +117,14 @@ var wt_iew_basic_import=(function( $ ) {
|
|
117 |
success:function(data)
|
118 |
{
|
119 |
if(data.status==1)
|
120 |
-
{
|
121 |
$.each(data.meta_html, function(meta_id, meta_content){
|
122 |
$('.meta_mapping_box_con[data-key="'+meta_id+'"]').html(meta_content).attr('data-loaded', 1);
|
123 |
});
|
124 |
wt_iew_basic_import.enable_sortable();
|
125 |
wt_iew_basic_import.reg_mapping_field_bulk_action();
|
126 |
wt_iew_popover.Set();
|
|
|
127 |
}else
|
128 |
{
|
129 |
$('.meta_mapping_box_con[data-loaded="0"]').html('<div class="wt_iew_import_step_loader">'+wt_iew_basic_params.msgs.error+'</div>');
|
@@ -1021,6 +1022,13 @@ var wt_iew_basic_import=(function( $ ) {
|
|
1021 |
this.mapping_box_accordian();
|
1022 |
this.reg_mapping_field_bulk_action();
|
1023 |
wt_iew_popover.Set();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1024 |
wt_iew_basic_import.warn_on_refresh();
|
1025 |
}
|
1026 |
else if(step=='advanced')
|
@@ -1182,7 +1190,7 @@ var wt_iew_basic_import=(function( $ ) {
|
|
1182 |
mapping_field_editor_output_preview:function()
|
1183 |
{
|
1184 |
mapping_field_editor.output_preview();
|
1185 |
-
},
|
1186 |
is_object:function(obj)
|
1187 |
{
|
1188 |
return obj !== undefined && obj !== null && obj.constructor == Object;
|
@@ -1317,7 +1325,7 @@ var wt_iew_basic_import=(function( $ ) {
|
|
1317 |
out=this.add_sample_data(str);
|
1318 |
out=this.do_arithmetic(out);
|
1319 |
this.popover.find('.wt_iew_mapping_field_editor_sample').html(out);
|
1320 |
-
},
|
1321 |
add_sample_data:function(str)
|
1322 |
{
|
1323 |
const regex = /\{([^}]+)\}/g;
|
104 |
});
|
105 |
},
|
106 |
load_meta_mapping_fields:function()
|
107 |
+
{
|
108 |
this.prepare_ajax_data('get_meta_mapping_fields', 'json');
|
109 |
this.ajax_data['file_head_meta']=JSON.stringify(wt_iew_file_head_remaining_meta);
|
110 |
this.ajax_data['rerun_id']=this.rerun_id;
|
117 |
success:function(data)
|
118 |
{
|
119 |
if(data.status==1)
|
120 |
+
{
|
121 |
$.each(data.meta_html, function(meta_id, meta_content){
|
122 |
$('.meta_mapping_box_con[data-key="'+meta_id+'"]').html(meta_content).attr('data-loaded', 1);
|
123 |
});
|
124 |
wt_iew_basic_import.enable_sortable();
|
125 |
wt_iew_basic_import.reg_mapping_field_bulk_action();
|
126 |
wt_iew_popover.Set();
|
127 |
+
$('.wt_iew_step_head_post_type_name').html(wt_iew_basic_import.to_import_title);
|
128 |
}else
|
129 |
{
|
130 |
$('.meta_mapping_box_con[data-loaded="0"]').html('<div class="wt_iew_import_step_loader">'+wt_iew_basic_params.msgs.error+'</div>');
|
1022 |
this.mapping_box_accordian();
|
1023 |
this.reg_mapping_field_bulk_action();
|
1024 |
wt_iew_popover.Set();
|
1025 |
+
|
1026 |
+
jQuery(".wt-iew-tips").tipTip({'attribute': 'data-wt-iew-tip', 'delay': 0, 'edgeOffset':8});
|
1027 |
+
jQuery(document).keyup(function(e) {
|
1028 |
+
if (e.key === "Escape") { // Escape key maps to keycode 27
|
1029 |
+
wt_iew_popover.closePop();
|
1030 |
+
}
|
1031 |
+
});
|
1032 |
wt_iew_basic_import.warn_on_refresh();
|
1033 |
}
|
1034 |
else if(step=='advanced')
|
1190 |
mapping_field_editor_output_preview:function()
|
1191 |
{
|
1192 |
mapping_field_editor.output_preview();
|
1193 |
+
},
|
1194 |
is_object:function(obj)
|
1195 |
{
|
1196 |
return obj !== undefined && obj !== null && obj.constructor == Object;
|
1325 |
out=this.add_sample_data(str);
|
1326 |
out=this.do_arithmetic(out);
|
1327 |
this.popover.find('.wt_iew_mapping_field_editor_sample').html(out);
|
1328 |
+
},
|
1329 |
add_sample_data:function(str)
|
1330 |
{
|
1331 |
const regex = /\{([^}]+)\}/g;
|
admin/modules/import/views/_import_mapping_page.php
CHANGED
@@ -13,37 +13,35 @@ if (!defined('ABSPATH')) {
|
|
13 |
|
14 |
<!-- Mapping field editor popup -->
|
15 |
<div class="wt_iew_mapping_field_editor_container" data-title="<?php _e('Set value for column:');?> <span class='wt_iew_target_column'></span>" data-module="import">
|
16 |
-
<div class="wt_iew_mapping_field_editor">
|
17 |
-
<
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
<
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
<textarea class="wt_iew_mapping_field_editor_expression"></textarea>
|
29 |
</div>
|
30 |
-
|
31 |
-
<label><?php _e('Input file columns');?></label>
|
32 |
<div class="wt_iew_mapping_field_editor_box">
|
33 |
-
<input type="text" class="wt_iew_mapping_field_editor_column_search" placeholder="<?php _e('Type here to search');?>">
|
34 |
<div class="wt_iew_mapping_field_selector_box">
|
35 |
<ul class="wt_iew_mapping_field_selector">
|
36 |
<?php
|
37 |
foreach ($file_heading_default_fields as $key => $value)
|
38 |
{
|
39 |
?>
|
40 |
-
|
41 |
<?php
|
42 |
}
|
43 |
foreach ($file_heading_meta_fields as $key => $value)
|
44 |
{
|
45 |
?>
|
46 |
-
|
47 |
<?php
|
48 |
}
|
49 |
?>
|
@@ -51,13 +49,14 @@ if (!defined('ABSPATH')) {
|
|
51 |
<div class="wt_iew_mapping_field_selector_no_column"><?php _e('No column found.');?></div>
|
52 |
</div>
|
53 |
</div>
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
61 |
</div>
|
62 |
</div>
|
63 |
</div>
|
@@ -81,14 +80,15 @@ if (!defined('ABSPATH')) {
|
|
81 |
</div>
|
82 |
<div style="clear:both;"></div>
|
83 |
<div class="meta_mapping_box_con" data-sortable="0" data-loaded="1" data-field-validated="0" data-key="" style="display:inline-block;">
|
84 |
-
<table class="wt-iew-mapping-tb wt-iew-importer-default-mapping-tb">
|
85 |
<thead>
|
86 |
<tr>
|
87 |
<th>
|
88 |
<input type="checkbox" name="" class="wt_iew_mapping_checkbox_main">
|
89 |
</th>
|
90 |
-
<th width="35%"
|
91 |
-
<th><?php
|
|
|
92 |
</tr>
|
93 |
</thead>
|
94 |
<tbody>
|
13 |
|
14 |
<!-- Mapping field editor popup -->
|
15 |
<div class="wt_iew_mapping_field_editor_container" data-title="<?php _e('Set value for column:');?> <span class='wt_iew_target_column'></span>" data-module="import">
|
16 |
+
<div class="wt_iew_mapping_field_editor">
|
17 |
+
<div class="wt_iew_mapping_field_editor_top">
|
18 |
+
<p class="wt_iew_mapping_field_editor_info">
|
19 |
+
<?php esc_html_e('If you want to compute or combine any column values during import you can do it below.'); ?>
|
20 |
+
(<a target="_blank" href="https://www.webtoffee.com/evaluation-field-in-product-export-import-plugin-for-woocommerce/"><?php esc_html_e('Learn More'); ?>)</a>
|
21 |
+
<br/><span style="font-size: 95%;color:#6e6d6d;"><b><?php esc_html_e(' Supported operators:'); ?> +, *, /, -, ()</b></span><br/>
|
22 |
+
<br/><i><span style="font-size: 95%;color:#6e6d6d;"><?php esc_html_e(' Example:'); ?> [{stock}+5] or [{regular_price}+(9/100)*{regular_price}]</span></i>
|
23 |
+
</p>
|
24 |
+
<p class="wt_iew_mapping_field_editor_er"></p>
|
25 |
+
<div class="wt_iew_mapping_field_editor_box">
|
26 |
+
<textarea class="wt_iew_mapping_field_editor_expression"></textarea>
|
27 |
+
</div>
|
|
|
28 |
</div>
|
29 |
+
<label class="wt_iew_mapping_popup_label"><?php _e('Input file columns');?></label>
|
|
|
30 |
<div class="wt_iew_mapping_field_editor_box">
|
31 |
+
<input type="text" class="wt_iew_mapping_field_editor_column_search" placeholder="<?php _e('Type here to search');?>"><span style="float: right;position: absolute;top: 15px; left: 25px;" class="dashicons dashicons-search wt-input-column-search"></span>
|
32 |
<div class="wt_iew_mapping_field_selector_box">
|
33 |
<ul class="wt_iew_mapping_field_selector">
|
34 |
<?php
|
35 |
foreach ($file_heading_default_fields as $key => $value)
|
36 |
{
|
37 |
?>
|
38 |
+
<li title="<?php echo $click_to_use;?>" data-val="<?php echo $key;?>"><?php echo $key;?><br/><span style="color:#cdb2b2;"><?php echo Wt_Iew_IE_Basic_Helper::wt_truncate($value, 80);?></span></li>
|
39 |
<?php
|
40 |
}
|
41 |
foreach ($file_heading_meta_fields as $key => $value)
|
42 |
{
|
43 |
?>
|
44 |
+
<li title="<?php echo $click_to_use;?>" data-val="<?php echo $key;?>"><?php echo $key;?><br/><span style="color:#cdb2b2;"><?php echo Wt_Iew_IE_Basic_Helper::wt_truncate($value, 80);?></span></li>
|
45 |
<?php
|
46 |
}
|
47 |
?>
|
49 |
<div class="wt_iew_mapping_field_selector_no_column"><?php _e('No column found.');?></div>
|
50 |
</div>
|
51 |
</div>
|
52 |
+
<div class="wt_iew_mapping_field_editor_bottom">
|
53 |
+
<label><?php _e('Preview');?></label>
|
54 |
+
<p class="wt_iew_mapping_field_editor_info">
|
55 |
+
<?php _e('Sample value based on the first record from input file.'); ?>
|
56 |
+
</p>
|
57 |
+
<div class="wt_iew_mapping_field_editor_box" style="max-height:80px; overflow:auto; margin-bottom:0px; border:dashed 1px #ccc; padding:5px;">
|
58 |
+
<div class="wt_iew_mapping_field_editor_sample"></div>
|
59 |
+
</div>
|
60 |
</div>
|
61 |
</div>
|
62 |
</div>
|
80 |
</div>
|
81 |
<div style="clear:both;"></div>
|
82 |
<div class="meta_mapping_box_con" data-sortable="0" data-loaded="1" data-field-validated="0" data-key="" style="display:inline-block;">
|
83 |
+
<table class="wt-iew-mapping-tb wt-iew-mapping-tb-imp wt-iew-importer-default-mapping-tb">
|
84 |
<thead>
|
85 |
<tr>
|
86 |
<th>
|
87 |
<input type="checkbox" name="" class="wt_iew_mapping_checkbox_main">
|
88 |
</th>
|
89 |
+
<th width="35%"><span class="wt_iew_step_head_post_type_name"></span> <?php esc_html_e( 'fields' );?></th>
|
90 |
+
<th><?php esc_html_e( 'File columns' );?></th>
|
91 |
+
<th><?php esc_html_e( 'Transform' );?></th>
|
92 |
</tr>
|
93 |
</thead>
|
94 |
<tbody>
|
admin/modules/import/views/_import_mapping_tr_html.php
CHANGED
@@ -14,4 +14,7 @@ if (!defined('ABSPATH')) {
|
|
14 |
<input type="hidden" name="columns_val[]" class="columns_val" value="<?php echo $val;?>" data-type="<?php echo $type;?>">
|
15 |
<span data-wt_iew_popover="1" data-title="" data-content-container=".wt_iew_mapping_field_editor_container" class="wt_iew_mapping_field_val"><?php echo $val;?></span>
|
16 |
</td>
|
|
|
|
|
|
|
17 |
</tr>
|
14 |
<input type="hidden" name="columns_val[]" class="columns_val" value="<?php echo $val;?>" data-type="<?php echo $type;?>">
|
15 |
<span data-wt_iew_popover="1" data-title="" data-content-container=".wt_iew_mapping_field_editor_container" class="wt_iew_mapping_field_val"><?php echo $val;?></span>
|
16 |
</td>
|
17 |
+
<td>
|
18 |
+
<span style="margin-left:20px;cursor:pointer" data-wt_iew_popover="1" data-title="" data-content-container=".wt_iew_mapping_field_editor_container" class="dashicons dashicons-edit wt-iew-tips" data-wt-iew-tip="<span class='wt_iew_tooltip_span'><?php _e('Use expression');?></span>"></span>
|
19 |
+
</td>
|
20 |
</tr>
|
admin/modules/import/views/_import_meta_step_page.php
CHANGED
@@ -3,7 +3,7 @@ if (!defined('ABSPATH')) {
|
|
3 |
exit;
|
4 |
}
|
5 |
?>
|
6 |
-
<table class="wt-iew-mapping-tb wt-iew-importer-meta-mapping-tb" data-field-type="<?php echo $meta_mapping_screen_field_key; ?>">
|
7 |
<thead>
|
8 |
<tr>
|
9 |
<th>
|
@@ -13,8 +13,9 @@ if (!defined('ABSPATH')) {
|
|
13 |
?>
|
14 |
<input type="checkbox" name="" class="wt_iew_mapping_checkbox_main" <?php echo $checked_attr; ?>>
|
15 |
</th>
|
16 |
-
<th width="35%"
|
17 |
-
<th><?php _e('
|
|
|
18 |
</tr>
|
19 |
</thead>
|
20 |
<tbody>
|
3 |
exit;
|
4 |
}
|
5 |
?>
|
6 |
+
<table class="wt-iew-mapping-tb wt-iew-importer-meta-mapping-tb wt-iew-mapping-tb-imp" data-field-type="<?php echo $meta_mapping_screen_field_key; ?>">
|
7 |
<thead>
|
8 |
<tr>
|
9 |
<th>
|
13 |
?>
|
14 |
<input type="checkbox" name="" class="wt_iew_mapping_checkbox_main" <?php echo $checked_attr; ?>>
|
15 |
</th>
|
16 |
+
<th width="35%"><span class="wt_iew_step_head_post_type_name"></span> <?php esc_html_e( 'fields' );?></th>
|
17 |
+
<th><?php _e('File columns');?></th>
|
18 |
+
<th><?php esc_html_e( 'Transform' );?></th>
|
19 |
</tr>
|
20 |
</thead>
|
21 |
<tbody>
|
admin/views/market_front.php
CHANGED
@@ -12,7 +12,7 @@ if (!defined('ABSPATH')) {
|
|
12 |
<img src="<?php echo WT_P_IEW_PLUGIN_URL; ?>assets/images/gopro/order-ie.svg" alt="featured img" width="36" height="36">
|
13 |
<h4 class="wt-ier-product-name-small"><?php _e('Order, Coupon, Subscription Import Export for WooCommerce'); ?></h4>
|
14 |
</div>
|
15 |
-
<p style="margin
|
16 |
<div class="wt-ier-product-features wt-ier-gopro-cta-small wt-ierpro-features">
|
17 |
<ul class="ticked-list wt-ierpro-allfeat">
|
18 |
<li><?php _e('Import & export in Excel, XML, CSV, and TSV formats'); ?></li>
|
@@ -36,7 +36,7 @@ if (!defined('ABSPATH')) {
|
|
36 |
<img src="<?php echo WT_P_IEW_PLUGIN_URL; ?>assets/images/gopro/product-ie.svg" alt="featured img" width="36" height="36">
|
37 |
<h4 class="wt-ier-product-name-small"><?php _e('Product Import Export Plugin For WooCommerce'); ?></h4>
|
38 |
</div>
|
39 |
-
<p style="margin
|
40 |
<div class="wt-ier-product-features wt-ier-gopro-cta-small wt-ierpro-features">
|
41 |
<ul class="ticked-list wt-ierpro-allfeat">
|
42 |
<li><?php _e('Export and import variable products, subscription'); ?></li>
|
@@ -60,7 +60,7 @@ if (!defined('ABSPATH')) {
|
|
60 |
<img src="<?php echo WT_P_IEW_PLUGIN_URL; ?>assets/images/gopro/user-ie.svg" alt="featured img" width="36" height="36">
|
61 |
<h4 class="wt-ier-product-name-small"><?php _e('WordPress Users & WooCommerce Customers Import Export'); ?></h4>
|
62 |
</div>
|
63 |
-
<p style="margin
|
64 |
<div class="wt-ier-product-features wt-ier-gopro-cta-small wt-ierpro-features">
|
65 |
<ul class="ticked-list wt-ierpro-allfeat">
|
66 |
<li><?php _e('Import & export in Excel, XML, CSV, and TSV formats'); ?></li>
|
12 |
<img src="<?php echo WT_P_IEW_PLUGIN_URL; ?>assets/images/gopro/order-ie.svg" alt="featured img" width="36" height="36">
|
13 |
<h4 class="wt-ier-product-name-small"><?php _e('Order, Coupon, Subscription Import Export for WooCommerce'); ?></h4>
|
14 |
</div>
|
15 |
+
<p style="margin-<?php echo (is_rtl()) ? 'right' : 'left'; ?>:25px;"><b><?php _e('All free version features'); ?> +</b></p>
|
16 |
<div class="wt-ier-product-features wt-ier-gopro-cta-small wt-ierpro-features">
|
17 |
<ul class="ticked-list wt-ierpro-allfeat">
|
18 |
<li><?php _e('Import & export in Excel, XML, CSV, and TSV formats'); ?></li>
|
36 |
<img src="<?php echo WT_P_IEW_PLUGIN_URL; ?>assets/images/gopro/product-ie.svg" alt="featured img" width="36" height="36">
|
37 |
<h4 class="wt-ier-product-name-small"><?php _e('Product Import Export Plugin For WooCommerce'); ?></h4>
|
38 |
</div>
|
39 |
+
<p style="margin-<?php echo (is_rtl()) ? 'right' : 'left'; ?>:25px;"><b><?php _e('All free version features'); ?> +</b></p>
|
40 |
<div class="wt-ier-product-features wt-ier-gopro-cta-small wt-ierpro-features">
|
41 |
<ul class="ticked-list wt-ierpro-allfeat">
|
42 |
<li><?php _e('Export and import variable products, subscription'); ?></li>
|
60 |
<img src="<?php echo WT_P_IEW_PLUGIN_URL; ?>assets/images/gopro/user-ie.svg" alt="featured img" width="36" height="36">
|
61 |
<h4 class="wt-ier-product-name-small"><?php _e('WordPress Users & WooCommerce Customers Import Export'); ?></h4>
|
62 |
</div>
|
63 |
+
<p style="margin-<?php echo (is_rtl()) ? 'right' : 'left'; ?>:25px;"><b><?php _e('All free version features'); ?> +</b></p>
|
64 |
<div class="wt-ier-product-features wt-ier-gopro-cta-small wt-ierpro-features">
|
65 |
<ul class="ticked-list wt-ierpro-allfeat">
|
66 |
<li><?php _e('Import & export in Excel, XML, CSV, and TSV formats'); ?></li>
|
helpers/class-wt-import-export-helper.php
CHANGED
@@ -226,6 +226,15 @@ if(!class_exists('Wt_Iew_IE_Basic_Helper'))
|
|
226 |
<?php
|
227 |
}
|
228 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
}
|
230 |
|
231 |
}
|
226 |
<?php
|
227 |
}
|
228 |
}
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
public static function wt_truncate($text, $length, $dots = "...") {
|
233 |
+
|
234 |
+
$text = (strlen($text) > $length) ? substr($text, 0, $length - strlen($dots)) . $dots : $text;
|
235 |
+
return esc_html($text);
|
236 |
+
}
|
237 |
+
|
238 |
}
|
239 |
|
240 |
}
|
includes/class-wt-import-export-for-woo.php
CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
|
|
80 |
if ( defined( 'WT_P_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_P_IEW_VERSION;
|
82 |
} else {
|
83 |
-
$this->version = '2.2.
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
80 |
if ( defined( 'WT_P_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_P_IEW_VERSION;
|
82 |
} else {
|
83 |
+
$this->version = '2.2.6';
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
product-import-export-for-woo.php
CHANGED
@@ -5,12 +5,12 @@
|
|
5 |
Description: Import and Export Products From and To your WooCommerce Store.
|
6 |
Author: WebToffee
|
7 |
Author URI: https://www.webtoffee.com/product/product-import-export-woocommerce/
|
8 |
-
Version: 2.2.
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Text Domain: product-import-export-for-woo
|
12 |
Domain Path: /languages
|
13 |
-
WC tested up to: 7.
|
14 |
Requires at least: 3.0
|
15 |
Requires PHP: 5.6
|
16 |
*/
|
@@ -46,7 +46,7 @@ if ( !defined( 'WT_IEW_DEBUG_BASIC_TROUBLESHOOT' ) ) {
|
|
46 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
47 |
* Rename this for your plugin and update it as you release new versions.
|
48 |
*/
|
49 |
-
define( 'WT_P_IEW_VERSION', '2.2.
|
50 |
|
51 |
/**
|
52 |
* The code that runs during plugin activation.
|
5 |
Description: Import and Export Products From and To your WooCommerce Store.
|
6 |
Author: WebToffee
|
7 |
Author URI: https://www.webtoffee.com/product/product-import-export-woocommerce/
|
8 |
+
Version: 2.2.6
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Text Domain: product-import-export-for-woo
|
12 |
Domain Path: /languages
|
13 |
+
WC tested up to: 7.1
|
14 |
Requires at least: 3.0
|
15 |
Requires PHP: 5.6
|
16 |
*/
|
46 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
47 |
* Rename this for your plugin and update it as you release new versions.
|
48 |
*/
|
49 |
+
define( 'WT_P_IEW_VERSION', '2.2.6' );
|
50 |
|
51 |
/**
|
52 |
* The code that runs during plugin activation.
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: webtoffee
|
|
3 |
Donate link: https://www.webtoffee.com/plugins/
|
4 |
Tags: product export, product import, CSV import export, woocommerce, CSV, product, export, import, woocommerce product import, woocommerce import products, export woocommerce products, import products into woocommerce
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 6.
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -19,7 +19,7 @@ Inventory update, syncing products, data filtration, automatic column mapping ar
|
|
19 |
|
20 |
<strong>To import and export variable products, upgrade to the premium version of <a href="https://www.webtoffee.com/product/product-import-export-woocommerce/">WooCommerce Product Import Export</a></strong>.
|
21 |
|
22 |
-
== PRODUCT IMPORT EXPORT FOR WOOCOMMERCE
|
23 |
|
24 |
The free version of the Product Import Export for WooCommerce plugin imports and exports the following WooCommerce product types:
|
25 |
|
@@ -57,7 +57,7 @@ With this plugin, you can export and import WooCommerce products to and from a C
|
|
57 |
* <strong>Save frequently used import/export configurations</strong> as templates and use the template for future imports and exports.
|
58 |
* The plugin <strong>stores all the past imports and exports</strong> and <strong>lets you re-run</strong> them when needed.
|
59 |
* <strong>Easy debugging:</strong> View and download import log for debugging purpose.
|
60 |
-
* Tested OK with WooCommerce 7.
|
61 |
|
62 |
###COMPATIBLE PLUGINS###
|
63 |
|
@@ -96,7 +96,7 @@ However, if you want to import only the product categories of a WooCommerce stor
|
|
96 |
Export the WooCommerce products based on your requirement. You can filter the product data and export the products based on multiple data filtration criteria, such as category, stock, status, product type, and much more.
|
97 |
|
98 |
|
99 |
-
###SETUP GUIDE
|
100 |
|
101 |
For learning more about the setup of the Product Import Export plugin for WooCommerce, refer to its <a href="https://www.webtoffee.com/product-import-export-plugin-woocommerce-user-guide/">setup guide</a>.
|
102 |
|
@@ -118,7 +118,7 @@ The WooCommerce Product Import Export Plugin takes the CSV (Comma-Separated Valu
|
|
118 |
|
119 |
This is to match each field of a CSV file to the field of a particular product which otherwise Admin needs to input manually. For example, the post_title field gets mapped to the product name and the regular_price field gets mapped to the regular price of the product.
|
120 |
|
121 |
-
You can create the CSV from scratch or you can export products to get the format of the CSV. You can use a spreadsheet program, such as LibreOffice, Microsoft Excel, OpenOffice, or Google Spreadsheets for creating and modifying the CSV file. Save this file with extension
|
122 |
|
123 |
After entering all details about products in a spreadsheet, you can import products to your WooCommerce store. With this plugin, you can also export and download product details as a CSV.
|
124 |
|
@@ -131,19 +131,19 @@ The <a href="https://www.webtoffee.com/product/product-import-export-woocommerce
|
|
131 |
|
132 |
= PREMIUM VERSION FEATURES =
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
|
148 |
|
149 |
Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/product-import-export-woocommerce/">Product Import Export Plugin for WooCommerce</a> for more details.
|
@@ -155,10 +155,10 @@ Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/product-i
|
|
155 |
|
156 |
Other useful plugins from WebToffee for migrating WooCommerce/WordPress data:
|
157 |
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
|
163 |
|
164 |
= About webtoffee.com =
|
@@ -176,7 +176,7 @@ Other useful plugins from WebToffee for migrating WooCommerce/WordPress data:
|
|
176 |
|
177 |
= Import of attributes not working using the WooCommerce export CSV? =
|
178 |
|
179 |
-
Product import export plugin lets you import the CSV exported using WooCommerce default export tools by mapping all default fields automatically. However, due to the data format difference in the CSV, attribute fields aren
|
180 |
|
181 |
For more details, refer: <a href="https://www.webtoffee.com/how-to-import-product-attributes-exported-using-woocommerce-export-tool/">How to import product attributes exported using WooCommerce export tool?</a>
|
182 |
|
@@ -242,7 +242,11 @@ Yes, you can import grouped, affiliate/external products in addition to simple p
|
|
242 |
|
243 |
== CHANGELOG ==
|
244 |
|
245 |
-
= 2.2.
|
|
|
|
|
|
|
|
|
246 |
* WooCommerce 7.0 Tested OK.
|
247 |
* Enhancement: Set Min and Max limit for import and export default batch count in General setting page.
|
248 |
= 2.2.4 2022-08-26 =
|
@@ -622,6 +626,7 @@ Yes, you can import grouped, affiliate/external products in addition to simple p
|
|
622 |
|
623 |
== Upgrade Notice ==
|
624 |
|
625 |
-
= 2.2.
|
626 |
-
* WooCommerce 7.
|
627 |
-
*
|
|
3 |
Donate link: https://www.webtoffee.com/plugins/
|
4 |
Tags: product export, product import, CSV import export, woocommerce, CSV, product, export, import, woocommerce product import, woocommerce import products, export woocommerce products, import products into woocommerce
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.2.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
19 |
|
20 |
<strong>To import and export variable products, upgrade to the premium version of <a href="https://www.webtoffee.com/product/product-import-export-woocommerce/">WooCommerce Product Import Export</a></strong>.
|
21 |
|
22 |
+
== PRODUCT IMPORT EXPORT FOR WOOCOMMERCE - FREE IMPORT EXPORT PLUGIN ==
|
23 |
|
24 |
The free version of the Product Import Export for WooCommerce plugin imports and exports the following WooCommerce product types:
|
25 |
|
57 |
* <strong>Save frequently used import/export configurations</strong> as templates and use the template for future imports and exports.
|
58 |
* The plugin <strong>stores all the past imports and exports</strong> and <strong>lets you re-run</strong> them when needed.
|
59 |
* <strong>Easy debugging:</strong> View and download import log for debugging purpose.
|
60 |
+
* Tested OK with WooCommerce 7.1
|
61 |
|
62 |
###COMPATIBLE PLUGINS###
|
63 |
|
96 |
Export the WooCommerce products based on your requirement. You can filter the product data and export the products based on multiple data filtration criteria, such as category, stock, status, product type, and much more.
|
97 |
|
98 |
|
99 |
+
###SETUP GUIDE - PRODUCT IMPORT EXPORT FOR WOOCOMMERCE###
|
100 |
|
101 |
For learning more about the setup of the Product Import Export plugin for WooCommerce, refer to its <a href="https://www.webtoffee.com/product-import-export-plugin-woocommerce-user-guide/">setup guide</a>.
|
102 |
|
118 |
|
119 |
This is to match each field of a CSV file to the field of a particular product which otherwise Admin needs to input manually. For example, the post_title field gets mapped to the product name and the regular_price field gets mapped to the regular price of the product.
|
120 |
|
121 |
+
You can create the CSV from scratch or you can export products to get the format of the CSV. You can use a spreadsheet program, such as LibreOffice, Microsoft Excel, OpenOffice, or Google Spreadsheets for creating and modifying the CSV file. Save this file with extension ".CSV".
|
122 |
|
123 |
After entering all details about products in a spreadsheet, you can import products to your WooCommerce store. With this plugin, you can also export and download product details as a CSV.
|
124 |
|
131 |
|
132 |
= PREMIUM VERSION FEATURES =
|
133 |
|
134 |
+
✅ Export/Import simple, variable, grouped, external, subscription, and custom product types.</li>
|
135 |
+
✅ Export/Import WooCommerce bookings.</li>
|
136 |
+
✅ Export/Import custom fields(meta), third-party plugin fields and hidden meta.</li>
|
137 |
+
✅ Choose from XML/CSV/Excel format for import/export.</li>
|
138 |
+
✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Step_3_Fil_4">Various filter options for exporting products</a>
|
139 |
+
✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Step_3_Map_10">Map and transform fields during import</a>
|
140 |
+
✅ <a href="https://www.webtoffee.com/product-import-export-for-woocommerce/#Evaluate_f_11">Bulk edit/evaluate data during import</a>
|
141 |
+
✅ WPML support for simple products.</li>
|
142 |
+
✅ Import/Export file via FTP/SFTP.</li>
|
143 |
+
✅ <a href="https://www.webtoffee.com/exporting-importing-woocommerce-products-images-with-zip-file/#Exporting__0">Export product images as a separate zip file.</a></li>
|
144 |
+
✅ <a href="https://www.webtoffee.com/how-to-import-woocommerce-products-using-url/">Import from URL.</a></li>
|
145 |
+
✅ Automatic scheduled import and export.</li>
|
146 |
+
✅ <a href="https://www.webtoffee.com/product-import-export-plugin-third-party-compatibility/">Compatible with various third-party plugins.</a></li>
|
147 |
|
148 |
|
149 |
Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/product-import-export-woocommerce/">Product Import Export Plugin for WooCommerce</a> for more details.
|
155 |
|
156 |
Other useful plugins from WebToffee for migrating WooCommerce/WordPress data:
|
157 |
|
158 |
+
🔸 <a href="https://wordpress.org/plugins/users-customers-import-export-for-wp-woocommerce/">Import Export WordPress Users/Customers</a>: Import and export the users in WordPress and customers in your WooCommerce store using a CSV file with the help of this plugin.
|
159 |
+
🔸 <a href="https://wordpress.org/plugins/order-import-export-for-woocommerce/">Order/Coupon Import-Export for WooCommerce</a>: Import and export orders and/or coupons from your WooCommerce store using CSV with the plugin.
|
160 |
+
🔸 <a href="https://wordpress.org/plugins/comments-import-export-woocommerce/">WordPress Comment Import Export</a>: Easily import and export comments from one WordPress site to another.
|
161 |
+
🔸 <a href="https://wordpress.org/plugins/wp-migration-duplicator/">WordPress Backup & Migration</a>: Quickly migrate and backup entire WordPress site or selected files from one location to another. Backup to FTP, Google drive, Amazon S3, or local storage and easily restore them back.
|
162 |
|
163 |
|
164 |
= About webtoffee.com =
|
176 |
|
177 |
= Import of attributes not working using the WooCommerce export CSV? =
|
178 |
|
179 |
+
Product import export plugin lets you import the CSV exported using WooCommerce default export tools by mapping all default fields automatically. However, due to the data format difference in the CSV, attribute fields aren't supported at the moment. To successfully import the attributes, you can alter the attribute columns.
|
180 |
|
181 |
For more details, refer: <a href="https://www.webtoffee.com/how-to-import-product-attributes-exported-using-woocommerce-export-tool/">How to import product attributes exported using WooCommerce export tool?</a>
|
182 |
|
242 |
|
243 |
== CHANGELOG ==
|
244 |
|
245 |
+
= 2.2.6 2022-11-24 =
|
246 |
+
* WooCommerce 7.1 Tested OK.
|
247 |
+
* WordPress 6.1 Tested OK.
|
248 |
+
* Enhancement: Revised import mapping screen.
|
249 |
+
= 2.2.5 2022-10-20 =
|
250 |
* WooCommerce 7.0 Tested OK.
|
251 |
* Enhancement: Set Min and Max limit for import and export default batch count in General setting page.
|
252 |
= 2.2.4 2022-08-26 =
|
626 |
|
627 |
== Upgrade Notice ==
|
628 |
|
629 |
+
= 2.2.6 =
|
630 |
+
* WooCommerce 7.1 Tested OK.
|
631 |
+
* WordPress 6.1 Tested OK.
|
632 |
+
* Enhancement: Revised import mapping screen.
|