Version Description
2022-04-15 = * WC 6.3 Tested OK.
Download this release
Release Info
Developer | webtoffee |
Plugin | Import Export WordPress Users and WooCommerce Customers |
Version | 2.2.9 |
Comparing to | |
See all releases |
Code changes from version 2.2.8 to 2.2.9
- admin/class-wt-import-export-for-woo-admin.php +49 -8
- admin/classes/class-csvwriter.php +8 -1
- admin/css/wt-import-export-for-woo-admin.css +1 -0
- admin/modules/export/assets/js/main.js +14 -1
- admin/modules/export/export.php +14 -1
- admin/modules/export/views/_export_post_type_page.php +38 -0
- admin/modules/import/assets/js/main.js +16 -2
- admin/modules/import/views/_import_post_type_page.php +38 -0
- admin/modules/user/user.php +12 -2
- includes/class-wt-import-export-for-woo.php +3 -1
- readme.txt +6 -4
- users-customers-import-export-for-wp-woocommerce.php +3 -3
admin/class-wt-import-export-for-woo-admin.php
CHANGED
@@ -110,6 +110,15 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
|
|
110 |
wp_enqueue_script(WT_IEW_PLUGIN_ID_BASIC.'-tiptip', WT_U_IEW_PLUGIN_URL.'admin/js/tiptip.js', array('jquery'), WT_U_IEW_VERSION, false);
|
111 |
}
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
$params=array(
|
114 |
'nonces' => array(
|
115 |
'main' => wp_create_nonce(WT_IEW_PLUGIN_ID_BASIC),
|
@@ -136,43 +145,50 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
|
|
136 |
'url' => "https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Order_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
137 |
'name' => __('Order, Coupon, Subscription Export Import for WooCommerce'),
|
138 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/order-ie.svg',
|
139 |
-
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/03/Order_SampleCSV.csv"
|
|
|
140 |
),
|
141 |
'coupon' => array(
|
142 |
'url' => "https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Order_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
143 |
'name' => __('Order, Coupon, Subscription Export Import for WooCommerce'),
|
144 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/order-ie.svg',
|
145 |
-
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2016/09/Coupon_Sample_CSV.csv"
|
|
|
146 |
),
|
147 |
'product' => array(
|
148 |
'url' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
149 |
'name' => __('Product Import Export Plugin For WooCommerce'),
|
150 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/product-ie.svg',
|
151 |
-
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/03/Product_SampleCSV.csv"
|
|
|
152 |
),
|
153 |
'product_review' => array(
|
154 |
'url' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
155 |
'name' => __('Product Import Export Plugin For WooCommerce'),
|
156 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/product-ie.svg',
|
157 |
-
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/04/product_review_SampleCSV.csv"
|
|
|
158 |
),
|
159 |
'product_categories' => array(
|
160 |
'url' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
161 |
'name' => __('Product Import Export Plugin For WooCommerce'),
|
162 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/product-ie.svg',
|
163 |
-
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/09/Sample-CSV-of-product-categories.csv"
|
|
|
164 |
),
|
165 |
'product_tags' => array(
|
166 |
'url' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
167 |
'name' => __('Product Import Export Plugin For WooCommerce'),
|
168 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/product-ie.svg',
|
169 |
-
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/09/Sample-CSV-with-product-tags.csv"
|
|
|
170 |
),
|
171 |
'user' => array(
|
172 |
'url' => "https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=User_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
173 |
'name' => __('WordPress Users & WooCommerce Customers Import Export'),
|
174 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/user-ie.svg',
|
175 |
-
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2020/10/Sample_Users.csv"
|
|
|
176 |
)
|
177 |
)
|
178 |
);
|
@@ -282,7 +298,7 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
|
|
282 |
}
|
283 |
}
|
284 |
|
285 |
-
$checkbox_items = array( 'wt_iew_enable_import_log', 'wt_iew_enable_history_auto_delete' );
|
286 |
foreach ( $checkbox_items as $checkbox_item ){
|
287 |
$new_advanced_settings[$checkbox_item] = isset( $new_advanced_settings[$checkbox_item] ) ? $new_advanced_settings[$checkbox_item] : 0;
|
288 |
}
|
@@ -451,6 +467,31 @@ class Wt_Import_Export_For_Woo_Admin_Basic {
|
|
451 |
}
|
452 |
|
453 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
/**
|
455 |
* Search for users and return json.
|
456 |
*/
|
110 |
wp_enqueue_script(WT_IEW_PLUGIN_ID_BASIC.'-tiptip', WT_U_IEW_PLUGIN_URL.'admin/js/tiptip.js', array('jquery'), WT_U_IEW_VERSION, false);
|
111 |
}
|
112 |
|
113 |
+
$order_addon_active_status = false;
|
114 |
+
$product_addon_active_status = false;
|
115 |
+
if(is_plugin_active( 'order-import-export-for-woocommerce/order-import-export-for-woocommerce.php' )){
|
116 |
+
$order_addon_active_status = true;
|
117 |
+
}
|
118 |
+
if(is_plugin_active( 'product-import-export-for-woo/product-import-export-for-woo.php' )){
|
119 |
+
$product_addon_active_status = true;
|
120 |
+
}
|
121 |
+
|
122 |
$params=array(
|
123 |
'nonces' => array(
|
124 |
'main' => wp_create_nonce(WT_IEW_PLUGIN_ID_BASIC),
|
145 |
'url' => "https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Order_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
146 |
'name' => __('Order, Coupon, Subscription Export Import for WooCommerce'),
|
147 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/order-ie.svg',
|
148 |
+
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/03/Order_SampleCSV.csv",
|
149 |
+
'is_active' => $order_addon_active_status
|
150 |
),
|
151 |
'coupon' => array(
|
152 |
'url' => "https://www.webtoffee.com/product/order-import-export-plugin-for-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Order_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
153 |
'name' => __('Order, Coupon, Subscription Export Import for WooCommerce'),
|
154 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/order-ie.svg',
|
155 |
+
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2016/09/Coupon_Sample_CSV.csv",
|
156 |
+
'is_active' => $order_addon_active_status
|
157 |
),
|
158 |
'product' => array(
|
159 |
'url' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
160 |
'name' => __('Product Import Export Plugin For WooCommerce'),
|
161 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/product-ie.svg',
|
162 |
+
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/03/Product_SampleCSV.csv",
|
163 |
+
'is_active' => $product_addon_active_status
|
164 |
),
|
165 |
'product_review' => array(
|
166 |
'url' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
167 |
'name' => __('Product Import Export Plugin For WooCommerce'),
|
168 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/product-ie.svg',
|
169 |
+
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/04/product_review_SampleCSV.csv",
|
170 |
+
'is_active' => $product_addon_active_status
|
171 |
),
|
172 |
'product_categories' => array(
|
173 |
'url' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
174 |
'name' => __('Product Import Export Plugin For WooCommerce'),
|
175 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/product-ie.svg',
|
176 |
+
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/09/Sample-CSV-of-product-categories.csv",
|
177 |
+
'is_active' => $product_addon_active_status
|
178 |
),
|
179 |
'product_tags' => array(
|
180 |
'url' => "https://www.webtoffee.com/product/product-import-export-woocommerce/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=Product_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
181 |
'name' => __('Product Import Export Plugin For WooCommerce'),
|
182 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/product-ie.svg',
|
183 |
+
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2021/09/Sample-CSV-with-product-tags.csv",
|
184 |
+
'is_active' => $product_addon_active_status
|
185 |
),
|
186 |
'user' => array(
|
187 |
'url' => "https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/?utm_source=free_plugin_revamp&utm_medium=basic_revamp&utm_campaign=User_Import_Export&utm_content=" . WT_U_IEW_VERSION,
|
188 |
'name' => __('WordPress Users & WooCommerce Customers Import Export'),
|
189 |
'icon_url' => WT_U_IEW_PLUGIN_URL.'assets/images/gopro/user-ie.svg',
|
190 |
+
'sample_csv_url' => "https://www.webtoffee.com/wp-content/uploads/2020/10/Sample_Users.csv",
|
191 |
+
'is_active' => true
|
192 |
)
|
193 |
)
|
194 |
);
|
298 |
}
|
299 |
}
|
300 |
|
301 |
+
$checkbox_items = array( 'wt_iew_enable_import_log', 'wt_iew_enable_history_auto_delete', 'wt_iew_include_bom' );
|
302 |
foreach ( $checkbox_items as $checkbox_item ){
|
303 |
$new_advanced_settings[$checkbox_item] = isset( $new_advanced_settings[$checkbox_item] ) ? $new_advanced_settings[$checkbox_item] : 0;
|
304 |
}
|
467 |
}
|
468 |
|
469 |
|
470 |
+
public function tools_wtexport_text(){
|
471 |
+
|
472 |
+
echo "<p><b>" . sprintf( __( 'Export WordPress users and WooCommerce customers in CSV format using <a href="%s">this exporter</a>.' ), admin_url( 'admin.php?page=wt_import_export_for_woo_basic_export' ) ) . "</b></p>";
|
473 |
+
if( !is_plugin_active( 'order-import-export-for-woocommerce/order-import-export-for-woocommerce.php' ) ){
|
474 |
+
echo "<p><b>" . sprintf(
|
475 |
+
/* translators: %s: Order Import Export for WooCommerce plugin URL */
|
476 |
+
__( 'You can export WooCommerce orders and coupons in CSV format using the plugin <a href="%s" target="_blank">Order Export & Order Import for WooCommerce</a>.' ),
|
477 |
+
admin_url('plugin-install.php?tab=plugin-information&plugin=order-import-export-for-woocommerce')
|
478 |
+
) . "</b></p>";
|
479 |
+
}else{
|
480 |
+
echo "<p><b>" . sprintf( __( 'Export WooCommerce orders and coupons in CSV format using <a href="%s">this exporter</a>.' ), admin_url( 'admin.php?page=wt_import_export_for_woo_basic_export' ) ) . "</b></p>";
|
481 |
+
}
|
482 |
+
|
483 |
+
if( !is_plugin_active( 'product-import-export-for-woo/product-import-export-for-woo.php' ) ){
|
484 |
+
echo "<p><b>" . sprintf(
|
485 |
+
/* translators: %s: Product Import Export for WooCommerce plugin URL */
|
486 |
+
__( 'You can export WooCommerce products, product categories, product tags and product reviews in CSV format using the plugin <a href="%s" target="_blank">Product Import Export for WooCommerce</a>.' ),
|
487 |
+
admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
488 |
+
) . "</b></p>";
|
489 |
+
}else{
|
490 |
+
echo "<p><b>" . sprintf( __( 'Export WooCommerce products, product categories, product tags and product reviews in CSV format using <a href="%s">this exporter</a>.' ), admin_url( 'admin.php?page=wt_import_export_for_woo_basic_export' ) ) . "</b></p>";
|
491 |
+
}
|
492 |
+
}
|
493 |
+
|
494 |
+
|
495 |
/**
|
496 |
* Search for users and return json.
|
497 |
*/
|
admin/classes/class-csvwriter.php
CHANGED
@@ -15,10 +15,12 @@ class Wt_Import_Export_For_Woo_Basic_Csvwriter
|
|
15 |
public $file_path='';
|
16 |
public $data_ar='';
|
17 |
public $csv_delimiter='';
|
18 |
-
public
|
|
|
19 |
{
|
20 |
$this->csv_delimiter=$csv_delimiter;
|
21 |
$this->file_path=$file_path;
|
|
|
22 |
$this->get_file_pointer($offset);
|
23 |
}
|
24 |
|
@@ -56,6 +58,11 @@ class Wt_Import_Export_For_Woo_Basic_Csvwriter
|
|
56 |
if($offset==0)
|
57 |
{
|
58 |
$this->file_pointer=fopen($this->file_path, 'w');
|
|
|
|
|
|
|
|
|
|
|
59 |
}else
|
60 |
{
|
61 |
$this->file_pointer=fopen($this->file_path, 'a+');
|
15 |
public $file_path='';
|
16 |
public $data_ar='';
|
17 |
public $csv_delimiter='';
|
18 |
+
public $use_bom=true;
|
19 |
+
public function __construct($file_path, $offset, $csv_delimiter=",", $use_bom=true)
|
20 |
{
|
21 |
$this->csv_delimiter=$csv_delimiter;
|
22 |
$this->file_path=$file_path;
|
23 |
+
$this->use_bom = $use_bom;
|
24 |
$this->get_file_pointer($offset);
|
25 |
}
|
26 |
|
58 |
if($offset==0)
|
59 |
{
|
60 |
$this->file_pointer=fopen($this->file_path, 'w');
|
61 |
+
$this->use_bom = apply_filters('wt_ier_include_bom_in_csv', $this->use_bom);
|
62 |
+
if($this->use_bom){
|
63 |
+
$BOM = "\xEF\xBB\xBF"; // UTF-8 BOM
|
64 |
+
fwrite($this->file_pointer, $BOM); // NEW LINE
|
65 |
+
}
|
66 |
}else
|
67 |
{
|
68 |
$this->file_pointer=fopen($this->file_path, 'a+');
|
admin/css/wt-import-export-for-woo-admin.css
CHANGED
@@ -181,6 +181,7 @@
|
|
181 |
|
182 |
.wt_iew_warn_box{padding:20px; padding-bottom:0px;}
|
183 |
.wt_iew_warn{ display:inline-block; width:100%; box-sizing:border-box; padding:10px; background-color:#fff8e5; border-left:solid 2px #ffb900; color:#333; }
|
|
|
184 |
.wt_iew_rerun_warn{ width:95%; margin:30px 2.5%; }
|
185 |
|
186 |
.wt_iew_info_box{padding:20px; padding-bottom:0px;}
|
181 |
|
182 |
.wt_iew_warn_box{padding:20px; padding-bottom:0px;}
|
183 |
.wt_iew_warn{ display:inline-block; width:100%; box-sizing:border-box; padding:10px; background-color:#fff8e5; border-left:solid 2px #ffb900; color:#333; }
|
184 |
+
.wt_iew_free_addon_warn{ display:inline-block; width:100%; box-sizing:border-box; padding:10px; background-color:#fff8e5; border:solid 1px #ffb900; color:#333; text-align: center; }
|
185 |
.wt_iew_rerun_warn{ width:95%; margin:30px 2.5%; }
|
186 |
|
187 |
.wt_iew_info_box{padding:20px; padding-bottom:0px;}
|
admin/modules/export/assets/js/main.js
CHANGED
@@ -637,12 +637,25 @@ var wt_iew_basic_export=(function( $ ) {
|
|
637 |
$('.wt-ierpro-name>img').attr("src", wt_iew_basic_params.pro_plugins[this.to_export]['icon_url']);
|
638 |
$('.wt-ier-gopro-cta').hide();
|
639 |
$('.wt-ier-'+this.to_export).show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
},
|
641 |
page_actions:function(step)
|
642 |
{
|
643 |
if(step=='post_type') /* post type page */
|
644 |
{
|
645 |
-
$('[name="wt_iew_export_post_type"]').unbind('change').change(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
wt_iew_basic_export.to_export=$(this).val();
|
647 |
wt_iew_basic_export.to_export_title='';
|
648 |
wt_iew_basic_export.reset_form_data();
|
637 |
$('.wt-ierpro-name>img').attr("src", wt_iew_basic_params.pro_plugins[this.to_export]['icon_url']);
|
638 |
$('.wt-ier-gopro-cta').hide();
|
639 |
$('.wt-ier-'+this.to_export).show();
|
640 |
+
|
641 |
+
$('.wt_iew_free_addon').hide();
|
642 |
+
$('.wt_iew_export_action_btn').prop('disabled', false);
|
643 |
+
if(!wt_iew_basic_params.pro_plugins[this.to_export]['is_active']){
|
644 |
+
$('.wt_iew_export_action_btn').prop('disabled', true);
|
645 |
+
$('.wt_iew_type_'+this.to_export).show();
|
646 |
+
}
|
647 |
},
|
648 |
page_actions:function(step)
|
649 |
{
|
650 |
if(step=='post_type') /* post type page */
|
651 |
{
|
652 |
+
$('[name="wt_iew_export_post_type"]').unbind('change').change(function(){
|
653 |
+
|
654 |
+
if (!wt_iew_basic_params.pro_plugins[$(this).val()]['is_active']) {
|
655 |
+
$('.wt_iew_export_action_btn').prop('disabled', true);
|
656 |
+
$('.wt_iew_type_' + this.to_export).show();
|
657 |
+
}
|
658 |
+
|
659 |
wt_iew_basic_export.to_export=$(this).val();
|
660 |
wt_iew_basic_export.to_export_title='';
|
661 |
wt_iew_basic_export.reset_form_data();
|
admin/modules/export/export.php
CHANGED
@@ -30,6 +30,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
30 |
public $default_batch_count=0; /* configure this value in `advanced_setting_fields` method */
|
31 |
public $selected_template_data=array();
|
32 |
public $default_export_method=''; /* configure this value in `advanced_setting_fields` method */
|
|
|
33 |
public $form_data=array();
|
34 |
|
35 |
public function __construct()
|
@@ -105,6 +106,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
105 |
{
|
106 |
$this->default_export_method= Wt_Import_Export_For_Woo_Basic_Common_Helper::get_advanced_settings('default_export_method');
|
107 |
$this->default_batch_count=Wt_Import_Export_For_Woo_Basic_Common_Helper::get_advanced_settings('default_export_batch');
|
|
|
108 |
}
|
109 |
|
110 |
/**
|
@@ -123,6 +125,17 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
123 |
'field_group'=>'advanced_field',
|
124 |
'help_text'=>__('Select the default method of export.'),
|
125 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
$fields['default_export_batch']=array(
|
127 |
'label'=>__("Default Export batch count"),
|
128 |
'type'=>'number',
|
@@ -629,7 +642,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
629 |
{
|
630 |
|
631 |
include_once WT_U_IEW_PLUGIN_PATH.'admin/classes/class-csvwriter.php';
|
632 |
-
$writer=new Wt_Import_Export_For_Woo_Basic_Csvwriter($file_path, $offset, $csv_delimiter);
|
633 |
|
634 |
|
635 |
/**
|
30 |
public $default_batch_count=0; /* configure this value in `advanced_setting_fields` method */
|
31 |
public $selected_template_data=array();
|
32 |
public $default_export_method=''; /* configure this value in `advanced_setting_fields` method */
|
33 |
+
public $use_bom = true;
|
34 |
public $form_data=array();
|
35 |
|
36 |
public function __construct()
|
106 |
{
|
107 |
$this->default_export_method= Wt_Import_Export_For_Woo_Basic_Common_Helper::get_advanced_settings('default_export_method');
|
108 |
$this->default_batch_count=Wt_Import_Export_For_Woo_Basic_Common_Helper::get_advanced_settings('default_export_batch');
|
109 |
+
$this->use_bom = (bool)Wt_Import_Export_For_Woo_Basic_Common_Helper::get_advanced_settings('include_bom');
|
110 |
}
|
111 |
|
112 |
/**
|
125 |
'field_group'=>'advanced_field',
|
126 |
'help_text'=>__('Select the default method of export.'),
|
127 |
);
|
128 |
+
|
129 |
+
$fields['include_bom'] = array(
|
130 |
+
'label'=>__( "Include BOM in export file" ),
|
131 |
+
'value'=>1,
|
132 |
+
'checkbox_fields' => array( 1 => __( 'Enable' ) ),
|
133 |
+
'type'=>'checkbox',
|
134 |
+
'field_name'=>'include_bom',
|
135 |
+
'field_group'=>'advanced_field',
|
136 |
+
'help_text'=>__( "The BOM will help some programs like Microsoft Excel read your export file if it includes non-English characters." ),
|
137 |
+
);
|
138 |
+
|
139 |
$fields['default_export_batch']=array(
|
140 |
'label'=>__("Default Export batch count"),
|
141 |
'type'=>'number',
|
642 |
{
|
643 |
|
644 |
include_once WT_U_IEW_PLUGIN_PATH.'admin/classes/class-csvwriter.php';
|
645 |
+
$writer=new Wt_Import_Export_For_Woo_Basic_Csvwriter($file_path, $offset, $csv_delimiter, $this->use_bom);
|
646 |
|
647 |
|
648 |
/**
|
admin/modules/export/views/_export_post_type_page.php
CHANGED
@@ -27,4 +27,42 @@ if (!defined('ABSPATH')) {
|
|
27 |
<td></td>
|
28 |
</tr>
|
29 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
</div>
|
27 |
<td></td>
|
28 |
</tr>
|
29 |
</table>
|
30 |
+
<br/>
|
31 |
+
<?php
|
32 |
+
$wt_iew_post_types = array(
|
33 |
+
'product' => array(
|
34 |
+
'message' => __('The <b>Product Import Export for WooCommerce Add-On</b> is required to export WooCommerce Products.'),
|
35 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
36 |
+
),
|
37 |
+
'product_review' => array(
|
38 |
+
'message' => __('The <b>Product Import Export for WooCommerce Add-On</b> is required to export WooCommerce Product reviews.'),
|
39 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
40 |
+
),
|
41 |
+
'product_categories' => array(
|
42 |
+
'message' => __('The <b>Product Import Export for WooCommerce Add-On</b> is required to export WooCommerce Product categories.'),
|
43 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
44 |
+
),
|
45 |
+
'product_tags' => array(
|
46 |
+
'message' => __('The <b>Product Import Export for WooCommerce Add-On</b> is required to export WooCommerce Product tags.'),
|
47 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
48 |
+
),
|
49 |
+
'order' => array(
|
50 |
+
'message' => __('The <b>Order Export & Order Import for WooCommerce Add-On</b> is required to export WooCommerce Orders.'),
|
51 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=order-import-export-for-woocommerce')
|
52 |
+
),
|
53 |
+
'coupon' => array(
|
54 |
+
'message' => __('The <b>Order Export & Order Import for WooCommerce Add-On</b> is required to export WooCommerce Coupons.'),
|
55 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=order-import-export-for-woocommerce')
|
56 |
+
)
|
57 |
+
);
|
58 |
+
foreach ($wt_iew_post_types as $wt_iew_post_type => $wt_iew_post_type_detail) { ?>
|
59 |
+
|
60 |
+
<div class="wt_iew_free_addon wt_iew_free_addon_warn <?php echo 'wt_iew_type_'.$wt_iew_post_type; ?>" style="display:none">
|
61 |
+
<p><?php echo $wt_iew_post_type_detail['message']; ?></p>
|
62 |
+
<a target="_blank" href="<?php echo $wt_iew_post_type_detail['link']; ?>"><?php _e( 'Install now for free' ); ?></a>
|
63 |
+
</div>
|
64 |
+
|
65 |
+
<?php
|
66 |
+
}
|
67 |
+
?>
|
68 |
</div>
|
admin/modules/import/assets/js/main.js
CHANGED
@@ -787,14 +787,28 @@ var wt_iew_basic_import=(function( $ ) {
|
|
787 |
$('#user-required-field-message').show();
|
788 |
|
789 |
$('.wt-ier-gopro-cta').hide();
|
790 |
-
$('.wt-ier-'+this.to_import).show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
791 |
},
|
792 |
page_actions:function(step)
|
793 |
{
|
794 |
if(step=='post_type') /* post type page */
|
795 |
{
|
796 |
$('[name="wt_iew_import_post_type"]').unbind('change').change(function(){
|
797 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
798 |
wt_iew_basic_import.to_import_title='';
|
799 |
wt_iew_basic_import.reset_form_data();
|
800 |
$('.wt_iew_post_type_name').html('');
|
787 |
$('#user-required-field-message').show();
|
788 |
|
789 |
$('.wt-ier-gopro-cta').hide();
|
790 |
+
$('.wt-ier-'+this.to_import).show();
|
791 |
+
|
792 |
+
$('.wt_iew_free_addon').hide();
|
793 |
+
$('.wt_iew_import_action_btn').prop('disabled', false);
|
794 |
+
if(!wt_iew_basic_params.pro_plugins[this.to_import]['is_active']){
|
795 |
+
$('.wt_iew_type_'+this.to_import).show();
|
796 |
+
$('.wt_iew_import_action_btn').prop('disabled', true);
|
797 |
+
}
|
798 |
+
|
799 |
},
|
800 |
page_actions:function(step)
|
801 |
{
|
802 |
if(step=='post_type') /* post type page */
|
803 |
{
|
804 |
$('[name="wt_iew_import_post_type"]').unbind('change').change(function(){
|
805 |
+
|
806 |
+
if (!wt_iew_basic_params.pro_plugins[$(this).val()]['is_active']) {
|
807 |
+
$('.wt_iew_import_action_btn').prop('disabled', true);
|
808 |
+
$('.wt_iew_type_' + this.to_import).show();
|
809 |
+
}
|
810 |
+
|
811 |
+
wt_iew_basic_import.to_import=$(this).val();
|
812 |
wt_iew_basic_import.to_import_title='';
|
813 |
wt_iew_basic_import.reset_form_data();
|
814 |
$('.wt_iew_post_type_name').html('');
|
admin/modules/import/views/_import_post_type_page.php
CHANGED
@@ -28,4 +28,42 @@ if (!defined('ABSPATH')) {
|
|
28 |
<td></td>
|
29 |
</tr>
|
30 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
</div>
|
28 |
<td></td>
|
29 |
</tr>
|
30 |
</table>
|
31 |
+
<br/>
|
32 |
+
<?php
|
33 |
+
$wt_iew_post_types = array(
|
34 |
+
'product' => array(
|
35 |
+
'message' => __('The <b>Product Import Export for WooCommerce Add-On</b> is required to export WooCommerce Products.'),
|
36 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
37 |
+
),
|
38 |
+
'product_review' => array(
|
39 |
+
'message' => __('The <b>Product Import Export for WooCommerce Add-On</b> is required to export WooCommerce Product reviews.'),
|
40 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
41 |
+
),
|
42 |
+
'product_categories' => array(
|
43 |
+
'message' => __('The <b>Product Import Export for WooCommerce Add-On</b> is required to export WooCommerce Product categories.'),
|
44 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
45 |
+
),
|
46 |
+
'product_tags' => array(
|
47 |
+
'message' => __('The <b>Product Import Export for WooCommerce Add-On</b> is required to export WooCommerce Product tags.'),
|
48 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=product-import-export-for-woo')
|
49 |
+
),
|
50 |
+
'order' => array(
|
51 |
+
'message' => __('The <b>Order Export & Order Import for WooCommerce Add-On</b> is required to export WooCommerce Orders.'),
|
52 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=order-import-export-for-woocommerce')
|
53 |
+
),
|
54 |
+
'coupon' => array(
|
55 |
+
'message' => __('The <b>Order Export & Order Import for WooCommerce Add-On</b> is required to export WooCommerce Coupons.'),
|
56 |
+
'link' => admin_url('plugin-install.php?tab=plugin-information&plugin=order-import-export-for-woocommerce')
|
57 |
+
)
|
58 |
+
);
|
59 |
+
foreach ($wt_iew_post_types as $wt_iew_post_type => $wt_iew_post_type_detail) { ?>
|
60 |
+
|
61 |
+
<div class="wt_iew_free_addon wt_iew_free_addon_warn <?php echo 'wt_iew_type_'.$wt_iew_post_type; ?>" style="display:none">
|
62 |
+
<p><?php echo $wt_iew_post_type_detail['message']; ?></p>
|
63 |
+
<a target="_blank" href="<?php echo $wt_iew_post_type_detail['link']; ?>"><?php _e( 'Install now for free' ); ?></a>
|
64 |
+
</div>
|
65 |
+
|
66 |
+
<?php
|
67 |
+
}
|
68 |
+
?>
|
69 |
</div>
|
admin/modules/user/user.php
CHANGED
@@ -162,8 +162,18 @@ class Wt_Import_Export_For_Woo_basic_User {
|
|
162 |
*
|
163 |
*/
|
164 |
public function wt_iew_exporter_post_types($arr) {
|
165 |
-
|
166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|
168 |
|
169 |
public static function get_user_sort_columns() {
|
162 |
*
|
163 |
*/
|
164 |
public function wt_iew_exporter_post_types($arr) {
|
165 |
+
|
166 |
+
$arr['user'] = __('Users');
|
167 |
+
if (class_exists('woocommerce')) {
|
168 |
+
$arr['order'] = __('Order');
|
169 |
+
$arr['coupon'] = __('Coupon');
|
170 |
+
$arr['product'] = __('Product');
|
171 |
+
$arr['product_review'] = __('Product Review');
|
172 |
+
$arr['product_categories'] = __('Product Categories');
|
173 |
+
$arr['product_tags'] = __('Product Tags');
|
174 |
+
$arr['user'] = __('User/Customer');
|
175 |
+
}
|
176 |
+
return $arr;
|
177 |
}
|
178 |
|
179 |
public static function get_user_sort_columns() {
|
includes/class-wt-import-export-for-woo.php
CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
|
|
80 |
if ( defined( 'WT_U_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_U_IEW_VERSION;
|
82 |
} else {
|
83 |
-
$this->version = '2.2.
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
@@ -207,6 +207,8 @@ class Wt_Import_Export_For_Woo_Basic {
|
|
207 |
/* Enqueue CSS and JS */
|
208 |
$this->loader->add_action( 'admin_enqueue_scripts', $this->plugin_admin, 'enqueue_styles' );
|
209 |
$this->loader->add_action( 'admin_enqueue_scripts', $this->plugin_admin, 'enqueue_scripts' );
|
|
|
|
|
210 |
|
211 |
}
|
212 |
|
80 |
if ( defined( 'WT_U_IEW_VERSION' ) ) {
|
81 |
$this->version = WT_U_IEW_VERSION;
|
82 |
} else {
|
83 |
+
$this->version = '2.2.9';
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
207 |
/* Enqueue CSS and JS */
|
208 |
$this->loader->add_action( 'admin_enqueue_scripts', $this->plugin_admin, 'enqueue_styles' );
|
209 |
$this->loader->add_action( 'admin_enqueue_scripts', $this->plugin_admin, 'enqueue_scripts' );
|
210 |
+
|
211 |
+
$this->loader->add_action( 'export_filters', $this->plugin_admin, 'tools_wtexport_text' );
|
212 |
|
213 |
}
|
214 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: user import, user export, csv, woocommerce, customers, export import users
|
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -28,7 +28,7 @@ WordPress User Import Export plugin allows the import and export of WordPress us
|
|
28 |
🔸 Export Guest users - Include data of WooCommerce guest customers(users who bought products from site without creating an account).
|
29 |
🔸 Export specific users based on username/email - Suggests email addresses and names in export data filter fields while you type in.
|
30 |
🔸 Tested OK with WordPress 5.9
|
31 |
-
🔸 Tested OK with WooCommerce 6.
|
32 |
🔸 Tested OK with PHP 8.0
|
33 |
|
34 |
Highlights: WordPress Users Export, WordPress Users CSV Import Suite, Export WordPress Users to CSV. Pro Version supports export and import of all additional user meta like WooCommerce details.
|
@@ -216,6 +216,8 @@ Please refer the article on how to <a href="https://www.webtoffee.com/refresh-wo
|
|
216 |
|
217 |
== Changelog ==
|
218 |
|
|
|
|
|
219 |
= 2.2.8 =
|
220 |
* Enhancement: Performance and UI improvements, text corrections.
|
221 |
= 2.2.7 =
|
@@ -417,5 +419,5 @@ Please refer the article on how to <a href="https://www.webtoffee.com/refresh-wo
|
|
417 |
|
418 |
== Upgrade Notice ==
|
419 |
|
420 |
-
= 2.2.
|
421 |
-
*
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.2.9
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
28 |
🔸 Export Guest users - Include data of WooCommerce guest customers(users who bought products from site without creating an account).
|
29 |
🔸 Export specific users based on username/email - Suggests email addresses and names in export data filter fields while you type in.
|
30 |
🔸 Tested OK with WordPress 5.9
|
31 |
+
🔸 Tested OK with WooCommerce 6.3
|
32 |
🔸 Tested OK with PHP 8.0
|
33 |
|
34 |
Highlights: WordPress Users Export, WordPress Users CSV Import Suite, Export WordPress Users to CSV. Pro Version supports export and import of all additional user meta like WooCommerce details.
|
216 |
|
217 |
== Changelog ==
|
218 |
|
219 |
+
= 2.2.9 2022-04-15 =
|
220 |
+
* WC 6.3 Tested OK.
|
221 |
= 2.2.8 =
|
222 |
* Enhancement: Performance and UI improvements, text corrections.
|
223 |
= 2.2.7 =
|
419 |
|
420 |
== Upgrade Notice ==
|
421 |
|
422 |
+
= 2.2.9 =
|
423 |
+
* WC 6.3 Tested OK.
|
users-customers-import-export-for-wp-woocommerce.php
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
|
6 |
Author: WebToffee
|
7 |
Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
|
8 |
-
Version: 2.2.
|
9 |
-
WC tested up to: 6.
|
10 |
Text Domain: users-customers-import-export-for-wp-woocommerce
|
11 |
Domain Path: /languages
|
12 |
Requires at least: 3.0
|
@@ -48,7 +48,7 @@ if (!defined('WT_IEW_DEBUG_BASIC_TROUBLESHOOT')) {
|
|
48 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
49 |
* Rename this for your plugin and update it as you release new versions.
|
50 |
*/
|
51 |
-
define('WT_U_IEW_VERSION', '2.2.
|
52 |
|
53 |
/**
|
54 |
* The code that runs during plugin activation.
|
5 |
Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
|
6 |
Author: WebToffee
|
7 |
Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
|
8 |
+
Version: 2.2.9
|
9 |
+
WC tested up to: 6.3
|
10 |
Text Domain: users-customers-import-export-for-wp-woocommerce
|
11 |
Domain Path: /languages
|
12 |
Requires at least: 3.0
|
48 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
49 |
* Rename this for your plugin and update it as you release new versions.
|
50 |
*/
|
51 |
+
define('WT_U_IEW_VERSION', '2.2.9');
|
52 |
|
53 |
/**
|
54 |
* The code that runs during plugin activation.
|