Support » Plugin: WooCommerce » Hide SKU on Customer emails

  • Resolved wpforumuser



    I noticed that the SKU is showing on my NEW CUSTOMER ORDER email I receive.


    I use my suppliers SKU codes so don’t want the customer to see them.

    I presume it is now showing to the customer order email?

    How can I remove it?

    I looked in email-order-items.php
    I see this line

    // SKU.
    if ( $show_sku && $sku ) {
    echo wp_kses_post( ‘ (#’ . $sku . ‘)’ );

    I’m not up to speed on PHP, but how do i set it to false?

    Is this the only place I will need to change it too?

    Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can comment out the echo line with // so:

    // SKU.
    if ( $show_sku && $sku ) {
      // echo wp_kses_post( ' (#' . $sku . ')' );

    This customised version of the file needs to be saved at:
    to avoid being overwritten by updates. In this location, WooCommerce will use this file in preference to the default file.

    If you use plain or multipart emails, you’ll need to do the same for

    I think that’s the only places that need to be altered, but you should have a second email that you control so you can buy things from your shop as a customer to check the emails that are sent. You can set up COD as a payment gateway temporarily for testing so you don’t need real money to buy things from your shop.



    Hi Lorro


    Thanks for the quick response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide SKU on Customer emails’ is closed to new replies.