Woo Commerce Remove Double Additional Information

Hello how do i remove the additional information in woo commerce checkout?
I somehow ended up having two of these and after adding this to my functions.php:

// removes Order Notes Title - Additional Information
add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’ );

//remove Order Notes Field
add_filter( ‘woocommerce_checkout_fields’ , ‘remove_order_notes’ );
function remove_order_notes( $fields ) {
unset($fields[‘order’][‘order_comments’]);
return $fields;
}

It removed my notes section and only one of the additional information texts went away along with the text box
However i would like to keep the text box and have the second one gone here is a link to my previous post that has the login credentials : Please have a look and advise thank you in advance :slight_smile:

Hi there,

Thanks for writing in.

Unfortunately, we don’t provide full customization of any existing features especially the checkout page where we’re not familiar with. X theme’s integration with Woocommerce is just in templates level.

But about your code, you should replace this line

add_filter( 'woocommerce_enable_order_notes_field', '_returnfalse' );

with this

add_filter( 'woocommerce_enable_order_notes_field', '__return_false' );

And I’m not sure if that line is the actual code the removes the section you wish to remove. But if it’s only removing that text “Additional Information”, then you can simply add this CSS to your global custom CSS.

.woocommerce-additional-fields {
display: none !important;
}

You may contact a Woocommerce developer for further enhancement :slight_smile:

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.