Liquid, JavaScript, themes, sales channels
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
Did you solve it? im interested on tagging customers on checkout
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024