• Resolved bogdang2288

    (@bogdang2288)


    In the latest Woocommerce version, the billing_state fields is optional when the selected country is Romania and possible other countries. Can anyone tell me why this happens and how to make the field required? Thank you.

Viewing 1 replies (of 1 total)
  • You will need a code snippet:

    add_filter( 'woocommerce_get_country_locale', 'custom_ro_locale' );
    function custom_ro_locale( $locale ){
      $locale['RO']['state']['required'] = true;
      return $locale;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Optional checkout fields in the latest update’ is closed to new replies.