Weight ranges allow you to set a changing shipping cost for a variety of weights. Depending on the select for Base Rate On, the weight value could be for the entire order, a single item, or a group of items specified by shipping class. No matter your selection, the weight will always be read in the same as your shop weights. So if you have selected kilograms as your weight in the WooCommerce settings, all products and shipping weight ranges must also be entered in kilograms.
In this scenario, the seller wants to adjust the shipping cost based on the total weight of all items in the cart. There are a variety of ranges, but also a maximum weight of 80 pounds for this shipping option. Because of this, the ranges will be ordered from highest to lowest. When calculating shipping, the plugin will start at the top and check each row one at a time. The last qualifying row is the one whose Cost values are used as the actual shipping cost.
To better understand the owner’s requirements, let’s view a table of their weight ranges.
|Weight Range (lbs)||Cost|
|0 – 5||$5.99|
|5.01 – 10||$8.99|
|10.01 – 20||$12.99|
|20.01 – 50||$19.49|
|50.01 – 65||$23.95|
|65.01 – 80||$29.95|
The above table would then be setup like so in the Table Rate settings page:
As illustrated above, this option has 6 weight ranges, and thus 6 possible flat rates for orders less than or equal to 80 pounds. When calculating shipping, the total weight of qualifying items is compared to each condition with the last row being of highest priority. To further demonstrate the workflow, a sample order of 42 pounds would go through the list like so:
- Is 42 lbs less than or equal to 80 lbs? YES
- Is 42 lbs less than or equal to 65 lbs? YES
- Is 42 lbs less than or equal to 50 lbs? YES
- Is 42 lbs less than or equal to 20 lbs? NO
- Is 42 lbs less than or equal to 10 lbs? NO
- Is 42 lbs less than or equal to 5 lbs? NO
The last qualify row is “Weight less than or equal to 50 lbs”, so the returned shipping cost would be $19.49.