Set up your first rule

Add a rule, run it on one order, then switch on automatic processing.

5 steps · Last updated November 16, 2026

Before you start

  • Two or more active locations in Shopify: warehouses, stores, or a 3PL that is set up as a location.
  • Advanced Fulfillment Rules installed from the Shopify App Store. It works on every Shopify plan.

Step 1

Check your locations in Shopify

In your Shopify admin, go to Settings, then Locations. Make sure every warehouse, store and 3PL you fulfill from is listed and active.

Note

The Nearest location rule measures from each location's address, so every location needs a complete address in Shopify.

Step 2

Add your first rule

Open AFR and go to the Rules tab. Choose Add rule, then pick three things:

  • The rule type, such as Country or Order tag.
  • What it matches: the countries, the tag or the start of the postcode.
  • The fulfillment location that matching orders should move to.
The Rules tab in Advanced Fulfillment Rules with four rules, each showing its type, what it matches and the location it moves orders to
The Rules tab. Each row shows the rule type, what it matches and where matching orders move.

Step 3

Run the rule on one order

Try the rule before you automate anything. Go to the Orders tab, find an order the rule should match and choose Run Rules on its row. The status shows what happened:

  • Order moved: a rule matched and the order went to its location.
  • Order split: part of the order moved and the rest stayed.
  • At correct location: the order was already where the rule sends it.
  • No matching rule: no rule matched and no default location is set, so the order stayed where Shopify put it.
Orders in the Orders tab, each with its shipping address, fulfillment location, a status such as Order moved or Order split, and Run Rules and Move To buttons
The Orders tab. Each row shows where the order is now, its status, and the Run Rules and Move To actions.

To send an order somewhere yourself, choose Move To and pick the location.

Step 4

Switch on automatic processing

Open Settings. Under Order Processing, choose Automatically, then choose when AFR should check an order:

  • When it is created: as soon as the order is placed.
  • When it is paid: once payment is confirmed. Pick this if unpaid orders should stay where they are.

Tick Also re-check it when it is updated, until a rule matches to catch tags that Shopify Flow or another app adds after checkout.

Using Shopify Flow

Choose Through Shopify Flow instead, and add the AFR action, Move/Split Fulfillment Location, to a workflow. The workflow decides which orders are checked, and when.

Step 5

Choose how stock is handled

Two settings decide what happens when the destination is short of stock:

  • Check Stock, on by default: an order moves only if the destination can fill it.
  • Split Order, also on by default: the part the destination can fill moves there and the rest stays where it was. Turning it on also turns on Check Stock.

Then set a Default Location, so an order that matches no rule still has somewhere to go.

What next

Stuck on a step? Ask us.

Email what you're trying to route and we'll help you write the rule.