Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Display Product Meta in a New Column in WooCommerce Invoices

Display Product Meta in a New Column in WooCommerce Invoices

Last updated on September 23, 2024

Displaying product meta, such as categories and weights, in a new column can give customers more detailed information about the product, helping them make informed purchasing decisions. WebToffee’s WooCommerce PDF Invoices, Packing Slips, and Credit Notes plugin helps to display product metadata in a new column inside WooCommerce invoices and packing slips. By adding the custom code snippet provided, the plugin can display product meta in a new column.

Adding the custom code snippet

Add the custom code snippet below to the WordPress site. Add it to the active child theme’s functions.php file or use a third-party code snippet plugin. For more details on adding custom code snippets using a third-party plugin, check out the following article: Adding Custom Codes with a Third-Party Plugin.

In the custom code snippet, replace the column name and product meta key with the desired column name and meta key.

The WooCommerce invoice and packing slip with a new column ‘WEIGHT‘ in it will look like this:

WooCommerce Invoice with a new column
WooCommerce Invoice
WooCommerce Packing slip with a new column
WooCommerce Packing slip