Hi there,
I’m trying to add a tag to customers when they sign up for an account on a landing page.
Below is the form code, and I’ve added in however this is not adding a tag when I sign up. Am I using the wrong code or placing it in the wrong spot?
Thanks in advance!
# {{ 'customer.register.title' | t }}
{% form 'create_customer' %}
{{ form.errors | default_errors }}
{% if section.settings.text %}
{{ section.settings.text }}
{% endif %}
{% if section.settings.cart_opt_in_tag_value %}
{% if section.settings.show_opt_in %}{% endif %}
{% endif %}
{{ 'customer.register.returning_customer_label' | t }} {{ 'customer.register.sign_in_html' | t }}
{% endform %}
{% schema %}
{
"name": "Register",
"class": "register-section",
"settings": [
{
"type": "richtext",
"id": "text",
"label": "Text"
},
{
"type": "header",
"content": "Extra opt-in checkbox."
},
{
"type": "paragraph",
"content": "Use this to include an additional opt-in box, which can be used to identify customers in Shopify."
},
{
"type": "text",
"id": "cart_opt_in_tag_value",
"label": "Value of tag",
"default": "Join the spice club",
"info": "This is the value of that field."
},
{
"type": "text",
"id": "cart_opt_in_box_description",
"label": "Label for checkbox",
"default": "Join the spice club"
},
{
"type": "checkbox",
"id": "show_opt_in",
"label": "Show checkbox to opt-in",
"default": true,
"info": "If this is not checked, all users will be opted-in."
},
{
"type": "text",
"id": "cart_opt_in_tag_name",
"label": "Opt-in tag name",
"default": "Cart opt-In",
"info": "Think of this as the field name. This will be automatically set, if you would like customers to check a box, this is a different feature."
}
]
}
{% endschema %}