Removed fields appear at the end of the form
-
Hello,
I am trying to remove some fields from the checkout page form. I tried the following code, taken from the official documentation:
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); function custom_override_checkout_fields( $fields ) { unset($fields['billing']['billing_company']); // This is the only part I changed return $fields; }
but it gives a blank page.
If I change the function’s name, I don’t get the blank page, but the fields I want to remove are just moved to the bottom of the form.
Am I doing something wrong?
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Removed fields appear at the end of the form’ is closed to new replies.