WooCommerce Show Product SKUs In Emails

WooCommerce email showing product SKUs next to product titles

Pre-Requisites

There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About this Solution

This snippet appends the product SKU adjacent to the product names in all emails.

				
					/**
 * Snippet Name:	WooCommerce Show Product SKUs In Emails
 * Snippet Author:	ecommercehints.com
 */

add_filter( 'woocommerce_email_order_items_args', 'ecommercehints_show_product_skus_in_emails' );
function ecommercehints_show_product_skus_in_emails($args) {
    $args['show_sku'] = true;
    return $args;
}

				
			

Snippet Benefits

  • Distinguish products in the emails by showing the SKU adjacent to the product name
WooCommerce Conversion Rate Optimisation (CRO) eBook
100 WooCommerce Conversion Rate Optimisation Tips

Leave a Reply

If you are going to write code in the comments, please wrap it between code tags.

Your email address will not be published. Required fields are marked *

Other Recent Guides

Subscribe To Emails

Get exclusive WooCommerce tips that I only share with email subscribers

Join hundreds of other subscribers