ruby on rails - Mailchimp subscriber single opt-in form for Shopify? -


we're trying implement single opt-in email subscribe form our mailchimp list on our shopify site. we're using custom designed theme not have input field on theme customization page mailchimp action url.

with article https://help.shopify.com/manual/using-themes/change-the-layout/theme-newsletter (originally found https://ecommerce.shopify.com/c/ecommerce-design/t/mailchimp-newsletter-sign-up-form-with-single-opt-in-199767) using instructions "non-sectioned themes" (theme developed in 2015) -- end code:

{% form 'customer' %}   {{ form.errors | default_errors }}     {% if form.posted_successfully? %}       <p>thanks subscribing</p>       <input type="hidden" name="contact[tags]" value="newsletter">       <input type="email"        name="contact[email]"        id="email"        value="{% if customer %}{{ customer.email }}{% endif %}">       <button type="submit" class="btn" name="commit">subscribe</button>     {% endif %}   {% endform %} 

including code our theme nothing, , renders no visible elements on screen. inspecting code can see form 2 hidden elements on page.

all want pass email address entered in subscribe form shopify customer database import our mailchimp list via mailchimp shopify plugin.

been scouring internet , cannot find docs shopify implementation -- plenty of php examples bypassing double opt-in feature jquery , ajax none shopify.

thank you


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -