WPDebugLog

How to Create WooCommerce PDF Invoices and Packing Slips

How to generate WooCommerce PDF invoices and packing slips?

First, install the WooCommerce PDF Invoices and Packing Slips plugin from WordPress.org, then run the Setup Wizard and fill in the required details.

Now, go to WP Admin > WooCommerce > Orders and click the Invoice icon next to the order.

Invoice: Demo

Packing Slip: Demo

How to Change WooCommerce Invoice Template?

Download the template, then extract the ZIP file into the selected theme’s woocommerce/pdf/ folder. If the folder does not exist, create it.

Example path: wp-content/themes/twentytwentyfive/woocommerce/pdf/easy-template/

Next, go to WP Admin → WooCommerce → PDF Invoices → Display Settings and select Easy Template.

Finally, generate an invoice and check its layout to make sure everything displays correctly.

Finally, check the invoice layout.

Why WooCommerce Invoice or Packing Slip PDFs Don’t Reflect Edited Data?

I noticed that when I edit the shop address or other information, the changes are not reflected in the invoice or packing slip PDFs because the PDFs were already generated. I need to regenerate the PDFs to reflect the updated information.

Go to wp-admin > Woocommerce > Orders > Select order > Regenerate

How to Regenerate Invoices for Multiple WooCommerce Orders?

Add the following code to your selected theme’s functions.php file. Then you can see “Regenerate PDF invoices” in bulk actions.

Go to wp-admin > WooCommerce> Orders > select orders > Regenerate PDF invoices. Add the following code to your selected theme’s functions.php file. Then, navigate to WP Admin > WooCommerce > Orders, select the orders, and choose Regenerate PDF Invoices from the Bulk Actions dropdown.

Go to wp-admin > WooCommerce> Orders > select orders > Regenerate PDF invoices.

How to Add Page Numbers to the Footer of WooCommerce PDF Invoices?

Add a filter hook to wpo_wcpdf_after_dompdf_render, then add the following code to your theme’s functions.php file.