Custom field on invoice PDF

Hello, I am trying to add custom field with custom text on invoice.
I created the field but i dont know how to ,echo" the field in PDF template in: application\views\invoice_templates\pdf

I tried this but it doesnt work:

<?php echo $custom_fields['invoice']['Text'] ?>

Any help please?


Is Text the label of your custom field? If the label is ‘A Label’ (case sensitive) then it should be:
Also don’t forget the trailing ;
<?php echo $custom_fields['invoice']['A Label']; ?>

1 Like