Can anyone please help me setup an additional drop down field on my customer account registration form. I have looked for help on the ShopifyDev site and found HTML code to paste in but a it looks nothing like the theme’s html code on the customer-registration.liquid page so
a) don’t’ know where it is supposed to go and,
b) when I have pasted it between 2 of the existing fields it does not show on the front end.
Can anyone guide me as my html knowledge is limited and very much a learner or rather trial by error kind of learner. There are good apps like ‘Customer Fields’ but cannot justify the cost right now so any help to get the above field working would be most appreciated!
I’m glad to hear that you’ve already come across our Customer Fields app. I’m sure you’ll be able to take advantage of our app’s robust feature-set at some point down the road, but for now you can certainly accomplish your goal with some custom code in your store’s theme.
If you want the custom dropdown field to add a tag to the customer record in Shopify, then you will want to use customer[tags] for the name attribute. Exactly where you add the custom code depends on where you want the field to be displayed on the registration form, but in your case I would suggest adding the custom code before the first name field. There’s a variety of reasons why you were not able to see the new field when viewing the form on your storefront, but it could be something as simple as a missing class/wrapper for the new select field.
You can try adding something like the following to your form code:
You can paste this code on a new line directly underneath {{ form.errors | default_errors }} to make the dropdown field show above the first name field.
I gave the same question now for my store. Did the answer you got above actually help? Or did you find an alternative solution or go with a third party app in the end?