Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > Add Order Meta to WooCommerce Invoices & Other Document Types

Add Order Meta to WooCommerce Invoices & Other Document Types

Last updated on October 24, 2024

WebToffee’s PDF Invoice, Packing Slip, and Credit Notes plugin allows adding custom order metadata to WooCommerce documents. Insert additional information about the delivery date, tracking, or payment info into the documents by adding a custom meta key.

Prerequisite

  1. Install the free WooCommerce PDF Invoice, Packing Slips, Delivery Notes, and Shipping labels plugin.
  2. Install the WooCommerce PDF Invoices, Packing slips, and Credit notes pro-add-on to your site.

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

  1. From the WordPress dashboard, click Invoice/ Packing > Document type(eg. Invoice, packing slip).
  2. The Order meta field is either available under the Advanced tab or the Advanced section under the General tab.
  3. In the Order meta fields options, click on the Add/Edit order meta field.
  4. Key in the Field name and the Meta Key.
  5. Click on Save to add the order meta.
Add order meta field - WooCommerce document types.
Add order meta field – WooCommerce document types.
  1. Modify or delete existing order metadata from the Previously added tab.

Here’s how the order meta fields option will appear within the WooCommerce Invoice Settings page.

Use Case

Let’s take an example of adding 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 Order meta pop-up box as shown below:

Adding custom order meta in WooCommerce invoice
Adding custom order meta in WooCommerce invoice

Get the meta key for the VAT Number (_vat_value) 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:

WooCommerce Invoice with order meta-VAT
WooCommerce Invoice with order meta-VAT