Rules engine
Shipping rules change quotes when a condition matches: add or subtract an amount, set a fixed price, offer free shipping, or hide a quote.
Rules are in the members area: go to Settings > Integrations, click Settings on your WooCommerce store’s row, open the Shipping rules tab and find Rules.
Create a rule
Section titled “Create a rule”-
Choose a Trigger: Postcode, State, Weight, Cost, Quantity or SKU.
-
For Weight, Cost and Quantity, choose a Comparison: Equals, Less than, Greater than, Less than or equals, or Greater than or equals. For Postcode, choose a Mode: List or Range.
-
Enter the Value to match.
-
Enter a Priority. Rules are checked from the lowest number up.
-
Choose an Action and, where it needs one, an Action value in dollars.
-
Click Add rule.
To limit a rule to certain couriers, find the rule in the rules list after saving, enter courier IDs in its Couriers box separated by commas (for example aramex, couriers_please; the ID is shown under each courier’s name in Courier settings), and click the save button next to it. A rule with no couriers applies to every courier.
Triggers
Section titled “Triggers”| Trigger | Matches |
|---|---|
| Postcode | The delivery postcode. In List mode, enter each postcode with its suburb, separated by commas, such as 2000 SYDNEY, 2010 SURRY HILLS. A list entry matches only when both the postcode and the suburb match, so a postcode on its own never matches. In Range mode, enter the first and last postcode separated by a comma, such as 2000, 2099. |
| State | The delivery state, entered as its abbreviation, such as NSW or VIC. |
| Weight | The total weight of the cart in kg. |
| Cost | The cart subtotal. |
| Quantity | The number of items quoted, after Boxes per unit and order boxing. |
| SKU | Any of the listed SKUs, separated by commas, is in the cart. |
Actions
Section titled “Actions”| Action | Effect on matching quotes |
|---|---|
| Add | Adds the action value in dollars. |
| Subtract | Subtracts the action value in dollars. |
| Fixed amount | Sets the quote to the action value. |
| Free shipping | Sets the quote to $0. |
| Disable quote | Removes the quote. |
Action values are dollar amounts. A value such as 10% is read as $10.
How rules combine
Section titled “How rules combine”By default only the first matching rule, in priority order, is applied. Rules after it are skipped even if they also match.
Tick Accumulate shipping rules (under the rules list) to keep going after a match. With it on, Add and Subtract stack, Fixed amount adds its value instead of replacing the price, and Free shipping and Disable quote have no effect. Accumulation only continues past Postcode and SKU rules: a matching State, Weight, Cost or Quantity rule is still the last one applied.
Do not convert weight into whole number stops Transdirect rounding item weights up to whole kilograms.
Import rules from a file
Section titled “Import rules from a file”Click Template to download the rules CSV template, fill it in, then click Import CSV and choose your file.