Problem Required Field, Optional Label
-
Hello. I try to make the State field required. When i do this at the checkout the label name is still State (optional)
But if i disable your plugin add this snippet
add_filter('woocommerce_get_country_locale', 'custom_nz_locale'); function custom_nz_locale($locale){ $locale['GR']['state']['required'] = true; return $locale; }The state field label optional is removed and it says State * with an asterisk just like it should work.
So the problem is with your plugin. Although you set the field required and functionally is required the label doesn’t change and the customers confused.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Problem Required Field, Optional Label’ is closed to new replies.