Skip to content

Latest commit

 

History

History

auto-copy-customer-metafields-to-new-orders

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Auto-copy customer metafields to new orders

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.

Default options

{
  "customer_metafields_and_order_attributes__keyval_required": {}
}

Learn about task options in Mechanic

Subscriptions

shopify/orders/create

Learn about event subscriptions in Mechanic

Documentation

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"

Installing this task

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.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!