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. Package-type rules choose the package type for items by weight range. Both are edited in the Transdirect members area, on your Shopify store’s module page.
Where to edit rules
Section titled “Where to edit rules”- In Shopify admin, open Apps > Transdirect Shipping.
- On the Dashboard, click the Postcode rules engine card (shipping rules) or the Package-type rules card. Your module page opens in the members area in a new tab. Sign in if prompted.
- Shipping rules are on the Shipping rules tab, in the Rules panel. Package-type rules are on the Packaging tab, in the Package Type Rule panel.
You can also go to Settings > Integrations in the members area and click Settings on your Shopify store’s row.
Shipping rules
Section titled “Shipping rules”Each rule has a Trigger, a Value to match, a Priority, an Action and an Action value. Click Add rule to save it.
| Trigger | Matches |
|---|---|
| Postcode | The delivery address. In List mode, enter postcode and suburb pairs separated by commas, such as 2000 SYDNEY, 2010 SURRY HILLS; a postcode on its own does not match. In Range mode, enter the first and last postcode separated by a comma, such as 0800, 0899. |
| State | The delivery state as a capitalised abbreviation, such as VIC. |
| Weight | The total weight in kg of what is quoted, compared with Equals, Less than, Greater than, Less than or equals, or Greater than or equals. |
| Cost | The value of the cart’s shippable items, with the same comparisons. |
| Quantity | The number of items quoted, with the same comparisons. With order boxing on, each packed box counts as one. |
| SKU | Any of the listed product SKUs (separated by commas) in the cart. |
| Action | Effect on matching quotes |
|---|---|
| Add / Subtract | Adds or 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.
By default a rule applies to every courier. To limit it, enter courier IDs separated by commas (for example couriers_please, allied) in the rule’s Couriers column and click the save button next to it.
How rules combine
Section titled “How rules combine”Rules are checked from the lowest Priority number up. By default only the first matching rule is applied.
Tick Accumulate shipping rules (in the same Rules panel) to keep applying matching Postcode and SKU rules in turn. 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. A matching State, Weight, Cost or Quantity rule is still applied last: no rules after it run.
Transdirect applies courier settings first, then the quote display filter, then rules.
Examples
Section titled “Examples”Free shipping over $150
- Trigger: Cost, Greater than,
150 - Action: Free shipping
- Priority: 1
Flat rate to NT postcodes
- Trigger: Postcode, Range,
0800, 0899 - Action: Fixed amount,
25 - Priority: 2
Hide one courier for light carts
- Trigger: Weight, Less than,
5 - Action: Disable quote, with only that courier’s ID in the rule’s Couriers column
- Priority: 3
Package-type rules
Section titled “Package-type rules”A package-type rule sets the Package type (for example Carton or Pallet) for items whose weight falls between Range from (kg) and Range to (kg), so quotes are priced with the right packaging. The weight used is the greater of the item’s actual weight and its volumetric weight. Items that match no rule keep their own package type, which is Carton unless a multi-box product sets another.
Shopify app compared with the members area
Section titled “Shopify app compared with the members area”| Task | Where |
|---|---|
| Quote options, couriers, boxing and order sync | Shopify app Dashboard cards |
| Shipping rules and package-type rules | Members area (linked from the Dashboard) |
| Booking a synced order | Members area |