Billing address field read only
-
Greetings!
I need your help!
I’m using this snippet which allows me to make the billing address field read-only (I don’t want them to write anything there):function sl_cc_make_billing_fields_readonly($fields){
$fields[‘billing_address_1’][‘custom_attributes’] = array(‘readonly’=>’readonly’);
return $fields;
}
add_filter(‘woocommerce_billing_fields’, ‘sl_cc_make_billing_fields_readonly’);When I activate the Checkout Field Manager (Checkout Manager) for WooCommerce plugin to hide other fields and create some conditionals that I need, the script no longer works for me and the address field remains editable.
That could be happening?.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Billing address field read only’ is closed to new replies.