Import users from CSV with meta - Version 1.19.3.1

Version Description

  • Added a message when an email already exists in the system but is used by a different user than the one indicated in the CSV
  • Fixed error in documentation when WooCommerce Subscriptions was active
Download this release

Release Info

Developer carazo
Plugin Icon 128x128 Import users from CSV with meta
Version 1.19.3.1
Comparing to
See all releases

Code changes from version 1.19.3 to 1.19.3.1

addons/woocommerce-subscriptions.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
  if( !is_plugin_active( 'woocommerce-subscriptions/woocommerce-subscriptions.php' ) ){
@@ -79,7 +80,7 @@ class ACUI_WooCommerceSubscriptions{
79
  <li><?php _e( 'You can import subscriptions with their info', 'import-users-from-csv-with-meta' ); ?>.</li>
80
  <li><?php printf( __( 'Data format: use the column names <a href="%s">described here</a>, except the ones that are not used because we have the own ones:', 'import-users-from-csv-with-meta' ), "https://github.com/woocommerce/woocommerce-subscriptions-importer-exporter#csv-columns" ); ?> customer_id, customer_email and customer_username.</li>
81
  <li><?php printf( __( 'Download <a href="%s">this sample file</a> to see how it works', 'import-users-from-csv-with-meta' ), esc_url( plugins_url( 'samples/wcs-import-sample.csv', dirname( __FILE__ ) ) ) ); ?>.</li>
82
- <li><?php printf( __( 'This subscription importer is based in the official <a href="%S">WooCommerce Subscription Importer Exporter</a>.', 'import-users-from-csv-with-meta' ), "https://github.com/woocommerce/woocommerce-subscriptions-importer-exporter" ); ?></li>
83
  </ol>
84
  </td>
85
  </tr>
1
  <?php
2
+
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
  if( !is_plugin_active( 'woocommerce-subscriptions/woocommerce-subscriptions.php' ) ){
80
  <li><?php _e( 'You can import subscriptions with their info', 'import-users-from-csv-with-meta' ); ?>.</li>
81
  <li><?php printf( __( 'Data format: use the column names <a href="%s">described here</a>, except the ones that are not used because we have the own ones:', 'import-users-from-csv-with-meta' ), "https://github.com/woocommerce/woocommerce-subscriptions-importer-exporter#csv-columns" ); ?> customer_id, customer_email and customer_username.</li>
82
  <li><?php printf( __( 'Download <a href="%s">this sample file</a> to see how it works', 'import-users-from-csv-with-meta' ), esc_url( plugins_url( 'samples/wcs-import-sample.csv', dirname( __FILE__ ) ) ) ); ?>.</li>
83
+ <li><?php printf( __( 'This subscription importer is based in the official <a href="%s">WooCommerce Subscription Importer Exporter</a>.', 'import-users-from-csv-with-meta' ), "https://github.com/woocommerce/woocommerce-subscriptions-importer-exporter" ); ?></li>
84
  </ol>
85
  </td>
86
  </tr>
classes/import.php CHANGED
@@ -346,8 +346,7 @@ class ACUI_Import{
346
 
347
  update_option( "acui_columns", $headers_filtered );
348
 
349
- $acui_helper->basic_css();
350
-
351
  $acui_helper->print_table_header_footer( $headers );
352
  else:
353
  $data = apply_filters( 'pre_acui_import_single_user_data', $data, $headers );
@@ -519,6 +518,8 @@ class ACUI_Import{
519
  }
520
  elseif( email_exists( $email ) && $allow_multiple_accounts == "not_allowed" ){ // if the email is registered, we take the user from this and we don't allow repeated emails
521
  if( $update_existing_users == 'no' ){
 
 
522
  continue;
523
  }
524
 
346
 
347
  update_option( "acui_columns", $headers_filtered );
348
 
349
+ $acui_helper->basic_css();
 
350
  $acui_helper->print_table_header_footer( $headers );
351
  else:
352
  $data = apply_filters( 'pre_acui_import_single_user_data', $data, $headers );
518
  }
519
  elseif( email_exists( $email ) && $allow_multiple_accounts == "not_allowed" ){ // if the email is registered, we take the user from this and we don't allow repeated emails
520
  if( $update_existing_users == 'no' ){
521
+ array_push( $users_ignored, $user_id );
522
+ $errors[] = $acui_helper->new_error( $row, $errors_totals, sprintf( __( 'The email %s already exists in the system but is used by a different user than the one indicated in the CSV', 'import-users-from-csv-with-meta' ), $email ), 'warning' );
523
  continue;
524
  }
525
 
import-users-from-csv-with-meta.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Import and export users and customers
4
  Plugin URI: https://www.codection.com
5
  Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
6
- Version: 1.19.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -14,7 +14,7 @@ Domain Path: /languages
14
  if ( ! defined( 'ABSPATH' ) )
15
  exit;
16
 
17
- define( 'ACUI_VERSION', '1.19.3' );
18
 
19
  class ImportExportUsersCustomers{
20
  var $file;
3
  Plugin Name: Import and export users and customers
4
  Plugin URI: https://www.codection.com
5
  Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
6
+ Version: 1.19.3.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
14
  if ( ! defined( 'ABSPATH' ) )
15
  exit;
16
 
17
+ define( 'ACUI_VERSION', '1.19.3.1' );
18
 
19
  class ImportExportUsersCustomers{
20
  var $file;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://codection.com/go/donate-import-users-from-csv-with-meta/
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 6.0
7
- Stable tag: 1.19.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,10 @@ Plugin will automatically detect:
107
 
108
  == Changelog ==
109
 
 
 
 
 
110
  = 1.19.3 =
111
  * Now you can choose to delete roles when importing (creating or updating) users
112
  * Fixed problem with select2.js in homepage tab
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 6.0
7
+ Stable tag: 1.19.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
  == Changelog ==
109
 
110
+ = 1.19.3.1 =
111
+ * Added a message when an email already exists in the system but is used by a different user than the one indicated in the CSV
112
+ * Fixed error in documentation when WooCommerce Subscriptions was active
113
+
114
  = 1.19.3 =
115
  * Now you can choose to delete roles when importing (creating or updating) users
116
  * Fixed problem with select2.js in homepage tab