Custom Pdf Invoice Templates

Discussion in 'Tips/Tricks/Mods' started by Yarnell, Feb 3, 2021.

  1. Yarnell

    Yarnell Member

    Good day,
    After searching around ispconfig I stumbled upon the pdf_invoice location inside the templates.
    Instead of editing the default templates I opted to try and duplicate them with a new folder name.
    I thought I was in luck when the templates appeared in the dropdown menu on the settings page but when I try to finalize an invoice nothing happens.

    any ideas on how to get the new templates working???
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Yarnell

    Yarnell Member

    awesome... thank you sir.
  4. Yarnell

    Yarnell Member

    Ok, I am one step closer.
    I duplicated the default directory, renamed it to renewals and chown'd it to ispconfig.
    Then I changed line 12 in the make_pdf_invoice.php file to read:
    class PDFInvoice_renewals extends tFPDF
    Now ispconfig recognizes the template and finalizes the order. Only problem is that the pdf file is a blank white page.
  5. Yarnell

    Yarnell Member

    hmmm. im getting a blank white page for all the templates... it seems I have messed something up.
  6. Steini86

    Steini86 Active Member

    Might be a syntax error. Look in the error.log file.
    Revert your changes until it works again ;)
  7. Yarnell

    Yarnell Member

    if it aint one thing its another... the issue is not with ispconfig, for some odd reason my firefox is no longer displaying pdf files. tried downloading a couple and they didn't work either. goodness, goodness. On a positive note... My custom template is working :)
    till likes this.

Share This Page