add_filter(‘woocommerce_billing_fields’, ‘custom_woocommerce_billing_fields’);
function custom_woocommerce_billing_fields( $fields )
{
$fields[‘billing_first_name’][‘required’] = false;
return $fields;
}
I want to make First and Last name should be alphabetic only. Right now it’s accepting numbers also.
Help will be much appreciated. I also want to limit text of review in cart.
Regards
Adding this jQuery will work.! You can add for others fields too.
You have to add fields by custom method then use follow script for alphabetic textbox:
and same for billing_last_name,
Actually woo-commerce does not give us this functionality. You have to use your custom jquery or javascript. This might help you
You should call this script under wp_head hook
That’s it.