Developer forum

Forum » Ecommerce - Standard features » User Registration and Newsletter Subscription

User Registration and Newsletter Subscription

Adrian Ursu
Reply

Hi Guys,

I have stumbled upon the following scenario:

1. User registers for Newsletter -> we use Extranet module to create a user with Email and Name and generate Username and password in the process

2. User decides afterwards that he wants an account -> we use Extranet module to create a User with the data submitted by the user

3. User wants to recover password -> we use Extranet module with Login setting. But the module will return an erro"User not found" because it finds 2 records with the same email address.

I think that we need a way to merge the accounts based on the email address if the user decides to create an account and also have Newlstter subscription.

Any ideeas?

Thanks,
Adrian

 


Replies

 
George Nelzo Pereira
Reply

Hi Adrian,

Are you using in username the email in steps 1 & 2 ?

 
Adrian Ursu
Reply

Hi George,

Yes. I am using the email as username.

I endedup adding an additional field for regular users and I have added it in the fields needed for retrieve password. This way I can make sure that the password will be for the Account and not for the subscription.

But I still have 2 users with the same email address.

If you find a better solution please let me know.

Thanks,
Adrian

 
George Nelzo Pereira
Reply

Hi Adrian,

I have the first step the newsletter with Extranet module (per default DW use the email as username)...
Then in second step I have a new user profile with Extranet module... If I use the email as a username, DW will give-me an error saying the user is already in DB.
If I use another information as username, then I will have two users... 

 

 
Adrian Ursu
Reply

You should probably create the user in a single post and mimic the 2 steps creation.

But in this case you gonna have to make a custom provider for checking the Email before creating the user.

One other option would be to Edit the user in the second step. But this means you have to auto-login the user after the first step.

 

You must be logged in to post in the forum