Skip to content

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.

  1. Choose a Trigger: Postcode, State, Weight, Cost, Quantity or SKU.

  2. 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.

  3. Enter the Value to match.

  4. Enter a Priority. Rules are checked from the lowest number up.

  5. Choose an Action and, where it needs one, an Action value in dollars.

  6. 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.

TriggerMatches
PostcodeThe 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.
StateThe delivery state, entered as its abbreviation, such as NSW or VIC.
WeightThe total weight of the cart in kg.
CostThe cart subtotal.
QuantityThe number of items quoted, after Boxes per unit and order boxing.
SKUAny of the listed SKUs, separated by commas, is in the cart.
ActionEffect on matching quotes
AddAdds the action value in dollars.
SubtractSubtracts the action value in dollars.
Fixed amountSets the quote to the action value.
Free shippingSets the quote to $0.
Disable quoteRemoves the quote.

Action values are dollar amounts. A value such as 10% is read as $10.

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.

Click Template to download the rules CSV template, fill it in, then click Import CSV and choose your file.