Archive free orders on fulfillment with Mechanic.

Mechanic is the one-tool-does-it-all automation app for Shopify. :)

Archive free orders on fulfillment

by Isaac Bowen (team@usemechanic.com)

Does what it says on the tin. :) Any order with a total price of 0.00 will be archived/closed, immediately upon order fulfillment.

Runs when an order is fulfilled.

15-day free trial – unlimited tasks

Developer details

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Gurus, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

Events
when an order is fulfilled (shopify/orders/fulfilled)
Script
{% if event.preview or order.total_price == "0.00" %}
  {
    "action": {
      "type": "shopify",
      "options": [
        "post",
        "/admin/orders/{{ order.id }}/close.json",
        {}
      ]
    }
  }
{% endif %}
Mechanic tasks are written in Liquid, which makes them easy to write and easy to modify. Learn more about our platform.