Developer forum

Forum » Ecommerce - Standard features » Newsletter during checkout

Newsletter during checkout

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Just a quick question I think.

The "Use email Subscription" checkbox setting in the cart app, enables the user to signup for a newsletter during checkout.

If I understand it correctly, OOTB it does set the "OrderCustomerNewsletterSubcribe" field in the EcomOrders table, but it does not set anything on the user so that needs to be a custom addition?

The documentation says:  (https://doc.dynamicweb.com/documentation-9/ecommerce/apps/shopping-cart#sideNavTitle1-3)


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

User logged in or not?

User created during checkout or not?

If there is no user, the flag cannot be set on the user. If the user is not logged in, the user in this context, does not exist. 

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

I'm actually testing a solution, and I'm aiming to know and test the behaviour for all of the above scenario's. 

So if I understand correctly form your followup questions and answer:

  • For an anonymous checkout with no user, the checkbox will not do anything. 
  • For a logged in user, should the system update the "Email permission" on the user, and/or can it also be configured to add/remove a consent?
  • And if a user is created during chekout, would the behaviour essentially be the same as for the logged in user?
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

For anonymous, the order is marked as allow email - what you do with it is up to you.

For logged in users, consent cannot be added - we do not have that feature - also it is technically not needed when you have a customer relationship, and allow email is in it self a consent. Though I understand that the list of people that can understand that is as short as the list of dollar billionaires in the world :-).

If users are created during checkout, it should work like a regular logged in user.

Both creating accounts and asking for newsletter consent during checkout has to be really thought through as it can impact confusion and hence conversion rates. Always consider moving these things to the confirmation page after the checkout has completed.

Votes for this answer: 1
 
Suzi Louring
Suzi Louring
Reply

Hi Nicolai,

Where can I see this: "For anonymous, the order is marked as allow email" ?

Thanks :)

/Suzi

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi Suzy,

I think it is not visible in the UI, but you can listen for a notification and act on that to process the value. https://doc.dynamicweb.com/documentation-9/api/apis/api-docs#article=Dynamicweb.Ecommerce.Examples.Notifications.EcomCartAfterNewsletterSubscriptionValueIsChangedObserver

The value for the order is stored in OrderCustomerNewsletterSubcribe in the EcomOrders table: see DB structure here: https://doc.dynamicweb.com/documentation-9/ecommerce/carts-orders/cart-orders-details#sideNavTitle1-3

Please correct me if I am wrong @Nicolai  :-)

Cheers,

Justin

 

 
Suzi Louring
Suzi Louring
Reply

Thank you, Justin

I've just tested, and it seems like you are right :)

 

You must be logged in to post in the forum