Tags: Auto-Tag, Cart Attributes, Orders
Use this task to automatically categorize orders based on the cart attributes configured before checkout. Useful if you allow customers to supply extra information about their order, or if your cart has some hidden coding that adds cart attributes programatically.
- View in the task library: tasks.mechanic.dev/auto-tag-orders-based-on-cart-attributes
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"cart_attribute_to_monitor__required": null,
"cart_attribute_values_and_order_tags_to_add__keyval_required": null
}
Learn about task options in Mechanic
shopify/orders/create
Learn about event subscriptions in Mechanic
Use this task to automatically categorize orders based on the cart attributes configured before checkout. Useful if you allow customers to supply extra information about their order, or if your cart has some hidden coding that adds cart attributes programatically.
Configure the "Cart attribute to monitor" option with the exact name of the cart attribute in use. This value is case-sensitive, and must include any punctuation used in the actual cart attribute.
Configure the "Cart attribute values and order tags to add" option with an attribute value on the left, and a tag on the right, to be applied when the left-hand value is found on an order. Add as many value/tag pairs as you like. :)
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!