Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm looking for a way to tag a customer automatically based on an answer when they are signing up.
What I'm trying to do is
A customer chooses their body height when they sign up.
I'd like a tag the answer to the customer. For example, when they choose "4'9"" as their height, I'd like to tag "49" to the customer.
This person seemed to make it but I'm not sure how.
I know some apps would make it but would like to learn how to achieve by editing codes.
I'd tip you if I get an answer.
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
Hi @hirot,
You can add the following code:
<select name="customer[tags][height]">
<option value="49">4'9"</option>
<option value="59">5'9"</option>
</select>
Hope it helps!
Hi @hirot
1: you should find your 'customers/register.liquid' at first.
2: name those input as customer[tags][0] 、 customer[tags][1]
3: new form
4: Test result
Thank you for your solution! I just accepted the other one as an solution but your also works!
thank you let me know it works
Hello, I'm having a similar issue, I would like to automatically apply the product tags to the customer tags after checkout. Is there a way to link them after the customer purchased the products?
This is an accepted solution.
Hi @hirot,
You can add the following code:
<select name="customer[tags][height]">
<option value="49">4'9"</option>
<option value="59">5'9"</option>
</select>
Hope it helps!
Hello, I'm having a similar issue, I would like to automatically apply the product tags to the customer tags after checkout. Is there a way to link them after the customer purchased the products?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024