Tagging customers on successful checkout?

New Member
1 0 0

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