Developer forum

Forum » Ecommerce - Standard features » Newsletter signup in cart without creating a profile

Newsletter signup in cart without creating a profile

Martin Christensen
Reply

Hey,

I have a one-step checkout cart where a customer has a bunch of options. They can use an existing account associated with the webshop, create a new one or proceed without creating an account. They can also sign up for the newsletter (email marketing) or continue without signing up. So that's 6 combinations in terms of account and newsletter options. I've got 5/6 down :)

My question is: What is required in order to allow a customer to sign up for the newsletter without having or creating an account?

I guess I have to create a new user somehow. Maybe I need to assign a username and password using some hidden fields. Maybe along with <input type="hidden" name="EcomUserCreateNew" id="EcomUserCreateNew" value="True">. I can't really figure out the combination.

Any suggestions are very welcome :)

//Martin

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Martin

Signing up for newsletter is creating an account. So if you just do not want the user to enter username and password, you can, as you suggest, hide the fields for username, password etc.

BR Nicolai

 
Martin Christensen
Reply

Thanks for the response!

Do I need to autogenerate values for username/password?

 
Nicolai Høeg Pedersen
Reply

You can just set the username to the email. Passsword needs a value - you can just set it to whatever string. It also depends on your security settings - there might be some requirements for number of characters etc.

 
Martin Christensen
Reply

Right, thanks again!

I think I'll autogenerate a username as well. I'm using the email as the username for normal profile signups too. And this way a customer can subscribe to the newsletter with no account, then come back and create a profile with the same email without getting a "username taken" error.

 
Martin Christensen
Reply

Okay, so there might be a conflict within the approach I've chosen.

The visitor basically has 3 ways of signing up for the newsletter now; Checkout with or without creating a real profile or standard newsletter signup.
Checkout with no profile autogenerates the username and the other two options just set the email as the user name.

So.. How does DynamicWeb email marketing handle user profiles with the same email - but with different user names?

I don't want anyone to receive 2 newsletters, and I don't really want our customers to pay for a falsely high number of recipients.

Any ideas or info about how this is handled by the system?

 
Nicolai Høeg Pedersen
Reply

Email marketing uses the email address as the key, so users will only count as, and receive only one email.

BR Nicolai

 
Anders Ebdrup
Reply

Hi Nicolai,

 

Then I see a problem if a user unsubscribes from newsletters, because the user can still receive newsletters from the solution?

 

Best regards, Anders

 
Nicolai Høeg Pedersen
Reply

Yes, that can happen.

 

You must be logged in to post in the forum