How to add order/product metadata in WooCommerce invoices?

If you are a WooCommerce store owner, you would have noticed that the normal invoice templates don’t include all the necessary information about your products and orders. This is because the product and order-related information can be domain specific. For example, the product data pertaining to a shoe seller might not the same as that of a grocery seller.

Adding order/product metadata to your invoices can help your customers better understand their purchases and enhance your business’s overall professionalism.

Fortunately, adding order/product metadata to your WooCommerce invoice is easy with the help of a WebToffee plugin. In this blog post, we’ll guide you through the steps needed to customize your invoices and add metadata to them.

Let’s walk through the steps required to append order/product metadata in the WooCommerce invoice.

Add order meta in the WooCommerce invoice for free

Metadata regarding your WooCommerce orders can be added to the invoices with the help of the free WooCommerce PDF invoice plugin. You will, however, have to use the premium version of the same WooCommerce PDF invoice plugin to add product metadata.

Let’s first look at adding order meta to invoices,

  1. Install the PDF Invoice/Packing plugin for WooCommerce on your site.
  2. Go to WooCommerce > Invoice/ Packing > Invoice from the WordPress dashboard.
  3. Move on to the Invoice details under the General tab. You can add it under the Order meta fields.
  4. Once the data is added, update the settings.
order meta field configuration in free invoice plugin

Additional order information can be appended to the invoice via the order meta fields.

Order meta fields already available in the plugin: Select a required item from the Order meta field drop-down. The list of default order metadata populated in the drop-down is shown below:

order meta field drop-down

Additional Order Meta Fields: 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/Edit Order Meta Field. Into the popup that appears, key in the custom Field Name and its corresponding Meta Key.

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
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 VAT

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

The invoice with order meta-VAT

Add product meta to WooCommerce invoices

You will need to use the premium version of the WooCommerce PDF invoice plugin to enjoy adding additional data as product meta in WooCommerce.

Note that to install and activate the premium plugin, the free plugin has to be installed and activated on your store.

Once you install and activated the plugin,

  1. Go to Invoice/Packing > Invoice > Advanced.
  2. From the Product meta fields, click the Add/Edit Product Meta button. Into the popup that appears, key in with the field name and the respective meta key.
  3. Click on the Save button.

A sample invoice with a product metadata weight will be as shown below:

Add product attribute

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

save product attributes

Conclusion

With this plugin, you can easily add custom products or order metadata from other third-party plugins into WoCommerce invoices. Hope you have understood how easy the plugin is to handle custom data.

Watch our other tutorials on the plugin to know more.

Article by

Shesna is a technical content writer for WebToffee. She is familiar in working closely with the SMEs to break down complex technical information into a concise, easy to understand manner.

Got any query? Please leave a comment or reach out to our support

Your email address will not be published. Required fields are marked *