Skip to main content

Shipping

Every shipment needs a carrier. Rules pick it by city, weight, service and payment method. Each store has its own rules for its own contracts, and the platform has global rules for every store.

Routing rules

Store rules are always checked before global rules, whatever their priority. So I split the table into two groups, in the order they run. Three steps above the table explain the logic before anyone reads a row. Conditions are short chips, and the catch-all rule stays last and can't be deleted.

Store rules first, then global rules, then the catch-all. Each condition in its own chip.

Store rules first, then global rules, then the catch-all. Each condition in its own chip.

Test a shipment

The hardest question on this screen: why did this shipment go to this carrier? The admin enters a shipment and sees the carrier picked, every rule checked, and why each one was skipped. In the example, a store rule with priority 10 wins over a global rule with priority 40, because store rules are checked first.

A 34 kg shipment from Riyadh to Jeddah: the result, the rule that matched, and what was never checked.

A 34 kg shipment from Riyadh to Jeddah: the result, the rule that matched, and what was never checked.