• Resolved devaiad2017

    (@devaiad2017)


    I want to remove Additional Notes from WooCommerce emails.

    I have already removed them from the checkout page but they still appear in emails – processing order, new order, invoices, the lot!

    this is my code in functions.php:

    // remove Order Notes from checkout field in Woocommerce
    add_filter( ‘woocommerce_checkout_fields’ , ‘alter_woocommerce_checkout_fields’ );
    function alter_woocommerce_checkout_fields( $fields ) {
    unset($fields[‘order’][‘order_comments’]);
    return $fields;
    }
    function remove_wc_order_notes() {
    return false;
    }
    add_filter( ‘woocommerce_enable_order_notes_field’, ‘remove_wc_order_notes’ );

    Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @devaiad2017,

    You might need to edit the email templates to remove the code that references them the templates. You can do this in your site’s email templates yourself by navigating to WooCommerce → Settings → Emails tab. Click the “Copy file to theme” button and then the “View template” button.

    This opens up a copy of the template that has now been placed in your theme that will override the default version in WooCommerce. You can edit the template as necessary. Please let me know how this works out for you.

    Thanks!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘woocommerce remove order_comments from emails’ is closed to new replies.