Visser Labs – WooCommerce Plugins
  1. Home
  2. Knowledge Base
  3. WooCommerce Store Exporter Deluxe
  4. How to export PDF invoice data with Store Exporter Deluxe
  1. Home
  2. Knowledge Base
  3. Integrations
  4. How to export PDF invoice data with Store Exporter Deluxe

How to export PDF invoice data with Store Exporter Deluxe

If your store uses PDF Invoices & Packing Slips for WooCommerce to generate invoices, you can pull the invoice number and invoice date straight into your order exports with Store Exporter Deluxe. Exports from the WooCommerce → Orders screen and scheduled exports set to All Fields pick these up automatically. Getting them into Quick Export or an export template takes one extra setup step.

Prerequisites

RequirementDetails
PluginStore Exporter Deluxe 5.4.5 or later is installed and active
PluginPDF Invoices & Packing Slips for WooCommerce is installed and active
Invoice dataAt least one order needs an invoice already generated. The field stays empty for any order where an invoice hasn’t been created yet

Export invoice data with no setup

  1. Go to WooCommerce → Orders.
  2. If you don’t see the Actions column, open Screen Options at the top of the Orders screen and tick Actions.
  3. In the Actions column, click a download icon for the order (for example Download as CSV).

Hover an icon to see its label: Download as CSV, Download as TSV, Download as XLS, Download as XLSX, and Download as XML are all available.

To export several orders at once, select them and choose Download as CSV from the Bulk actions dropdown instead.

The file includes a PDF Invoice Number and a PDF Invoice Date column automatically, no configuration needed.

If you also register these same two meta keys under Custom Meta Fields (see Register the invoice keys in Custom Meta Fields below), this screen’s columns switch to the generated labels Wcpdf invoice number and Wcpdf invoice date formatted instead of the names above. The data is the same either way. The same applies to a scheduled export set to All Fields.

The Actions column on the WooCommerce Orders screen showing the per-order Download as CSV, TSV, XLS, XLSX and XML links

This depends on the Export Fields option under Store Export → Settings → Orders, which is set to All fields by default. If someone has changed it to Use Export Template or Saved field preferences, these actions export whatever that template or saved selection includes instead, and the invoice fields may not be among them. Each of these Orders screen actions (CSV, TSV, XLS, XLSX, XML) can also be turned off individually under Store Export → Settings → Orders → Actions Display. Check there if an icon you expect isn’t showing.

Include the invoice fields in a scheduled export

A scheduled export has no field picker of its own. In the schedule’s Export Fields section, choose All Fields. The file then includes PDF Invoice Number and PDF Invoice Date, with no extra setup. To export only some fields, choose Use Template and pick an export template that has the invoice fields (see the next section). Saved Selection also works, once you’ve run a Quick Export that includes the invoice fields.

Scheduled export General step for an Orders schedule, with All Fields selected in the Export Fields section

Add the invoice fields to Quick Export or an export template

By default, the Orders screen actions above don’t share their field list with Quick Export or export templates. Those need the invoice fields added through the Custom Meta Fields tool. For the full walkthrough, see How to export custom product, order, and order item meta. Here’s the specific setup for invoice data:

Register the invoice keys in Custom Meta Fields

  1. Open WooCommerce → Store Export.
  2. Click Custom Meta Fields under TOOLS.
  3. Click Add Custom Field (or click the existing Orders row if you’ve already configured one).
  4. If you’re adding a new one, choose Orders from the Export Type dropdown.
  5. In the Order Meta box, type these two meta keys, one per line: _wcpdf_invoice_number and _wcpdf_invoice_date_formatted.
  6. Under Available In in the Order Meta box, tick each place you want the fields: Quick Export, Scheduled Export, or Export Templates.
  7. Click Save Fields.
The Edit Orders Meta Fields screen with the two WPO_WCPDF invoice keys entered in the Order Meta box, and the Available In checkboxes for Quick Export, Scheduled Export, and Export Templates

Add the invoice fields to a Quick Export

  1. Open Quick Export and choose Orders as your export type.
  2. On the Export Fields step, click Add more fields.
  3. In the Select Export Fields dialog, tick Wcpdf invoice number and Wcpdf invoice date formatted under Order Meta.
  4. Click Save Fields, then continue through the wizard to run your export.
The Select Export Fields dialog filtered to "wcpdf", showing the Order Meta group with the Wcpdf invoice number and Wcpdf invoice date formatted fields ready to add

Custom Meta Fields only capitalizes the first letter of a generated label, so the two fields are listed as Wcpdf invoice number and Wcpdf invoice date formatted here, not neatly formatted titles. That’s expected. The underlying data still exports correctly under those column headings.

Add the invoice fields to an export template

  1. Open the export template and go to its Export Fields step.
  2. Click Add More Fields.
  3. In the Add Export Fields dialog, choose Custom Meta Fields from the group dropdown. Then tick Wcpdf invoice number and Wcpdf invoice date formatted under Order Meta.
  4. Click Apply Fields, then save the template.
Add Export Fields dialog for an Orders export template, with Custom Meta Fields chosen in the group dropdown and Wcpdf invoice number and Wcpdf invoice date formatted ticked under Order Meta

Troubleshooting

The invoice number or date column is empty for some orders
Generate the invoice for that order in PDF Invoices & Packing Slips for WooCommerce (or wait for an automatic trigger you’ve set up in that plugin’s own settings), then run the export again. The plugin only saves the invoice number and date once the invoice exists, so orders without one leave both columns blank.

Frequently asked questions

Is this available on every Store Exporter Deluxe plan?
Yes. There’s no license tier restriction on exporting these fields, as long as PDF Invoices & Packing Slips for WooCommerce is active.
Can I export packing slip numbers the same way?
Not with the free version. PDF Invoices & Packing Slips for WooCommerce only generates a number for invoices on the free plugin, so there’s no packing slip number to add. If you use an extension that adds one, check its documentation or contact our support team.

Need help?

If you’re using Store Exporter Deluxe and these fields still aren’t exporting correctly, open a support ticket, and our team will help you get it sorted.

If you’re using the free Store Exporter plugin, ask on the WordPress.org support forum, and our team will get back to you there.

Was this article helpful?

Related Articles

Resources & Help