Commerce Shipping - arbitrary calculations I'm using Drupal Commerce to create a simple shop and I wish to add shipping cost calculations based on the weight (in grams) of items in the cart. I have set a weight field on each product so I can work out what the total is, but the client has specified arbitrary prices depending on weight and destination:

UK
weight = 0 price = 0.00
weight &lt; 250 price = 1.00
weight &lt; 500 price = 1.50
weight &lt; 750 price = 2.00
weight &lt; 1000 price = 3.00
weight &lt; 2000 price = 5.00

Europe
weight = 0 price = 0.00
weight &lt; 250 price = 2.50
weight &lt; 500 price = 4.00
weight &lt; 750 price = 5.00
weight &lt; 1000 price = 6.25
weight &lt; 1250 price = 7.50
weight &lt; 1500 price = 8.75
weight &lt; 1750 price = 10.00
weight &lt; 2000 price = 11.25

Other
weight = 0 price = 0.00
weight &lt; 250 price = 4.00
weight &lt; 500 price = 6.50
weight &lt; 750 price = 8.75
weight &lt; 1000 price = 11.25
weight &lt; 1250 price = 13.75
weight &lt; 1500 price = 16.25
weight &lt; 1750 price = 18.75
weight &lt; 2000 price = 21.25


Would I need to add a shipping calculation rule for each possible scenario or is there a way to configure rules to look up a table?
I found a module that does exactly what I want: Commerce Shipping Weight Tariff.
I set up three services, one for each destination, and used rules based on the shipping address to work out which service to use. Then I added the weight tariffs for each service.