Tagging customers on successful checkout?

Will53
Visitor
2 0 1

I need to tag a customer when they complete an order.

My idea is to create a {% form customer %} on the order status page with <input type="hidden" name="contact[tags]" value="test-tag"> and use code to submit the form once the page has loaded.

Ideally this would add the tag to the customer once the order status page has loaded?

Anyhow, I have tried to add a tag to a customer with the form below (currently located on the checkout page for testing, yet to move it to the order status page). After submitting the form and checking the customer the tag is not applied?

 

{% form 'customer' %}
    <input id="contact-tag" name="contact[tags]" value="test-test"/>
    <input type="submit" value="Submit" />
{% endform %}

 

 

Any help is appreciated

Reply 1 (1)

2hotluigi
Shopify Partner
1 0 0

Did you solve it? im interested on tagging customers on checkout