Viewing 5 replies - 1 through 5 (of 5 total)
  • Try adding this to your Theme’s function.php file:

    add_filter( 'woocommerce_billing_fields', 'wc_billing_fields_state_filter', 10, 1 );
    
    function wc_billing_fields_state_filter( $address_fields ) {
    	$address_fields['billing_state']['label'] = 'Select a region';
    	return $address_fields;
    }
    Thread Starter Chrisp2408

    (@chrisp2408)

    Hi Yojance, that worked as far as the label changes, but the drop down menu still starts / defaults to “Select a State” – Any ideas how to change the drop down list default from “Select a State” to “Select a Region” too?

    Thanks
    Chris

    I looked at the code and this value seems to be hardcoded inside woocommerce-template.php around line 1384.

    I would never edit any files directly because these might be overriden once you update your plug-in. Sounds like jQuery is the way to go in order to change the value of the first drop down.

    Thread Starter Chrisp2408

    (@chrisp2408)

    Thanks Yojance. Solved.

    Cheers
    Chris

    Chrisp2408, can you share what you did to solve this ?

    Thanks 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change "Select a state" to "Select a region" on Checkout page’ is closed to new replies.