Setting up location metafields for order routing
You can set up your order routing rules using location metafields to prioritize locations based on the values that you configure in your location metafields.
You can use a boolean or single numeric type location metafield. For example, if you define a boolean location metafield named has_capacity
, then you can prioritize locations with capacity to fulfill your orders.
On this page
Before you start
You need to complete the following tasks before you can create an order routing rule with a location metafield:
Supported metafield definition types
You can use the following metafield definition types for location metafields:
- Integer (single numeric)
- Decimal (single numeric)
- True or false
Add a location metafield to your order routing rule
After you create your metafield, you can add an order routing rule using your location metafield.
Steps:
From your Shopify admin, go to Settings > Shipping and delivery.
In the Order routing section, click the › icon.
Click Add rule.
Click Use location metafield.
From the Metafield drop-down menu, select a location metafield that you want to use for your order routing rule.
Select the metafield values.
Click Done
Click Save.