Tags: Auto-Tag, Orders, Payment
This task checks the payment gateways for new orders immediately upon order creation, and tags the order accordingly.
- View in the task library: tasks.mechanic.dev/auto-tag-new-orders-based-on-payment-method
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"payment_gateway_names_and_tags__keyval_required": null,
"run_when_orders_are_paid_instead_of_created__boolean": null
}Learn about task options in Mechanic
{% if options.run_when_orders_are_paid_instead_of_created__boolean %}
shopify/orders/paid
{% else %}
shopify/orders/create
{% endif %}Learn about event subscriptions in Mechanic
This task checks the payment gateways for new orders immediately upon order creation, and tags the order accordingly.
Configure the "Payment gateway names and tags" fields with the payment gateway name on the left, and the associated tag on the right.
Tip: to tag orders paid with a gift card, fill in "Payment gateway name" with "gift_card".
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!