Since 28th December 2022, this plugin version has been discontinued for purchase. However, support will be continued for existing users. Post the aforementioned date, users who purchase the plugin, which now is made available as multiple add-ons, must refer to their corresponding setup guides. The drag-and-drop customizer feature is now available for purchase as an add-on.

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

Since 28th December 2022, this plugin version has been discontinued for purchase. However, support will be continued for existing users.

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 December 7, 2023

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