Skip to content

Instantly share code, notes, and snippets.

@hughker
Created September 20, 2015 19:12
Show Gist options
  • Save hughker/4cfb5e986184ee0ba261 to your computer and use it in GitHub Desktop.
Save hughker/4cfb5e986184ee0ba261 to your computer and use it in GitHub Desktop.
Bypass MailChimp Double Opt-In on Shopify via "New Customer Form"

All you need is the MailChimp for Shopify App installed + configured, then whenever someone fills out the form below, they're added as a new customer to Shopify and for whatever reason the MailChimp integration apparently also sees that a someone who also has opted to receive marketing emails...

{% form 'customer' %}
  {{ form.errors | default_errors }}
  <input type="email" placeholder="Email Address" name="contact[email]" id="email-input">
  <input type="submit" class="button" value="Join" name="subscribe" id="email-submit">
{% endform %}

Just discovered it and thought it was strange so if you have more insight on this, let me know.

@FloBorg
Copy link

FloBorg commented Jun 22, 2016

works perfectly. I added a field for tags:
<input type="hidden" name="contact[tags]" value="newsletter" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment