Newsletter Language for Already Subscribed Users

Topic summary

Issue: Newsletter forms don’t show feedback when an already-subscribed email re-submits; the page refreshes without an error message.

Proposed solution (code-based):

  • Add JavaScript in Assets/global.js to detect submissions via URL parameter form_type=customer and a non-empty email field, then append an H3 message “You have already subscribed!” to .newsletter-form__field-wrapper.
  • Add CSS in Assets/component-newsletter.css to style the message (e.g., .newsletter_already_subscribe { color: red; }). Code snippets and a screenshot were provided and are central to the fix.

Theme-specific notes:

  • Dawn: The original selector using #NewsletterForm–footer may fail due to variable IDs. Using document.querySelector(‘[id*=“NewsletterForm”]’) works; multiple confirmations that this fix is successful. Ensure the script is placed in global.js, not theme.js.
  • Debut: No built-in translation string for “already subscribed” (only Label, Success, Button Label). A hard-coded input ID example was shared, but the reporter still couldn’t get the message to display; no confirmed Debut fix.
  • Symmetry: A request for compatible code is pending; no solution shared yet.

Status: Working approach confirmed for Dawn; unresolved for Debut and Symmetry. Discussion remains open.

Summarized with AI on December 13. AI used: gpt-5.

You are the best, this worked for me!!