How To Set Woocommerce Shipping Rates By Country

The goal

With the introduction of shipping zones, creating shipping rates by country is super easy. We are going to learn how to create flat rates shipping for two different countries in this post.

The setup

For this example, we are going to create flat shipping rate for Vietnam and Germany. The store is located in Vietnam so the flat rate for this country is $5. Shipping to Germany will be higher, $15 in our case.

The implementation

Let’s go to WooCommerce->Settings->Shipping and click on Add shipping zone.

Add a shipping zone for a country

Let’s go ahead and enter zone name and zone regions. In the image above, we created a shipping zone for Germany. Now, let’s go ahead and click on Add shipping method for this zone. We are going to create one flat rate shipping method for each zone.

How To Set Woocommerce Shipping Rates By Country 1

Click on add shipping method, you will get a shipping method like below. Click on the edit button to enter its details:

How To Set Woocommerce Shipping Rates By Country 2

flat rate shipping for country

Click on Save changes and you are done for Germany. Let’s do the same for Vietnam. You’ll get something like this after creating flat shipping for these two countries.

flat rate shipping for two countries Vietnam and Germany

Now you are done. Let’s place test order and see how the shipping based on country works.

Place a test order

Now we have a test order. Let’s go to the cart page, you will see the appropriate shipping rate applied:

shipping rate by country applied

As you can see, the shipping fee is $5, which is exactly what we set when we created the shipping method for Vietnam.

Wait! It doesn’t work for me

If you find the method above doesn’t work for your store, chances are some other plugins or custom code has modified one of the shipping hooks. (`woocommerce_package_rates` for example). In such case, you may need to find the plugin that does that and deactivate it for this method to work.

Conclusion

As you can see, you can easily set flat shipping for each country. You are not limited to shipping based on countries though. If you want a simpler shipping structure, you can set a flat rate for regions like Asia/Africa… However, doing so reduce the level of control over your shipping rates. The choice is yours.

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

Year-End Super Sales

50% Off all WooCommerce plugins. Limited time offer.


Leave a Reply

Your email address will not be published. Required fields are marked *