Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you wish to execute custom PHP code in your invoice template (ie. have barcode render script added to the invoice) you can do so by adding smarty {php} tag to your invoice template source.

1. Ensure First you need to ensure your smarty have PHP handling enabled (read related articleIntegrating templates - tips and tricks)

2. Go Then go to Settings → General Setting → Billing → Invoice Document Templates → Invoice customization and edit your current invoice template. Click on [HTML] button to edit source. 

Image Removed

3. Add Image Added


Then you can add your php code within {php} {/php} smarty tags, as below:

...