This documentation is for the older version of the WooCommerce PDF Invoices, Packing Slips, Delivery Notes, and Shipping Labels plugin. If you are using the new version of the plugin, please note that this documentation no longer applies to you. Find the relevant documentation from here :

WooCommerce PDF Invoices, packing slips and credit notes plugin | WooCommerce Shipping labels, Dispatch labels and Delivery notes plugin | WooCommerce Address labels plugin | WooCommerce Picklists plugin | WooCommerce Proforma invoices plugin | Customizer for WooCommerce PDF Invoices

Home > Docs > WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels > Customizing WooCommerce documents using the code editor

Customizing WooCommerce documents using the code editor

Last updated on November 25, 2024

PDF invoice, Packing Slips, Delivery Notes & Shipping Labels plugin for WooCommerce provides you with predefined templates for Woocommerce documents with additional customization options.

Getting started

  • Navigate to Invoice/Packing Slip from the WordPress dashboard.
  • Choose the document type and go to Customize tab.

Customizing invoices using the code editor

Go to Invoice > Customize tab. There are two ways to customize invoices using code editor:

  • HTML editor – for making changes for individual blocks
  • Document code editor

HTML editor for blocks

To edit the block via code:

  • Select a block and click on the HTML editor(Block) from the Editor pane. The HTML editor for blocks will open up.
  • You can make necessary changes to the editor and click on the Apply changes button.
  • Click on Close or Cancel to exit the editor. 
HTML editor for blocks (click to expand)

Code editor (Document)

To edit the whole document via code:

  • Click on the HTML editor(Document) icon in the header. The HTML editor box will open up. 
  • You can make necessary changes to the editor and click on the Apply changes button.
  • Click on Close or Cancel to exit the editor. 
Document code editor (click to expand)

To read more on dynamic customizer for invoices, refer to this article.

Customising other documents using the code editor

Step 1: Choose the document type and go to Customise tab. In the below example, Packing Slip > Customize tab is opened up.

Step 2: Click on Create new template (Change layout if the template is not active) and select a template you want to customize.

The font size, style, color, and other specific attributes of a document can be changed.

Step 3: Switch to the Code Editor tab. You can edit the template from the code editor, add custom CSS or link to the CSS file. After finishing the customization, you can save and activate the template