Copy metafield values from draft orders to orders
You can activate the option for metafields to carry over from your draft orders to completed orders. When your draft orders are converted to orders and you have activated the option to copy the metafield, your metafield is automatically copied into the order.
In order for the values to copy from draft order to order, the validation details in the draft order and order metafields must match.
Create one-way sync on order definition
You can copy metafields from your draft orders to orders by creating a Matching draft order definition and one-way sync.
Steps:
- In your Shopify Admin, go to Settings > Custom data.
- Click Orders.
- Click a metafield you want to update.
- In the Matching draft order definition section, click Create draft order definition.
- Click Save.
Create one-way sync on draft order definition
You can copy metafields from your draft orders to orders by creating a Matching order definition and one-way sync.
Steps:
- In your Shopify Admin, go to Settings > Custom data.
- Click Draft Orders.
- Click a metafield that you want to update.
- In the Matching order definition section, click Create order definition.
- Click Save.