Documentation/Print Invoice, Packing Slip, Delivery Note & Label for WooCommerce/How to add customer’s name in WooCommerce invoices/labels

How to add customer’s name in WooCommerce invoices/labels

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 this hook to add any other order meta to invoices and other labels.

  • Was this article helpful?
  • YesNo