Adding Customer Note via Newsletter customer form - not working?

Adding Customer Note via Newsletter customer form - not working?

HandHugs
Shopify Partner
199 1 60

I have followed the steps from this documentation:

https://shopify.dev/tutorials/customize-theme-get-more-information-with-customer-registration-form

 

but when I test out our customer form in a newsletter pop up, the customer gets added but the note's field is nowhere to be seen, and the customer notes are blank. Is this working for anyone??

Replies 6 (6)

oscprofessional
Shopify Partner
16343 2438 3179

Hello ,

You have to add field in

Online Store->Theme->Edit code->Sections->newsletter.liquid

file to display it in newsletter.

The tutorial you are refering is for customer registration form.

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
HandHugs
Shopify Partner
199 1 60
I added it to the newsletter form. The field shows for the customer but when I test it on the site and submit, the form submits but there are no notes on the customers profile.
Frida99
Visitor
1 0 0

I'm having the same issue — I was able to use the tutorial linked to get notes in the customer registration form working, I even used the same method to customize the contact form. It does not work on the Newsletter form, you can still subscribe and it still creates an account, but the customer has no notes, no name, just an email.

 

Has anyone successfully customized their Shopify Newsletter Form? 

HandHugs
Shopify Partner
199 1 60
I was not ever able to get this to work 😞
michael-helium
Shopify Partner
380 5 185

Hello @HandHugs and @Frida99,

This should be simple to accomplish using the Customer Fields app. We've added a customer note editor in the app which makes it easy to inject any field from your form into the customer note (without overwriting any previous customer note data, of course!)

Michael, COO @ Helium
- Customer Fields ✪✪✪✪✪ (357 reviews)
- Meteor Mega Menu ✪✪✪✪✪ (281 reviews)
- Strike Automatic Discounts NEW!

nathanbone
Visitor
1 0 2

Managed to solve this using the 'customer' form with 'contact[]' field names.

The pattern to add a note to the customer account is to use the name value on the input with the contact prefix and then [note][identifier] eg: contact[note][Business] instead of using the customer[note][identifier] pattern in the tutorial.


{% form 'customer', id: 'newsletter', class: 'newsletter__form' %}

<input autocomplete="given-name" type="text" id="ContactForm-firstName" name="contact[first_name]" value="{% if form.name %}{{ form.name }}{% elsif customer %}{{ customer.name }}{% endif %}" placeholder="First Name*">

<input autocomplete="family-name" type="text" id="ContactForm-lastName" name="contact[last_name]" value="{% if form.business %}{{ form.business }}{% endif %}" placeholder="Last Name*">

<input autocomplete="organization" type="text" id="ContactForm-business" name="contact[note][Business]" value="{% if form.business %}{{ form.business }}{% endif %}" placeholder="{{ 'templates.contact.form.business' | t }}">
			
{% endform %}