How to Remove Country Field From Checkout WooCommerce

WooCommerce Remove Country From CheckoutWooCommerce store owners need to optimize their checkout pages to have a good conversion rate.

Having a long-dreaded checkout process can affect the conversion rate greatly. Potential customers will abandon the cart and purchase the product elsewhere.

I recommend having a simple checkout if you are selling low-cost products.

WooCommerce Remove Country Field From Checkout

It is very easy to remove a checkout field in WooCommerce.

In theory, you can remove checkout fields without issues in WooCommerce Core.

However, you should be aware that some plugins could be counting on certain fields to exist. These plugins may cause an error when those fields are removed.

In this brief tutorial, I will share how you can safely remove the country field on the checkout page using a custom PHP code snippet.

Steps to Remove Country Field From Checkout

Here are the steps that you need to follow:

  1. Log into your WordPress site and access the dashboard as the admin user
  2. From the dashboard menu, click on the Appearance Menu > Theme Editor Menu. When the theme editor page is opened, look for the theme functions file with the extension functions.php.
  3. Open this functions file to add the function to remove the Country field on the WooCommerce checkout page:
/**

 * Remove the country checkout field

 */

function njengah_override_checkout_fields( $fields ) {

unset($fields['billing']['billing_country']);

return $fields;

}

add_filter('woocommerce_checkout_fields','njengah_override_checkout_fields');
  1. This is the outcome:remove country field from checkout

Conclusion

In summary, you have learned how you can remove the country field from the WooCommerce checkout page. If you are not familiar with coding, you can use a checkout customizer plugin or hire a qualified developer to make the required changes.

Similar Articles

  1. How to Set WooCommerce Storefront Theme Product Page Full Width