Streaming live at 10am (PST)

Subscribe to Newsletter option during checkout

I’m looking at adding a check box newsletter sign up / opt-in form item during the checkout process.

If possible I would like to POST it directly to my Mailchimp list, however failing this a CMS in Webflow I could merge later.

Any help would be great!

1 Like

Came here for recommendations on my site as well. Best of luck!

Yeah I second this! I can’t seem to find anything of that nature. @WebflowCommunityTeam any updates on this issue?

Did anyone find a solution for this? I’m interested in doing the same :slight_smile:

I did! I added a stand-alone form entry for the email in the checkout page. I then used a very simple bit of JavaScript to duplicate the email address from the customers contact detail element and use it to prefill the email sign up form.

This could be further styled to work as a check box or a button element.

Great job Liam. Any chance you could share a with us how you did it with specifics?!

So what I did was add the following code within my order confirmation page:

var customerEmail;
customerEmail = document.getElementById("Customer-Email").innerHTML;
document.getElementById('EMAIL-3').value = customerEmail;

This takes the customer email from their contact details (that’s the element with the ID “Customer-Email”, but check your own html) and then inserts it in to a newsletter subscription form (I used the Webflow component to do this, its ID was “EMAIL-3”.

Hope this helps!