php - Update Woocommerce cart shipping methods on country change

one text

Solution:

You can try to use the following:

add_action('wp_footer', 'cart_country_update_shipping_methods', 50);
function cart_country_update_shipping_methods() {
    if ( ! is_cart() ) return; // On cart
    ?>
    <script type='text/javascript'>
        jQuery(function($){
            $(document.body).on('change', 'select[name="calc_shipping_country"]', function(){
                $(this).submit();
            });
        });
    </script>
    <?php
}

Code goes in functions.php file of your active child theme (or active theme). Tested and works.

Related: Shipping calculator state field change trigger update in WooCommerce cart

Source