• Resolved wiltscomputers

    (@wiltscomputers)


    I have tried to remove the ‘extras’ from the product names displayed in the invoice and receipt via my functions.php file but not suceeded. Could you possibly give me the code to do this please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would also like to know how to do this. I find the SKU distracting.

    Plugin Support Upendra Kapse

    (@wpupen)

    Hello,

    Apologies for the delay in getting back on this.

    To hide the SKU from the Invoice, please add the following code snippet in either the functions.php file of your active theme or as a snippet using the Code Snippets plugin:
    ?

    add_filter( 'wcdn_order_item_fields', 'wcdn_remove_sku', PHP_INT_MAX, 3 );
    function wcdn_remove_sku( $fields, $product, $order ) {
        unset( $fields['sku'] );
        return $fields;
    }

    Kind Regards,
    Upendra

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove SKU from invoice’ is closed to new replies.