Skip to content
Advertisement

Add the product description to WooCommerce email notifications

How to add product description/content of single product page (not the short description) to WooCommerce new order email notification?

I need to know specific written description of my products as most of them are almost same.

Advertisement

Answer

As you are targeting a specific email notification, first we need to get the Email ID to target the “New Order” email notification. The only way is to get it before and to set the value in a global variable.

Then in a custom function hooked in woocommerce_order_item_meta_end action hook, we display the product description exclusively for New Order email notification.

Here is that code:

JavaScript

This code goes in function.php file of your active child theme (or theme) or also in any plugin file.

This code is tested and works.

Code Update and Error explanations in woocommerce_order_item_meta_end action hook:

PHP Warning for woocommerce_order_item_meta_end (Mike Joley)

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement