Import Export WordPress Users and WooCommerce Customers - Version 2.0.7

Version Description

  • Tested OK with WC 5.0.0 and WP 5.6.1
  • Version 2.0.0 onward has been revamped majorly.
Download this release

Release Info

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

Code changes from version 2.0.6 to 2.0.7

admin/classes/class-csvreader.php CHANGED
@@ -206,16 +206,16 @@ class Wt_Import_Export_For_Woo_Basic_Csvreader
206
  }
207
  elseif($row_column_count>$head_column_count)
208
  {
209
- continue;
 
210
  }
211
 
212
  /* clearing temp variables */
213
  $row_column_count=$head_column_count=null;
214
  unset($row_column_count, $head_column_count);
215
-
216
  /* preparing associative array */
217
  $data_row=array_combine($head_arr, $row);
218
-
219
  $out_arr[]=$module_obj->process_column_val($data_row, $form_data);
220
  //$out_arr[]=$data_row;
221
 
206
  }
207
  elseif($row_column_count>$head_column_count)
208
  {
209
+ $row = array_slice($row, 0, $head_column_count); //IER-209
210
+ //continue;
211
  }
212
 
213
  /* clearing temp variables */
214
  $row_column_count=$head_column_count=null;
215
  unset($row_column_count, $head_column_count);
216
+ $head_arr = array_map('trim', $head_arr); //WUWCIEP-132
217
  /* preparing associative array */
218
  $data_row=array_combine($head_arr, $row);
 
219
  $out_arr[]=$module_obj->process_column_val($data_row, $form_data);
220
  //$out_arr[]=$data_row;
221
 
admin/css/wt-import-export-for-woo-admin.css CHANGED
@@ -151,7 +151,7 @@
151
  }
152
  .wt-iew_form_help{ color:#666; font-style: italic; font-weight:400; font-size:12px; display:inline-block; width:100%; margin-top:10px; }
153
  .wt-iew_conditional_help_text{ display:none;}
154
- .wt-iew-form-table tr th:first-child{ width:25%; padding:10px 15px 10px 0; vertical-align:top; }
155
  .wt-iew-form-table tr th:first-child label{ margin-top:5px; display:inline-block; }
156
  .wt-iew-form-table tr td:nth-child(2){ width:40%; padding:10px 5px 10px 0; }
157
  .wt-iew-form-table tr td:nth-child(3){ width:35%; }
151
  }
152
  .wt-iew_form_help{ color:#666; font-style: italic; font-weight:400; font-size:12px; display:inline-block; width:100%; margin-top:10px; }
153
  .wt-iew_conditional_help_text{ display:none;}
154
+ .wt-iew-form-table tr th:first-child{ width:40%; padding:10px 15px 10px 0; vertical-align:top; }
155
  .wt-iew-form-table tr th:first-child label{ margin-top:5px; display:inline-block; }
156
  .wt-iew-form-table tr td:nth-child(2){ width:40%; padding:10px 5px 10px 0; }
157
  .wt-iew-form-table tr td:nth-child(3){ width:35%; }
admin/modules/export/views/main.php CHANGED
@@ -12,6 +12,7 @@ if (!defined('ABSPATH')) {
12
  ?>
13
  <?php
14
  do_action('wt_iew_exporter_before_head');
 
15
  ?>
16
  <style type="text/css">
17
  .wt_iew_export_step{ display:none; }
@@ -40,7 +41,7 @@ Wt_Iew_IE_Basic_Helper::debug_panel($this->module_base);
40
 
41
  <div class="wt_iew_loader_info_box"></div>
42
  <div class="wt_iew_overlayed_loader"></div>
43
- <div class="wt_iew_export_step_main">
44
  <?php
45
  foreach($this->steps as $stepk=>$stepv)
46
  {
@@ -50,7 +51,9 @@ Wt_Iew_IE_Basic_Helper::debug_panel($this->module_base);
50
  }
51
  ?>
52
  </div>
53
- <?php /*
 
 
54
  <script type="text/javascript">
55
  /* external modules can hook
56
  function wt_iew_exporter_validate(action, action_type, is_previous_step)
12
  ?>
13
  <?php
14
  do_action('wt_iew_exporter_before_head');
15
+ $wf_admin_view_path=plugin_dir_path(WT_U_IEW_PLUGIN_FILENAME).'admin/views/';
16
  ?>
17
  <style type="text/css">
18
  .wt_iew_export_step{ display:none; }
41
 
42
  <div class="wt_iew_loader_info_box"></div>
43
  <div class="wt_iew_overlayed_loader"></div>
44
+ <div class="wt_iew_export_step_main" style = "width:68%">
45
  <?php
46
  foreach($this->steps as $stepk=>$stepv)
47
  {
51
  }
52
  ?>
53
  </div>
54
+ <?php
55
+ include $wf_admin_view_path."market.php";
56
+ /*
57
  <script type="text/javascript">
58
  /* external modules can hook
59
  function wt_iew_exporter_validate(action, action_type, is_previous_step)
admin/modules/import/views/main.php CHANGED
@@ -12,6 +12,7 @@ if (!defined('ABSPATH')) {
12
  ?>
13
  <?php
14
  do_action('wt_iew_importer_before_head');
 
15
  ?>
16
  <style type="text/css">
17
  .wt_iew_import_step{ display:none; }
@@ -51,7 +52,7 @@ Wt_Iew_IE_Basic_Helper::debug_panel($this->module_base);
51
  <div class="wt_iew_loader_info_box"></div>
52
  <div class="wt_iew_overlayed_loader"></div>
53
 
54
- <div class="wt_iew_import_step_main">
55
  <?php
56
  foreach($this->steps as $stepk=>$stepv)
57
  {
@@ -61,6 +62,8 @@ Wt_Iew_IE_Basic_Helper::debug_panel($this->module_base);
61
  }
62
  ?>
63
  </div>
 
 
64
  <script type="text/javascript">
65
  /* external modules can hook */
66
  function wt_iew_importer_validate_basic(action, action_type, is_previous_step)
12
  ?>
13
  <?php
14
  do_action('wt_iew_importer_before_head');
15
+ $wf_admin_view_path=plugin_dir_path(WT_U_IEW_PLUGIN_FILENAME).'admin/views/';
16
  ?>
17
  <style type="text/css">
18
  .wt_iew_import_step{ display:none; }
52
  <div class="wt_iew_loader_info_box"></div>
53
  <div class="wt_iew_overlayed_loader"></div>
54
 
55
+ <div class="wt_iew_import_step_main" style = "width:68%">
56
  <?php
57
  foreach($this->steps as $stepk=>$stepv)
58
  {
62
  }
63
  ?>
64
  </div>
65
+ <?php
66
+ include $wf_admin_view_path."market.php";?>
67
  <script type="text/javascript">
68
  /* external modules can hook */
69
  function wt_iew_importer_validate_basic(action, action_type, is_previous_step)
admin/modules/user/import/import.php CHANGED
@@ -196,7 +196,7 @@ class Wt_Import_Export_For_Woo_basic_User_Import {
196
  // if(!$this->is_user_exist && $this->skip_new){
197
  // throw new Exception('Skipping new item' );
198
  // }
199
-
200
  if(!$this->is_user_exist){
201
  $create_user_without_email = apply_filters('wt_create_user_without_email',FALSE); // create user without email address
202
  if ( empty($item['user_email']) && $create_user_without_email === FALSE ) {
@@ -359,7 +359,7 @@ class Wt_Import_Export_For_Woo_basic_User_Import {
359
  $found_customer = $insertion_id;
360
  }
361
 
362
- }
363
  if(!$found_customer) {
364
  $found_customer = wp_create_user($username, $password, $customer_email);
365
  }
@@ -367,7 +367,7 @@ class Wt_Import_Export_For_Woo_basic_User_Import {
367
  if (!$password_generated) {
368
  $user_data['user_pass'] = $password;
369
  }
370
-
371
  if (!is_wp_error($found_customer)) {
372
  wp_insert_user($user_data);
373
  $wp_user_object = new WP_User($found_customer);
196
  // if(!$this->is_user_exist && $this->skip_new){
197
  // throw new Exception('Skipping new item' );
198
  // }
199
+
200
  if(!$this->is_user_exist){
201
  $create_user_without_email = apply_filters('wt_create_user_without_email',FALSE); // create user without email address
202
  if ( empty($item['user_email']) && $create_user_without_email === FALSE ) {
359
  $found_customer = $insertion_id;
360
  }
361
 
362
+ }
363
  if(!$found_customer) {
364
  $found_customer = wp_create_user($username, $password, $customer_email);
365
  }
367
  if (!$password_generated) {
368
  $user_data['user_pass'] = $password;
369
  }
370
+
371
  if (!is_wp_error($found_customer)) {
372
  wp_insert_user($user_data);
373
  $wp_user_object = new WP_User($found_customer);
admin/partials/wt-import-export-for-woo-admin-display.php CHANGED
@@ -22,7 +22,7 @@ $wf_img_path=WT_U_IEW_PLUGIN_URL.'images/';
22
  Wt_Import_Export_For_Woo_Basic::generate_settings_tabhead($tab_head_arr);
23
  ?>
24
  </div>
25
- <div class="wt-iew-tab-container">
26
  <?php
27
  //inside the settings form
28
  $setting_views_a=array(
@@ -70,4 +70,5 @@ $wf_img_path=WT_U_IEW_PLUGIN_URL.'images/';
70
  ?>
71
  <?php do_action('wt_iew_plugin_out_settings_form');?>
72
  </div>
 
73
  </div>
22
  Wt_Import_Export_For_Woo_Basic::generate_settings_tabhead($tab_head_arr);
23
  ?>
24
  </div>
25
+ <div class="wt-iew-tab-container" style = "width:72%">
26
  <?php
27
  //inside the settings form
28
  $setting_views_a=array(
70
  ?>
71
  <?php do_action('wt_iew_plugin_out_settings_form');?>
72
  </div>
73
+ <?php include $wf_admin_view_path."market.php"; ?>
74
  </div>
admin/views/market.php ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ ?>
6
+
7
+ <style>
8
+ .wf_customer_import_export.market-box{
9
+ width:27%;
10
+ float: right;
11
+ }
12
+ .wrap .wf_customer_import_export .uipe-premium-features {
13
+ margin-top: 0px;
14
+ margin-right: 0px;
15
+ }
16
+ .wf_customer_import_export .uipe-premium-features{
17
+ background: #fff;
18
+ padding: 5px;
19
+ /* margin-bottom: 23px;*/
20
+ margin-top: 30px;
21
+ margin-right: 15px;
22
+ }
23
+ .wf_customer_import_export .uipe-premium-features ul {
24
+ padding-left: 20px;
25
+ padding-right: 20px;
26
+ }
27
+ .wf_customer_import_export .uipe-premium-features .ticked-list li {
28
+ margin-bottom: 15px;
29
+ padding-left: 15px;
30
+ }
31
+ .wf_customer_import_export .uipe-premium-features .ticked-list li:before
32
+ {
33
+ font-family: dashicons;
34
+ text-decoration: inherit;
35
+ font-weight: 400;
36
+ font-style: normal;
37
+ vertical-align: top;
38
+ text-align: center;
39
+ content: "\f147";
40
+ margin-right: 10px;
41
+ margin-left: -25px;
42
+ font-size: 16px;
43
+ color: #3085bb;
44
+ }
45
+ .wf_customer_import_export .uipe-premium-features .button {
46
+ /*margin-bottom: 20px;*/
47
+ }
48
+ .wf_customer_import_export .uipe-premium-features .button-go-pro {
49
+ box-shadow: none;
50
+ border: 0;
51
+ text-shadow: none;
52
+ padding: 10px 15px;
53
+ height: auto;
54
+ font-size: 16px;
55
+ border-radius: 4px;
56
+ font-weight: 400;
57
+ background: #00cb95;
58
+ /* margin-top: 20px;*/
59
+ }
60
+ .wf_customer_import_export .uipe-premium-features .button-go-pro:hover,
61
+ .wf_customer_import_export .uipe-premium-features .button-go-pro:focus,
62
+ .wf_customer_import_export .uipe-premium-features .button-go-pro:active {
63
+ background: #00a378;
64
+ }
65
+ .wf_customer_import_export .uipe-premium-features .button-doc-demo {
66
+ border: 0;
67
+ background: #d8d8dc;
68
+ box-shadow: none;
69
+ padding: 10px 15px;
70
+ font-size: 15px;
71
+ height: auto;
72
+ margin-left: 10px;
73
+ margin-right: 10px;
74
+ margin-top: 10px;
75
+ }
76
+ .wf_customer_import_export .uipe-premium-features .button-doc-demo:hover,
77
+ .wf_customer_import_export .uipe-premium-features .button-doc-demo:focus,
78
+ .wf_customer_import_export .uipe-premium-features .button-doc-demo:active {
79
+ background: #dfdfe4;
80
+ }
81
+ .wf_customer_import_export .xa-uipe-rating-link{color:#ffc600;}
82
+
83
+ .wf_customer_import_export .uipe-review-widget{
84
+ background: #fff;
85
+ padding: 5px;
86
+ margin-bottom: 23px;
87
+ }
88
+ .wf_customer_import_export .uipe-review-widget p{
89
+ margin-right:5px;
90
+ margin-left:5px;
91
+ }
92
+ </style>
93
+ <div class="wf_customer_import_export market-box table-box-main">
94
+
95
+ <div class="uipe-premium-features">
96
+ <ul style="font-weight: bold; color:#666; list-style: none; background:#f8f8f8; padding:20px; margin:20px 15px; font-size: 15px; line-height: 26px;">
97
+ <li style="text-align: center;"><?php echo __('30 Day Money Back Guarantee','users-customers-import-export-for-wp-woocommerce'); ?></li>
98
+ <li style="text-align: center;"><?php echo __('Fast and Superior Support','users-customers-import-export-for-wp-woocommerce'); ?></li>
99
+ <li style="text-align: center;">
100
+ <a href="https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/" target="_blank" class="button button-primary button-go-pro"><?php _e('Upgrade to Premium', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
101
+ </li>
102
+ </ul>
103
+ <span>
104
+ <ul class="ticked-list">
105
+ <li style='color:red;'><strong><?php _e('Your Business is precious! Go Premium!','users-customers-import-export-for-wp-woocommerce'); ?></strong></li>
106
+
107
+ <li><?php _e('WebToffee Import Export Users Plugin Premium version helps you to seamlessly import/export user and customer details to/from your Woocommerce store.', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
108
+ <li><?php _e('Export/import WooCommerce customer details using a CSV/XML file. (Basic version supports only CSV format)', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
109
+ <li><?php _e('Various filter options (User roles, user email, date range, offset/limit, guest users, ascending/descending sort) for exporting users and customers.', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
110
+ <li><?php _e('Option to choose all roles or multiple roles while export.', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
111
+ <li><?php _e('Export user meta (custom fields and hidden metadata supported in addition to other user data)', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
112
+ <li><?php _e('WPML supported. Supports French out-of-the-box.', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
113
+ <li><?php _e('The choice to send or skip emails for newly imported users/customers.', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
114
+ <li><?php _e('Import/export file from/to a remote server via FTP in scheduled time interval with Cron Job.', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
115
+ <li><?php _e('Supports import from URL', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
116
+ <li><?php _e('Compatible with BuddyPress Plugin, Ultimate Member – User Profile & Membership Plugin, Ultimate Membership Pro Plugin, Better Notifications for WP Plugin, Advanced Custom Fields (ACF) Plugin compatible, Cimy User Extra Fields Plugin.', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
117
+ <li><?php _e('Excellent priority support', 'users-customers-import-export-for-wp-woocommerce'); ?></li>
118
+
119
+
120
+ </ul>
121
+ </span>
122
+ </div>
123
+
124
+ </div>
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.0.6';
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.0.7';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: user import, user export, csv, woocommerce, customers, import, export, exp
5
  Requires at least: 3.0.1
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -29,7 +29,7 @@ WordPress User Import Export plugin allows you to import and export WordPress us
29
  &#128312; Map and Transform fields while importing customers/users
30
  &#128312; Change values (bulk modify) while importing customers/users using Evaluation Fields
31
  &#128312; Tested OK with WordPress 5.6
32
- &#128312; Tested OK with WooCommerce 4.9.0
33
  &#128312; Tested OK with PHP 7.3.5
34
 
35
  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.
@@ -218,6 +218,9 @@ Yes, you can update the user data with the help of this plugin. The users will b
218
  12. WordPress user import export log
219
 
220
  == Changelog ==
 
 
 
221
  = 2.0.6 =
222
  * Content update.
223
  * Version 2.0.0 onward has been revamped majorly.
@@ -366,6 +369,6 @@ Yes, you can update the user data with the help of this plugin. The users will b
366
 
367
  == Upgrade Notice ==
368
 
369
- = 2.0.6 =
370
- * Content update.
371
  * Version 2.0.0 onward has been revamped majorly.
5
  Requires at least: 3.0.1
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.7
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
29
  &#128312; Map and Transform fields while importing customers/users
30
  &#128312; Change values (bulk modify) while importing customers/users using Evaluation Fields
31
  &#128312; Tested OK with WordPress 5.6
32
+ &#128312; Tested OK with WooCommerce 5.0.0
33
  &#128312; Tested OK with PHP 7.3.5
34
 
35
  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.
218
  12. WordPress user import export log
219
 
220
  == Changelog ==
221
+ = 2.0.7 =
222
+ * Tested OK with WC 5.0.0 and WP 5.6.1
223
+ * Version 2.0.0 onward has been revamped majorly.
224
  = 2.0.6 =
225
  * Content update.
226
  * Version 2.0.0 onward has been revamped majorly.
369
 
370
  == Upgrade Notice ==
371
 
372
+ = 2.0.7 =
373
+ * Tested OK with WC 5.0.0 and WP 5.6.1
374
  * Version 2.0.0 onward has been revamped majorly.
users-customers-import-export-for-wp-woocommerce.php CHANGED
@@ -6,8 +6,8 @@
6
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
9
- Version: 2.0.6
10
- WC tested up to: 4.9.0
11
  Text Domain: users-customers-import-export-for-wp-woocommerce
12
  License: GPLv3
13
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -43,7 +43,7 @@ if ( ! defined( 'WT_IEW_DEBUG_BASIC' ) ) {
43
  * Start at version 1.0.0 and use SemVer - https://semver.org
44
  * Rename this for your plugin and update it as you release new versions.
45
  */
46
- define( 'WT_U_IEW_VERSION', '2.0.6' );
47
 
48
  /**
49
  * The code that runs during plugin activation.
6
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
9
+ Version: 2.0.7
10
+ WC tested up to: 5.0.0
11
  Text Domain: users-customers-import-export-for-wp-woocommerce
12
  License: GPLv3
13
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
43
  * Start at version 1.0.0 and use SemVer - https://semver.org
44
  * Rename this for your plugin and update it as you release new versions.
45
  */
46
+ define( 'WT_U_IEW_VERSION', '2.0.7' );
47
 
48
  /**
49
  * The code that runs during plugin activation.