Fatal error with custom_override_checkout_fields
-
Hello there,
I added the following snippet in the plugin “code snippet”:
add_filter( 'woocommerce_default_address_fields' , 'custom_override_default_address_fields' ); function custom_override_checkout_fields( $fields ) { $address_fields['order']['billing_state']['placeholder'] = 'BTW-nummer'; $address_fields['order']['billing_state']['label'] = 'BTW-nummer'; return $address_fields; }It worked for a few months, but now it is causing a fatal error when trying to access the cart page. I now have disabled it but I need this function.
Any idea on what I can try to solve this?
Thanks in advance !
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Fatal error with custom_override_checkout_fields’ is closed to new replies.