How to Remove the Enhanced Country and State Dropdowns from WooCommerce

Everyone is familiar with the checkout process of an online store by now. You are asked to provide your billing and shipping information at the time you are submitting your order and typically this involves selecting your country and state/province from a dropdown.

The developers of WooCommerce recognized this is an annoying step in the checkout experience and came up with a solution to make entering your address information quicker. The checkout screen inside of a WooCommerce store comes with enhanced dropdowns for country and state that let you search with text as well as select from a long list of options.

Enhanced Checkout Dropdown for Country Selection in WooCommerce
An example of an Enhanced Checkout Dropdown for Country Selection in WooCommerce

This is great and perfectly suitable for plenty of online stores. Of course, because we’re dealing with the WordPress ecosystem and the volatility of third-party plugins and themes, there can sometimes be conflicts outside of your control that cause issues with your store. And sometimes the solution to those conflicts is disabling parts of WooCommerce that are getting in the way; things like the fancy country and state dropdowns.

So if you want to convert the enhanced dropdowns from your WooCommerce checkout you have two options: get into your theme’s files and modify some code or install our Remove WooCommerce Features plugin and get this taken care of in seconds.

How to Disable the Enhanced Checkout Dropdown with Code

The secret to this, and plenty of other modifications to your WooCommerce store’s theme, lies in the functions.php file. You can find this file by accessing the directory your theme is installed in and opening it up in your favorite text editor.

Add the following lines of code to your functions.php and save the changed.

add_action( 'wp_enqueue_scripts', 'my_remove_checkout_dropdown', 100 );
function my_remove_checkout_dropdown() {
    wp_dequeue_style( 'select2' );
    wp_deregister_style( 'select2' );
    wp_dequeue_script( 'select2');
    wp_deregister_script('select2');
}

You might have to upload the new file back to your site’s server depending on your environment. If all of this reads like a foreign language to you that’s ok. There are plenty of WordPress developers out there that can take care of this issue for you at a relatively low cost.

Of course, you’ll need to keep their contact information on hand for the future because changes to the functions.php file are overwritten after any theme updates or changes you might make on your site. When that happens the lines of code from above will need to be added back in and saved again.

How to Remove the Enhanced Checkout Dropdowns without Learning Programming or Hiring a WordPress Developer

Our Remove WooCommerce Features plugin will let you disable these special country and state dropdowns quick and easy without any kind of programming knowledge, server expertise or outside developer help required.

After purchasing and installing the plugin it’s just three simple moves to get the enhanced select boxes off of your WooCommerce site.

Step #1

Go to the WooCommerce section of your WordPress installation’s admin menu and click the link that says “Remove Features.”

WooCommerce Admin Menu

Step #2

Find the setting for “Enhanced Checkout Dropdown” and click the checkbox so that it’s marked like so:

Remove WooCommerce Features - Enhanced Checkout Dropdowns

Step #3

Press the “Save Settings” button.

Save Settings Button

Any changes you make with our plugin take effect immediately. As soon as you’ve disabled the enhanced dropdowns your checkout page’s country and state fields will look like so:

Checkout Dropdown without WooCommerce Enhancement
An example of a Checkout Dropdown without WooCommerce Enhancement

This change will last as long as you have Remove WooCommerce Features installed and active on your site. The plugin works no matter what theme you have installed and functions no matter how many times you update the theme or swap it out for a different look.

The plugin does a whole lot more than just this though. You can remove and disable 15 WooCommerce features (and counting) from one simple settings screen inside of your WordPress admin. Some of these features include:

We have a comprehensive list of all the features the plugin interacts with and modifies here on the site.