Archive free orders on fulfillment
Does what it says on the tin. :) Any order with a total price of 0.00 will be archived/closed, immediately upon order fulfillment.
Try this taskWhen it runs
Occurs whenever an order is fulfilled
Task code and subscriptions
You can edit the Liquid code after installing this task. View on GitHub or ask a question in the Mechanic Slack community.
Subscriptions
shopify/orders/fulfilled
How task subscriptions work
Task code
{% if event.preview or order.total_price == "0.00" %}
{
"action": {
"type": "shopify",
"options": [
"post",
"/admin/orders/{{ order.id }}/close.json",
{}
]
}
}
{% endif %}
Mechanic Liquid reference