Change state/county drop down form field as mandatory
-
Hello,
I need your help. I have added below code in code snippets plugin, code was working fine. Current drop down list marked as optional, but I want to make that as mandatory field, Also I want to change the label from “state/county” to “city”
*******
add_filter( ‘woocommerce_states’, ‘custom_woocommerce_states’ );function custom_woocommerce_states( $states ) {
$states[‘LK’]= array(
‘LK1’ => ‘Colombo 01’,
‘LK2’ => ‘Colombo 02’,
‘LK3’ => ‘Colombo 03’,
);
return $states;
}
****
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change state/county drop down form field as mandatory’ is closed to new replies.