The OIK Weight / Country Shipping plugin is a free WooCommerce plugin extension. It lets you set shipping charges based on the country of delivery entered on checkout and the total weight of the products in the cart.
If your WooCommerce store sells and ships to multiple countries, and you need weight based, per-country (or country group) shipping cost calculation, this plugin is for you.
Standard WordPress plugin installation applies.
Once active, the Weight/Country shipping method will appear in WooCommerce -> Settings -> Shipping.
Enable/Disable, Method Title, Tax Status and Handling Fee are common Woocommerce shipping options and work like in other shipping methods.
This is where you set your rates. Shipping rates work in tandem with Country Groups. You always assign rates to a country group. This way countries that have same shipping costs (say European Union) can share this setting.
Shipping rates require 3 parameters divided by the pipe “|” sign. They look like
First parameter (50 in our example) is the weight in the unit you choose for the shop (pounds, grams, kg, etc.). This rate applies for carts with a total weight up to 50. If the cart is heavier, the next rate is used. If there is no other rate, the “heaviest” – and usually most expensive – rate is used.
Second parameter (1.10 in our example) is the shipping charge for carts weighing up to 50.
Third parameter (1 in our example) is the number of the country group that this rate applies to.
Optional fourth parameter is the override text for the shipping method.
Example of rates settings
You should have multiple rates for every country group. For example if your package carrier has different rates for parcels weighing 50, 100 and 250 grams for country/countries you defined in country group 1 your rates can look like this:
50|1.10|1 100|1.60|1 250|2.25|1 | up to 250 gms
In this example delivery charges will be as follows:
- carts weighing between 1 and 50 grams – 1.10
- carts weighing between 51 and 100 grams – 1.60
- carts weighing between 101 and 250 grams 2.25
Carts over 250 grams will be charged 2.25 as well, as this is the highest available rate.
Number of country groups – how many country groups to create? You can increase/decrease the number at any stage.
Country groups – they let you select countries that share the same shipping rates. Of course, Country Groups can contain only one country if you want. Important thing about country groups is their number. This number should be used when defining rates.
If country group number is 2 you define rates for this group by using “2” as the third parameter in the rate, e.g.
As you can have unlimited number of Rates and Country Groups you have great flexibility in building your international shipping rates.
Upgrades are supported automatically from WordPress.org.