How to remove double select on the Checkout Page in WooCommerce

Double country dropdown on WooCommerce checkout

SelectWoo is WooCommerce’s bundled Select2 wrapper that turns <select> fields into searchable dropdowns. When a theme or plugin initialises Select2 a second time on the same element, the Country field on the Checkout page renders as two overlapping dropdowns.

Problem: On the WooCommerce Checkout page, the Country field appears twice as a dropdown.

Quick fix: dequeue SelectWoo

If you don’t need the searchable dropdowns, remove WooCommerce’s copy of the library:

add_action( 'wp_enqueue_scripts', 'helloadmin_dequeue_selectwoo', 100 );
function helloadmin_dequeue_selectwoo() {
    if ( class_exists( 'WooCommerce' ) && is_checkout() ) {
        wp_dequeue_style( 'select2' );
        wp_dequeue_script( 'selectWoo' );
    }
}

The Country and State fields fall back to plain <select> elements and render once. The is_checkout() check keeps SelectWoo on other pages, for example in the account address forms.

Better fix: find the second initialisation

Dequeuing SelectWoo also removes the searchable dropdown UI from all checkout fields. If you want to keep it, find what initialises Select2 a second time. Usually it is the theme or a plugin that loads its own copy of Select2 and calls $( 'select' ).select2() on every select on the page. Limit that code so it skips elements WooCommerce has already enhanced:

jQuery( 'select' ).not( '.select2-hidden-accessible' ).select2();

Select2 adds the select2-hidden-accessible class to every select it has already processed, so this selector never touches the same element twice.

Do not dequeue wc-checkout

An older version of this post suggested also removing the wc-checkout script when an optional field behaved as required. Don’t do that: wc-checkout updates the order totals and shipping, switches payment methods and submits the order via AJAX, so without it the checkout breaks. If an optional field is validated as required, check the field’s required setting in your woocommerce_checkout_fields filter or in the plugin that adds the field.