By default, WooCommerce allows shoppers from all over the world to checkout at your store. If your online store only serves customers in Indonesia, this can make the checkout process less efficient because the system continues to display irrelevant country options.
WooCommerce provides built-in options to restrict sales and shipping to specific countries without needing extra plugins. In this tutorial, we will discuss how to configure your WooCommerce store so that it can only be accessed and checked out from Indonesia.
Quick summary: To restrict WooCommerce shipping to Indonesia only, change three options in WooCommerce > Settings > General, which are Selling location(s) to “Sell to specific countries” (select Indonesia), Shipping location(s) to “Ship to all countries you sell to”, and Default customer location to “Shop country/region”. Save, then test the checkout.
How to Configure WooCommerce Shipping for Specific Countries
Make sure WooCommerce is installed and active on your WordPress site, then follow these steps.
1. Log in to WP Admin
Access your WordPress dashboard via namadomain.com/wp-admin.
Replace yourdomain.com with your website domain name, for example wpgan.com.
2. Go to WooCommerce > Settings
From the sidebar menu, click WooCommerce, then select Settings. By default, you will be directed to the Generaltab, where all the options for this tutorial are located.
3. Change Selling Location(s)
In the General optionssection, look for the Selling location(s)option. Change its value to Sell to specific countries.
Once this option is selected, a new field named Sell to specific countries will appear below it.
4. Select Countries in Sell to Specific Countries
In the newly appeared field, search for and select Indonesia, or any other country you choose. This option determines which countries can make purchases at your store.
5. Change Shipping Location(s)
In the Shipping location(s)option, select Ship to all countries you sell to. This option makes the shipping country list automatically follow the sales country list selected in the previous step.
6. Change Default Customer Location
In the Default customer location option, select Shop country/region.
With this option, WooCommerce will assume the customer's default location is the same as the store's location (Indonesia) before the customer enters a shipping address. This makes the initial calculation of shipping costs and taxes use the Indonesia assumption immediately.
7. Save and Test Checkout
Click Save changes at the bottom of the page. Once saved, test the checkout by following these steps:
- Add one of the products to your cart.
- Go to the checkout page and check if the Country field only displays Indonesia or is automatically filled with Indonesia.
- If necessary, also test using incognito mode or a VPN from outside Indonesia to ensure that checkout cannot be completed from other countries.
Additional Notes
- Restrictions apply per store, not per product
If some products can still be sold abroad, you will need an additional plugin such as Country Based Restrictions for WooCommerce. - Products remain visible to overseas visitors
This setting only prevents the checkout process, not hiding products from the catalog. To hide products completely, a separate visibility plugin is required. - Payment gateways have their own country settings
Some payment gateways (for example, PayPal) have supported country settings separate from these WooCommerce settings, so they still need to be checked manually.
FAQ
Can visitors from outside Indonesia still see products?
Yes. This setting does not hide products from the catalog, it only prevents the checkout process from countries that are not selected.
Does this setting automatically change the currency to Rupiah?
Not automatically. The currency is set separately in the Currency option on the same General tab. Make sure this option is also set to Indonesian Rupiah (IDR).
Can I restrict sales to the province or city level?
Not through the built-in settings. By default, WooCommerce only supports restrictions up to the country level. For more specific restrictions, such as serving only certain regions, additional plugins or custom development are required.
COMMENTS
Loading...