Support » Plugin: Product Addons for Woocommerce » Hide fields from order emails

  • Resolved frogbutt

    (@frogbutt)


    I am trying to hide the fields I have added from a customer’s order email. They are hidden field types and are only for our internal use, they also clutter the email are there are several per product.

    I did find the code below on the forum, but it is not working for me.

    add_filter( 'woocommerce_email_styles', 'add_css_to_emails', 9999, 2 );
     
    function add_css_to_emails( $css, $email ) { 
    $css .= '
         .wc-item-meta .wc-item-meta-label{ display:none }
         
    ';
    return $css;
    }

    I placed this code in my functions.php file. Is this the correct area? I tried adding to my themes custom css area, but received several warnings about possible fatal errors.

    Thank you for any help on this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support ashin_acowebs

    (@ashinacowebs)

    Hi,

    It needs to be placed in the functions.php file. It is the correct area.

    Thank you

    Plugin Support ashin_acowebs

    (@ashinacowebs)

    As we haven’t heard back from you further, we assume that this issue has been resolved at your end and considering this ticket as closed. Please don’t hesitate to get back to us if you require any further assistance or clarifications from our end in the future. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide fields from order emails’ is closed to new replies.