I’m hoping someone can help me. I am a code newbie but love to give things a go myself.
I have added a Birth Month drop down menu to my registration liquid using the below code:
Birth Month
The Birth Month drop down works on the form however it doesn’t come through on the customers account. I would like the Birth Month to appear in their personal customer tag.
You can find the various address variables at this link and other customer variables at this link.
This should help you set up the collection of the customers data during registration.
let me know if this works for your. If yes; accept my answer and give me thumbs up! Thank you.
The name attribute that @OpenThinking provided will work to add a Customer Note into Shopify with the customer’s selected birth month (e.g. Birthmonth: April), but if you want the data to appear as a customer tag in Shopify then you will need to use the following name attribute instead:
customer[tags]
Here’s a code snippet that should do what you are looking for:
Of course you’ll need to add this into your theme’s registration template (templates/customers/register.liquid) before the {% endform %} tag.
If you’re looking for another app suggestion, then be sure to take a look at the Customer Fields app. The app’s form builder is very powerful, easy to use, and it can tag customers in a variety of different ways without having to edit any theme code. You can learn more about the tagging options here: http://help.heliumdev.com/en/articles/3567319-customer-auto-tagging
Hi @Kyle_W , seeing if you might be able to help with a similar question. I’m trying to add a custom field to my create account page for a code (Academy Code) which will then tag the customer with their specific code.
I tried to use the example above and customize it to my needs, but it doesn’t seem to be working. Any suggestions?
The code I provided included a field label, but it sounds like your theme might be hiding field labels and using placeholders instead. Try swapping the order of the label and input tags, while adding a placeholder attribute on the input, like so: