How to create custom templates of invoices?

This is a guide for advanced users.

Custom invoice template in the theme's folder (PRO)

If you want to edit the invoice template generated to a PDF file, follow these steps:

  1. Copy the file from the plugin directory:
    • for invoice copy the file from the plugin folder: /wp-content/plugins/flexible-invoices-woocommerce/templates/documents/invoice.php to your theme folder /wp-content/themes/[your-theme]/flexible-invoices/documents/invoice.php.
    • for correction copy the file from the plugin folder: /wp-content/plugins/flexible-invoices-woocommerce/templates/documents/correction.php to your theme folder /wp-content/themes/[your-theme]/flexible-invoices/documents/correction.php.
    • for proforma copy the file from the plugin folder: /wp-content/plugins/flexible-invoices-woocommerce/templates/documents/proforma.php to your theme folder /wp-content/themes/[your-theme]/flexible-invoices/documents/proforma.php.
  2. From now on, the file in the theme directory will overwrite the original file from the plugin directory.
  3. Modify the file according to your needs, e.g. changing the texts, adding or deleting certain pieces of information.

If you want to undo the changes, simply delete the file from the theme directory. The file from the plugin directory will be in use again and all the modifications will be undone.

Still need help? Contact Us Contact Us