PDF invoice, packing slip, delivery notes and shipping label for WooCommerce plugin provides pre-defined templates for invoices and other labels. However, you may want to alter the appearance of the default template to suit your varied needs.
For instance, you may want to have an empty column to the product table in invoices or other labels. You can simply insert the below-given code snippet into the active theme’s functions.php file.
Avinash Gupta
May 10, 2022
Hi Shesna,
Is there a way to add a custom product attribute in a new column in the Invoice?
We need to add a column between the IMAGE and the PRODUCT columns of the product table in the invoice and display a custom product attribute in that column.
Thanks,
Avinash
Shesna
May 11, 2022
Hi Avinash,
Yes, you can add custom product attributes as a new column in the invoice. Go to Invoice > Customize tab. Select the active template and click on the product table. Then, add a new column to the product table by clicking on the Add button. Once done, drag the column to the required position. You may please refer to this article to learn the steps in detail.
Gordon
December 21, 2021
Hi Shesna,
I wanted to add a column where we could write in the total number of packages, manually, as I can’t figure out how to automate this.
I tried the above code but I’m not seeing the additional column in the Product Table, any ideas ?
Mike
January 2, 2022
Hi Gordon,
Thanks for reaching out to us. You can create an additional column on the product table either by modifying the template HTML code or using the code snippet mentioned in this article. After adding the code snippet, we suggest you print an invoice from the WooCommerce order edit page to check. Thanks for understanding.