Why use ranked location groups
When you have multiple fulfillment locations, you need control over which locations should be tried first. Maybe you want warehouses to ship orders whenever possible, saving your retail stores for walk-in customers. Or perhaps you want to preserve specialty locations for orders that actually need their unique capabilities.Shopify’s native ranked locations rule requires you to manually drag and drop each location into order. If you have 50 warehouses, you need to arrange all 50 manually. With ranked location groups, all warehouses automatically get the same priority.
- Prioritize warehouses over retail stores for online orders
- Use third-party logistics providers only when your own locations can’t fulfill
- Keep specialty locations (like those with engraving equipment) available for orders that need them
- Route orders to specific regions first
How location ranking works
The rule assigns priority levels to your locations. Shopify tries to fulfill orders starting with the highest priority locations, then moves to lower priorities if needed. Think of it like a preference list:- First choice: Try these locations first
- Second choice: If first choice can’t fulfill, try these
- Third choice: If neither can fulfill, try these
- And so on…
Understanding fulfillment groups
Each different product in a customer’s cart is handled separately. If a customer orders 5 different products, each product gets its own fulfillment decision. This means:- A t-shirt might ship from your warehouse
- A mug might ship from your store (if the warehouse is out of stock)
- A custom item might ship from a specialty location
Types of selection
You can group locations in three ways:- Manual selection
- Type-based grouping
- Tag-based grouping
Choose specific locations individually, similar to Shopify’s native rule but grouped together.Best for: Small groups of specific locations that don’t share common characteristics
How groups work together
Combining multiple criteria
When you need locations to meet multiple requirements, list all requirements in one selector:Alternative options
When you want to match locations that meet any of several criteria, use multiple selectors in the same group:Priority order
Locations are checked against each group in order. Once a location matches a group, it gets that group’s ranking and isn’t checked against later groups. For example, if you have:- First group: Locations tagged “vip”
- Second group: All warehouses
- Third group: All stores
Common configurations
Warehouse and store separation
The most common setup: prioritize warehouses for online orders while keeping stores for walk-in customers.Using third-party logistics
When you work with external fulfillment partners but want to prioritize your own locations first.Premium service locations
Route VIP or expedited orders to locations equipped for fast fulfillment.Preserving specialty equipment
Keep locations with special capabilities available for orders that need them.Business customer prioritization
Separate B2B fulfillment from regular consumer orders.What happens when
When no locations match
If a location doesn’t match any of your groups, it still remains available for fulfillment but will be tried last, after all grouped locations.When a group matches nothing
If you create a group that doesn’t match any locations (like searching for a tag you haven’t used yet), the system simply skips to the next group. No errors occur.With multiple products
Each product in an order is evaluated separately. A customer ordering three items might have:- Item 1 fulfilled from a warehouse
- Item 2 fulfilled from a store (if the warehouse doesn’t stock it)
- Item 3 fulfilled from a different store
Working with other rules
Ranked location groups is one rule type in Shopify’s order routing system. You can use multiple instances of this rule and combine it with other rule types.Rule evaluation order
Rules are evaluated in the priority order you set in the order routing configuration. Each rule can modify or override previous rules’ decisions.Interaction with constraints
Fulfillment constraint rules can completely exclude locations from consideration. Rankings only apply to locations that remain eligible after constraints are applied. For example, if a constraint rule excludes all stores for orders over $500, your ranking rule won’t override that exclusion.Multiple ranking rules
You can add multiple instances of the ranked location groups rule. Each instance can have different configurations and conditions. Later rules can override rankings from earlier rules.When multiple ranking rules apply to the same fulfillment group, the last rule’s rankings take precedence.
Best practices
Start simple
Begin with basic type-based ranking (warehouses vs stores) and add complexity only when needed. Simple configurations are easier to understand and maintain.Use meaningful tags
Create tags that clearly describe location capabilities or characteristics:- Good:
next-day-capable,heavy-items,fragile-handling - Avoid:
loc1,groupA,temp
Plan for growth
Design your tag structure to accommodate future locations. If you’re opening new warehouses, ensure your tag system can handle them without major reconfiguration.Test thoroughly
After configuring, place test orders to verify behavior:- Create orders with single items
- Create orders with multiple items
- Check which locations are selected
- Verify the ranking logic matches your expectations
Document your strategy
Maintain notes about why certain rankings exist. This helps when reviewing or updating configurations later, especially if multiple team members manage order routing.Limitations
Technical limitations
Technical limitations
- Maximum 10 ranking groups per configuration
- Maximum 100 manual location IDs total across all groups
- Maximum 10 tags per selector
- Maximum 5 selectors per group
- Configuration must process within 256KB memory limit
Logical limitations
Logical limitations
- Cannot combine type and tag requirements in a single selector (can’t express “warehouses with express tag”)
- Cannot use negative conditions (can’t express “locations without a specific tag”)
- Cannot create conditional rules based on order attributes (can’t have different rankings for VIP customers)
- Rankings apply to all fulfillment groups equally (can’t rank differently for different products)
Operational limitations
Operational limitations
- Rankings don’t guarantee fulfillment from specific locations, only influence selection order
- Actual fulfillment still depends on inventory availability
- Cannot override hard constraints from other rules
- Changes to configuration don’t affect orders already in fulfillment
Frequently asked questions
How does this differ from Shopify's native ranked locations?
How does this differ from Shopify's native ranked locations?
Shopify’s native rule requires you to manually list individual location IDs and arrange them in order. If you have 50 warehouses, you need to add all 50 IDs manually. Our rule uses dynamic grouping based on types and tags, so all warehouses automatically get the same priority without manual updates.
What happens if no locations match my configuration?
What happens if no locations match my configuration?
Locations that don’t match any group receive the lowest rank and are considered last. They remain available for fulfillment but only after all ranked locations are tried.
Can I use this with other order routing rules?
Can I use this with other order routing rules?
Yes. This rule works alongside fulfillment constraints, inventory rules, and other location rules. Rules are evaluated in the order you configure them in Shopify’s order routing settings.
How many locations can this handle?
How many locations can this handle?
The rule can theoretically handle unlimited locations since it uses grouping logic rather than listing individual locations. The practical limit depends on the complexity of your configuration and the number of unique combinations.
Do rankings guarantee fulfillment from specific locations?
Do rankings guarantee fulfillment from specific locations?
No. Rankings only influence the order in which locations are considered. Actual fulfillment depends on inventory availability, shipping capabilities, and other business rules.
What happens with items that have different availability?
What happens with items that have different availability?
Each item in an order is ranked independently as its own fulfillment group. This means different items might fulfill from different locations based on where they’re available, even with the same ranking preferences.