What's your biggest current challenge? Have your say in Community Polls along the right column.

Can I add a checkbox to my newsletter subscription form?

Can I add a checkbox to my newsletter subscription form?

web_astro
Excursionist
18 0 7

Hello,
Is it possible to add checkbox for the customer who subscribes to newsletter?

 

This is the basic code of the form:

check.png

 

...
{%- if settings.subscription_method == 'shopify' -%}
{% form 'customer', id: null, class: 'form-group--type-inline d-flex d-flex flex-column flex-lg-row mb-0' %}
{% render 'form-get-check-error-popup' %}
<input type="hidden" name="contact[tags]" value="newsletter">
<input type="email" name="contact[email]" class="mb-10 mb-lg-0 mr-lg-10{% if form.errors %} input--error{% endif %}" placeholder="{{ section.settings.placeholder }}" required="required">
<input type="submit" class="btn" name="commit" value="{{ section.settings.button_text }}">
{% endform %}

...

 

Thank  You!

Replies 0 (0)