Auto-tag new orders with Mechanic.

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

Auto-tag new orders

by Isaac Bowen (team@usemechanic.com)

Immediately upon order creation, add one or more tags to the order. Simple as that. :)

Runs when an order is created. Configuration includes comma separated tags to add.

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 created (shopify/orders/create)
Options
comma separated tags to add (required)
Script
{
  "action": {
    "type": "shopify",
    "options": [
      "update",
      [
        "order",
        {{ order.id }}
      ],
      {
        "tags": {{ order.tags | add_tags: options.comma_separated_tags_to_add__required | json }}
      }
    ]
  }
}
Mechanic tasks are written in Liquid, which makes them easy to write and easy to modify. Learn more about our platform.