Complex shipping Calculation
I have a list of products with weights associated.
I want to add a shipping line on my cart that would be calculated from the total product weight of the cart * specific amount that depends on the weight.
Suppose i have these rules :
If shopping cart total weight is 100g then shipping price is 10 €
If shopping cart total weight is 200g then shipping price is 20 €
If shopping cart total weight is 300g then shipping price is 30 €
In that case the shopping cart will look like this, the total weight is 300g so the shipping price is 30 € :
Product 1 - 100 g - 1 €
Product 2 - 150 g - 2 €
Product 3 - 50 g - 3 €
Shipping 30 €
Can you tell me how to apply this rule and add the shipping line to the cart.
Thanks and sorry for my poor english.