• Resolved naturaldogco

    (@naturaldogco)


    Hello, Can someone help me with how to stop SKU & Weights (Additional info) showing on the customers processing email and packing slips?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @naturaldogco,

    Although we do not add the SKU in the processing email as such, you can hide them in the packing slip with the following code snippet

    /**
    * PDF Invoices & Packing Slip for WooCommerce:
    * Add custom styles to the PDF documents
    */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    ?>
    /* Hide SKU and Weight */
    .item-meta .sku,
    .item-meta .weight {
    display:none;
    }
    <?php
    }, 10, 2 );

    Or if you want to hide all the item meta data:

    /**
    * PDF Invoices & Packing Slip for WooCommerce:
    * Add custom styles to the PDF documents
    */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    ?>
    /* Hide all item meta data */
    .item-meta {
    display:none;
    }
    <?php
    }, 10, 2 );

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use code snippets.

    We also have a blog post here that you may find helpful about adding custom code to your site.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.