Import Export WordPress Users and WooCommerce Customers - Version 2.3.3

Version Description

2022-08-09 = * Enhancement: Export total spent amount by customer. * Bugfix: Delimiter reset when using the re-run option from the History section. * WooCommerce 6.7 Tested OK.

Download this release

Release Info

Developer webtoffee
Plugin Icon 128x128 Import Export WordPress Users and WooCommerce Customers
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

admin/modules/import/assets/js/main.js CHANGED
@@ -107,13 +107,14 @@ var wt_iew_basic_import=(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
  $('.meta_mapping_box_con[data-loaded="0"]').html('<div class="wt_iew_import_step_loader">'+wt_iew_basic_params.msgs.loading+'</div>');
111
  $.ajax({
112
- type: 'POST',
113
- url:wt_iew_basic_params.ajax_url,
114
- data:this.ajax_data,
115
- dataType:'json',
116
- success:function(data)
117
  {
118
  if(data.status==1)
119
  {
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;
111
  $('.meta_mapping_box_con[data-loaded="0"]').html('<div class="wt_iew_import_step_loader">'+wt_iew_basic_params.msgs.loading+'</div>');
112
  $.ajax({
113
+ type: 'POST',
114
+ url:wt_iew_basic_params.ajax_url,
115
+ data:this.ajax_data,
116
+ dataType:'json',
117
+ success:function(data)
118
  {
119
  if(data.status==1)
120
  {
admin/modules/user/data/data-user-columns.php CHANGED
@@ -43,6 +43,7 @@ if (!function_exists( 'is_plugin_active' ) )
43
 
44
  if( is_plugin_active( 'woocommerce/woocommerce.php' ) ):
45
 
 
46
  $columns['billing_first_name'] = 'billing_first_name';
47
  $columns['billing_last_name'] = 'billing_last_name';
48
  $columns['billing_company'] = 'billing_company';
43
 
44
  if( is_plugin_active( 'woocommerce/woocommerce.php' ) ):
45
 
46
+ $columns['total_spent'] = 'total_spent';
47
  $columns['billing_first_name'] = 'billing_first_name';
48
  $columns['billing_last_name'] = 'billing_last_name';
49
  $columns['billing_company'] = 'billing_company';
admin/modules/user/data/data/data-wf-reserved-fields-pair.php CHANGED
@@ -39,6 +39,7 @@ $columns['last_update'] = array('title'=>'last_update','description'=>'');
39
 
40
  if( is_plugin_active( 'woocommerce/woocommerce.php' ) ):
41
 
 
42
  $columns['billing_first_name'] = array('title'=>'Billing first name','description'=>'');
43
  $columns['billing_last_name'] = array('title'=>'Billing last name','description'=>'');
44
  $columns['billing_company'] = array('title'=>'Billing company','description'=>'');
39
 
40
  if( is_plugin_active( 'woocommerce/woocommerce.php' ) ):
41
 
42
+ $columns['total_spent'] = array('title'=>'total_spent','description'=>'');
43
  $columns['billing_first_name'] = array('title'=>'Billing first name','description'=>'');
44
  $columns['billing_last_name'] = array('title'=>'Billing last name','description'=>'');
45
  $columns['billing_company'] = array('title'=>'Billing company','description'=>'');
admin/modules/user/export/export.php CHANGED
@@ -195,7 +195,11 @@ class Wt_Import_Export_For_Woo_basic_User_Export {
195
  if ($key == 'session_tokens') {
196
  $customer_data[$key] = !empty($user->{$key}) ? base64_encode(json_encode(maybe_unserialize($user->{$key}))) : '';
197
  continue;
198
- }
 
 
 
 
199
  if($key == $wpdb->prefix.'user_level'){
200
  $customer_data[$key] = (!empty($user->{$key})) ? $user->{$key} : 0;
201
  continue;
195
  if ($key == 'session_tokens') {
196
  $customer_data[$key] = !empty($user->{$key}) ? base64_encode(json_encode(maybe_unserialize($user->{$key}))) : '';
197
  continue;
198
+ }
199
+ if ( 'total_spent' === $key ) {
200
+ $customer_data[$key] = !empty($user->ID) ? wc_get_customer_total_spent($user->ID) : '';
201
+ continue;
202
+ }
203
  if($key == $wpdb->prefix.'user_level'){
204
  $customer_data[$key] = (!empty($user->{$key})) ? $user->{$key} : 0;
205
  continue;
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.3.2';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
80
  if ( defined( 'WT_U_IEW_VERSION' ) ) {
81
  $this->version = WT_U_IEW_VERSION;
82
  } else {
83
+ $this->version = '2.3.3';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
includes/class-wt-userimport-uninstall-feedback.php CHANGED
@@ -20,6 +20,12 @@ if (!class_exists('WT_UserImport_Uninstall_Feedback')) :
20
  'type' => 'reviewhtml',
21
  'placeholder' => __('Have used it successfully and aint in need of it anymore', 'users-customers-import-export-for-wp-woocommerce')
22
  ),
 
 
 
 
 
 
23
  array(
24
  'id' => 'could-not-understand',
25
  'text' => __('I couldn\'t understand how to make it work', 'users-customers-import-export-for-wp-woocommerce'),
20
  'type' => 'reviewhtml',
21
  'placeholder' => __('Have used it successfully and aint in need of it anymore', 'users-customers-import-export-for-wp-woocommerce')
22
  ),
23
+ array(
24
+ 'id' => 'temporary-deactivation',
25
+ 'text' => __('Temporary deactivation', 'users-customers-import-export-for-wp-woocommerce'),
26
+ 'type' => '',
27
+ 'placeholder' => __('Temporary de-activation. Will re-activate later.', 'users-customers-import-export-for-wp-woocommerce')
28
+ ),
29
  array(
30
  'id' => 'could-not-understand',
31
  'text' => __('I couldn\'t understand how to make it work', 'users-customers-import-export-for-wp-woocommerce'),
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: 6.0
7
  Requires PHP: 5.6
8
- Stable tag: 2.3.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
  &#128312; Export Guest users - Include data of WooCommerce guest customers(users who bought products from site without creating an account).
29
  &#128312; Export specific users based on username/email - Suggests email addresses and names in export data filter fields while you type in.
30
  &#128312; Tested OK with WordPress 6.0
31
- &#128312; Tested OK with WooCommerce 6.6
32
  &#128312; 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.
@@ -208,6 +208,10 @@ Please refer the article on how to <a href="https://www.webtoffee.com/refresh-wo
208
 
209
  == Changelog ==
210
 
 
 
 
 
211
  = 2.3.2 2022-07-05 =
212
  * Enhancement: Export to CSV option to Bulk Action drop-down menu in Users listing page.
213
  * Enhancement: Import progress screen improvements.
@@ -422,7 +426,7 @@ Please refer the article on how to <a href="https://www.webtoffee.com/refresh-wo
422
 
423
  == Upgrade Notice ==
424
 
425
- = 2.3.2 =
426
- * Enhancement: Export to CSV option to Bulk Action drop-down menu in Users listing page.
427
- * Enhancement: Import progress screen improvements.
428
- * WooCommerce 6.6 Tested OK.
5
  Requires at least: 3.0.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 2.3.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
28
  &#128312; Export Guest users - Include data of WooCommerce guest customers(users who bought products from site without creating an account).
29
  &#128312; Export specific users based on username/email - Suggests email addresses and names in export data filter fields while you type in.
30
  &#128312; Tested OK with WordPress 6.0
31
+ &#128312; Tested OK with WooCommerce 6.7
32
  &#128312; 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.
208
 
209
  == Changelog ==
210
 
211
+ = 2.3.3 2022-08-09 =
212
+ * Enhancement: Export total spent amount by customer.
213
+ * Bugfix: Delimiter reset when using the re-run option from the History section.
214
+ * WooCommerce 6.7 Tested OK.
215
  = 2.3.2 2022-07-05 =
216
  * Enhancement: Export to CSV option to Bulk Action drop-down menu in Users listing page.
217
  * Enhancement: Import progress screen improvements.
426
 
427
  == Upgrade Notice ==
428
 
429
+ = 2.3.3 =
430
+ * Enhancement: Export total spent amount by customer.
431
+ * Bugfix: Delimiter reset when using the re-run option from the History section.
432
+ * WooCommerce 6.7 Tested OK.
users-customers-import-export-for-wp-woocommerce.php CHANGED
@@ -5,10 +5,10 @@
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.3.2
9
  Text Domain: users-customers-import-export-for-wp-woocommerce
10
  Domain Path: /languages
11
- WC tested up to: 6.6
12
  Requires at least: 3.0
13
  Requires PHP: 5.6
14
  License: GPLv3
@@ -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.3.2');
52
 
53
  /**
54
  * The code that runs during plugin activation.
@@ -214,6 +214,7 @@ function wt_user_addon_basic_gopro_content() {
214
  <li><?php _e('XML file type support'); ?></li>
215
  <li><?php _e('Import and export custom fields and hidden metadata'); ?></li>
216
  <li><?php _e('Option to send emails to new users on import'); ?></li>
 
217
  <li><?php _e('Import from URL, FTP/SFTP'); ?></li>
218
  <li><?php _e('Export to FTP/SFTP'); ?></li>
219
  <li><?php _e('Run scheduled automatic import and export '); ?></li>
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.3.3
9
  Text Domain: users-customers-import-export-for-wp-woocommerce
10
  Domain Path: /languages
11
+ WC tested up to: 6.7
12
  Requires at least: 3.0
13
  Requires PHP: 5.6
14
  License: GPLv3
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.3.3');
52
 
53
  /**
54
  * The code that runs during plugin activation.
214
  <li><?php _e('XML file type support'); ?></li>
215
  <li><?php _e('Import and export custom fields and hidden metadata'); ?></li>
216
  <li><?php _e('Option to send emails to new users on import'); ?></li>
217
+ <li><?php _e('Customize email send to new users on import'); ?></li>
218
  <li><?php _e('Import from URL, FTP/SFTP'); ?></li>
219
  <li><?php _e('Export to FTP/SFTP'); ?></li>
220
  <li><?php _e('Run scheduled automatic import and export '); ?></li>