This documentation is for the older version of the WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels plugin. If you are using the new version of the plugin, please note that this documentation no longer applies to you. Find the relevant documentation from here :

WooCommerce PDF Invoices, packing slips and credit notes plugin | WooCommerce Shipping labels, Dispatch labels and Delivery notes plugin | WooCommerce Address labels plugin | WooCommerce Picklists plugin | WooCommerce Proforma invoices plugin | Customizer for WooCommerce PDF Invoices

Home > Docs > WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels > How to Add Customer’s Name in WooCommerce Invoices/Labels

How to Add Customer’s Name in WooCommerce Invoices/Labels

Last updated on November 12, 2024

Print invoice and packing slip for WooCommerce plugin comes with several customisation provisions. You can choose invoice from pre defined templates as well as alter the default appearance.

By default, our plugin handles the entire billing address in single place holder which is [wfte_billing_adddress]. Now if you need to show the customer name only, you can use our custom filter. Insert the below given filter/code snippet into the active theme’s functions.php file.

After adding the code snippet you can use the place holder [wfte_customer_name] anywhere in the template HTML code to include the customer name. To add the place holder go to Invoice > Customize > Code view as shown below.

Invoice-CustomizeCode

You can even use the same hook to add any other order meta to invoices and other labels.