Re: {% form 'create_customer' %} customer[accepts_marketing]

Solved

{% form 'create_customer' %} customer[accepts_marketing]

Oislt
Shopify Partner
9 1 6

Hello,
For some reason @Shopify this not long work when the customer is create. How can I create a customer without not accepts marketing email subscription? I ask this because this line of code doesn't work anymore, and for default accepts marketing when the costumer is create.

Thank you!

 

 

 

 

{% form 'create_customer' %}
<input type="checkbox" name="customer[accepts_marketing]" checked="false" />
{% endform %}

 

 

 

 

 

Accepted Solution (1)

Oislt
Shopify Partner
9 1 6

This is an accepted solution.

Solution:

 

 

{% form 'create_customer' %}
<input type="hidden" name="customer[accepts_marketing]" value="false" />
<input type="checkbox" name="customer[accepts_marketing]" />
{% endform %}

 

 

View solution in original post

Reply 1 (1)

Oislt
Shopify Partner
9 1 6

This is an accepted solution.

Solution:

 

 

{% form 'create_customer' %}
<input type="hidden" name="customer[accepts_marketing]" value="false" />
<input type="checkbox" name="customer[accepts_marketing]" />
{% endform %}