Tags: Customers, Metafields, Order Attributes, Orders
When new orders are created, this task will check to see if the customer has any of the configured metafields, and if so it will copy the metafield values to the paired order attributes.
- View in the task library: tasks.mechanic.dev/auto-copy-customer-metafields-to-new-orders
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"customer_metafields_and_order_attributes__keyval_required": {}
}
Learn about task options in Mechanic
shopify/orders/create
Learn about event subscriptions in Mechanic
When new orders are created, this task will check to see if the customer has any of the configured metafields, and if so it will copy the metafield values to the paired order attributes.
Configure this task by adding customer metafields on the left, in the form of namespace.key, and the order attribute names on the right.
Example configuration: "custom.group": "Group"
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!