Documentation/Print Invoice, Packing Slip, Delivery Note & Label for WooCommerce/How to add custom fields to WooCommerce PDF Invoices

How to add custom fields to WooCommerce PDF Invoices

Adding custom fields to WooCommerce invoices might seem like a lot of customization and editing work. But, WebToffee’s PDF Invoice and Packing Slip plugin for WooCommerce makes the process a whole lot easier.

Let’s take a look at the steps for adding custom fields to WooCommerce invoices.

  • Install PDF Invoice/Packing plugin for WooCommerce on your site.
  • Go to WooCommerce > Invoice/ Packing > Invoice from WordPress dashboard.
  • Move on to the Advanced tab. You can add:
    • Order meta
    • Product meta
    • Product attribute

Add order meta

Additional order information can be appended in the invoice in two ways:

Method 1: Select a required item from the Order meta field drop-down. The list of default order metadata populated in the drop-down are as shown below:

WooCommerce Invoice:Pack Slip-Invoice Advanced-Order meta fields
WooCommerce Invoice/Pack Slip-Invoice Advanced-Order meta fields

Method 2: To add other custom order meta details (probably from another third-party plugin) other than the ones displayed in the drop-down, click on Add Existing Order Meta Field. Into the popup that appears, key in custom Field Name and its corresponding Meta Key.

WooCommerce Invoice:Pack Slip-Invoice Advanced-Add Order meta fields
WooCommerce Invoice/Pack Slip-Invoice Advanced-Add Order meta fields

For example, to add a custom VAT number in the invoice populated from the plugin EU VAT Number for WooCommerce, you will have to key in an appropriate field name and its corresponding meta key in the checkout meta key fetcher pop up as shown below:

Adding custom order meta in WooCommerce invoice

The meta key for the VAT Number (_vat_number) can be obtained from the respective plugin’s documentation.

Sample invoice with the VAT

The invoice with its order meta EU VAT Number will be as shown below:

The invoice with order meta-VAT

Add product meta

From Product meta fields, click the Add Product Meta button . Into the popup that appears, key in with field name and the respective meta key. Then. click on Add button.

WooCommerce Invoice:Pack Slip-Invoice Advanced-Product meta fields
WooCommerce Invoice/Pack Slip-Invoice Advanced-Product meta fields

Add product attribute

From the product attribute, click the Add Product Attribute button. Into the popup that appears, key in with field name and the respective meta key. Then, click on Add button.

Learn more on how to add product attribute to invoice.

  • Was this article helpful?
  • YesNo