Newsletter subscription doesn't work in a non 2.0 theme

Newsletter subscription doesn't work in a non 2.0 theme

Zokor
New Member
4 0 0

This is an old theme, however the email signup doesn't work, whenever i try to submit it gets a validation if i'm human and i don't see anything inserted in the customers base with email_subscription_status = 'SUBSCRIBED' (or even without it, the email is not there ).  This is the store: https://travelandbusinesstore.com/

{% form 'customer' %}
<input type="hidden" name="contact[tags]" value="newsletter">
<input type="email" name="contact[email]" class="newsletter__input--text" placeholder="Enter your email" required>
<button type="submit" class="newsletter__input--btn">Sign Up</button>
{% endform %}



Thank you in advance

Replies 2 (2)

PageFly-Amelia
Shopify Partner
626 165 238

Hi @Zokor ,

This is Amelia from PageFly - a Landing Page Builder App

I think that you can check some issues below that are related to your form:

  1. Check Form Action URL: Ensure that the form’s action URL is correctly set to handle the email subscription. It should point to Shopify’s customer creation endpoint or your email marketing service’s endpoint.
    You can use the fully HTML form like this image: https://monosnap.com/file/mpCYFd6lPIAjXWzmkVHd9cKPtVgtbb
  2. Verify reCAPTCHA Integration: If your form includes a reCAPTCHA validation, ensure that it is correctly integrated and that the necessary keys are set up in your Shopify admin. This can sometimes cause issues with form submissions if not configured properly.

  3. Check for JavaScript Errors: Open your browser’s developer console (F12) and check for any JavaScript errors that might be preventing the form from submitting correctly. Look for any errors related to the form or reCAPTCHA.

  4. Review Shopify’s Email Signup Process: Shopify has specific requirements for handling email signups. Make sure your form complies with these requirements. You can refer to Shopify’s documentation for more details on setting up email signups.

  5. Test with a Simple Form: Create a simple form without any additional JavaScript or reCAPTCHA to see if the basic functionality works. This can help isolate whether the issue is with the form itself or with additional scripts.

  6. Check Customer Tags: Ensure that the form is correctly tagging customers with the newsletter tag. This can be done by adding a hidden input field in your form

I hope that my solution works for you.

Best regards,

Amelia | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 
➜ Weekly updated Shopify tutorials on YouTube 


All features are available from Free plan. Live Chat Support is available 24/7.

Zokor
New Member
4 0 0

Hi PageFly-Amelia, thank you for answering.

Unfortunatly it doesn't work because many things doesn't apply, let me try to write here:

1) Check Form Action URL this is automatically handled by shopify code so the form that generates is:

<form role="form" action="/contact#contact_form" method="post" accept-charset="UTF-8" target="_blank" class="js-newsletter-form">

2) Verify reCAPTCHA Integration this recaptcha happears without me asking for it, so i assume it's once again something from Shopify part 
3) Check for JavaScript Errors if this is using a form POST it won't use javascript, anyway there's no errors.
4) Review Shopify’s Email Signup Process i asked for help here after i wasted many time trying to find a solution and nothing worked.
4) Test with a Simple Form like i said, i don't use recaptcha apps and the form doesn't have javascript ( what i showed you here was liquid code ) it's hard to be more simpler than this

5) Check Customer Tags it's that 

<input type="hidden" name="contact[tags]" value="newsletter">


isn't this the one i copy pasted?


I don't mind to do this form submission through javascript. just need to know the endpoints and possible need for headers. I want shopify only, no 3rd party apps.

Hope you can help on this, thank you