There are two ways that a customer can consent to email marketing through the theme: - [A newsletter sign-up form](#newsletter-sign-up-form) - [A checkbox input in the customer register form](#customer-registration-form-checkbox) ## Newsletter sign-up form You can add a newsletter sign-up form to your theme with the Liquid [form tag](/docs/api/liquid/tags/form#form-customer) and accompanying `'customer'` parameter. Inside the form, you need to include an input with the following attributes:
Attribute | Value |
---|---|
type |
email |
name |
contact[email] |
Input | type | name |
---|---|---|
Accepts marketing | hidden |
customer[accepts_marketing] |
Accepts marketing | checkbox |
customer[accepts_marketing] |