Setting up order routing

Order routing rules determine the locations to use to fulfill each item in a customer order. You can add, edit, remove, and rearrange order routing rules determine how locations are prioritized.

You can also review common order routing configurations, such as always ship from the closest location or prioritize your closest warehouse location.

Add an order routing rule

  1. From your Shopify admin, go to Settings > Shipping and delivery.

  2. In the Order routing section, click the icon.

  3. Click Add rule.

  4. Click a rule that you want to add.

  5. Click Save.

Edit an order routing rule

  1. From your Shopify admin, go to Settings > Shipping and delivery.

  2. In the Order routing section, click the icon.

  3. Click the pencil icon next to the order routing rule that you want to edit.

  4. Make the edits to your order routing rule, and then click Done.

  5. Click Save.

Rearrange the priority of your order routing rules

  1. From your Shopify admin, go to Settings > Shipping and delivery.

  2. In the Order routing section, click the icon.

  3. Click and drag the ⠿ icon next to an order routing rule, and then move the rule to adjust the priority.

  4. Click Save.

Remove an order routing rule

  1. From your Shopify admin, go to Settings > Shipping and delivery.

  2. In the Order routing section, click the icon.

  3. Click the trash can icon next to the order routing rule that you want to remove.

  4. Click Save.

Routing rule extensibility

Including the default rules, order routing rules are implemented as Shopify Functions. Third-party developers can implement and contribute their own custom location rules.

Every rule other than the default rules that are listed in the Routing rules section can be considered a custom rule. Custom rules can be identified in the following ways:

  • In the Shopify admin, with the icon of the app that provides them for rules in a strategy.
  • In the Shopify admin, with the icon and name of the app in the Add Rule modal.
  • In GraphiQL, with the shopifyDeveloped field of the app associated with the rule.

Common order routing configurations

The following are suggested configurations for order routing rules. You can follow them to set up rules that meet your store's needs.

Always ship from the closest location

If you prefer shipments to always ship from the closest location, even if it means splitting up the order into multiple packages, then use the Ship from closest location rule on its own.

Steps:

  1. From your Shopify admin, go to Settings > Shipping and delivery.

  2. In Order routing section, click Manage.

  3. Click Add rule.

  4. Click Ship from closest location. If this rule is greyed out, then it means that it’s already active in your configuration.

  5. Click the x icon on any other rules in the configuration until only the Ship from closest location rule remains.

  6. Click Save.

Prioritize your closest warehouse location

If you have some locations that should ship orders first, such as a third-party logistics service or warehouse, then rank those locations above your non-warehouse locations.

Steps:

  1. From your Shopify admin, go to Settings > Shipping and delivery.

  2. In Order routing section, click Manage.

  3. Click Add rule.

  4. Click Use ranked locations.

  5. Click and drag to move the rule to the top of the list.

  6. On the rule, click the pencil icon to open the configuration modal for the rule.

  7. Drag warehouse locations to the topmost location group. Leave any locations that shouldn't be prioritized in the bottom location group.

  8. Click Done.

  9. If you have multiple warehouse locations, then add the Ship from closest location rule at the end to break any ties.

  10. Click Save.

Can’t find the answers you’re looking for? We’re here to help.