Reply To: eu vat billing read only

#115458
Omar Dabbas
Moderator
Plugin Support

Hi Fabio,

Can you please try this:

add_filter( 'woocommerce_checkout_fields' , 'make_fields_readonly', 100 );
function make_fields_readonly( $fields ) {
$fields['billing']['billing_company']['custom_attributes'] = array( 'readonly' => 'readonly' );
$fields['billing']['billing_phone']['custom_attributes'] = array( 'readonly' => 'readonly' );
$fields['billing']['billing_eu_vat_number']['custom_attributes'] = array( 'readonly' => 'readonly' );

return $fields;
}

Let me know if you still encounter issues.

Omar