Support is online

importe user WITHOUT email address #62761

Resolved PROPHETdesign opened this topic Tuesday, 12 May 2020 · 2 replies
Author

Hello,

I am happy with the charm of your RO CSVI component.

maintnet I want to import more than 6000 users in hikashop.

my problem is that they don't all have an email address, so when i want to import i get an error: "Missing required field user_email"

how can i go through the above?

indeed, I will send a printed letter by post to all these users, I give them the login (username) and the password that I generated for them and I ask them to complete their profile by entering their email address exactly.

then I need to inject the users by avoiding the obligatory field of the email address.

you have an idea ?

I thought of entering false information for each user, but I do not like this way at all.

I thank you in advance for your help. Best regards.
(I speak French, sorry for my bad English)

  • ro-csvi-pb.jpg
Support

Hello,

my problem is that they don't all have an email address, so when i want to import i get an error: "Missing required field user_email"

Correct because Joomla requires an email address.

then I need to inject the users by avoiding the obligatory field of the email address.

You cannot avoid it because it is required.

you have an idea ?

I have some ideas yes :)

I thought of entering false information for each user, but I do not like this way at all.

You have no other option. The email is a required field, unless you have the users real email addresses, there is no way to import the real values. So import a system generated email address and you can save the user in the database.

What you need to do is create 2 rules as shown in the screenshots, make sure that the email skip has a higher order than the email on the fly because it needs to be processed first. Assign both rules to the email field. So when the email field is empty, the rule will create a random email address that is accepted by Joomla. Any users with an email address will be skipped for this import. You can find out later who still hasn't updated their email address by filtering on the @invalid.

You can create a second template or change the rules on the email field where you remove the email on the fly rule and change the skip rule to Skip empty fields. This will skip all the users without an email address and only import the users with an email address.

This way you don't have to make separate import lists and can use just 1 file.

  • email_on_the_fly.png
  • email_skip.png

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

thank you very much !

your software is great!

I could do what I wanted, thanks again.

Have a nice day

Log in to reply to this topic.