Old 30th March 2012, 02:55
Davide Davide is offline
Senior Member
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 9 Times in 8 Posts
Default Billing module invoice template


Is it possible to create a personalized pdf invoice template based in existing templates?

I tried duplicating existing template directory with another name, and my "new template" is listed as an option, but it fails when trying to use it.
Reply With Quote
Sponsored Links
Old 30th March 2012, 09:23
till till is online now
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,011
Thanks: 840
Thanked 5,651 Times in 4,461 Posts

Is it possible to create a personalized pdf invoice template based in existing templates?
Yes, just make a copy of one of the xisting templates. Ensure that the dircetory name has no white spaces as in your first attempt, use underscore "_" instead.

Then open the make_pdf_invoice.php file in your newly created directory and edit the calssname to match the new name. There are instructions in the file:

   Here we extend tfpdf and create a new class. the name of the Class has to be
   PDFInvoice_ plus the name of the template, in this case "default" so the full
   name of the class is "PDFInvoice_default".

class PDFInvoice_default extends tFPDF
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Davide (10th April 2012)


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeradius and Mysql uvstudios HOWTO-Related Questions 4 19th February 2014 13:11
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 19:03
FreeRadius + MySQL working, but I don't know how to customise SQL queries awe Installation/Configuration 4 5th April 2010 00:28
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Webmin docs missing namit Server Operation 11 5th January 2006 10:51

All times are GMT +2. The time now is 16:30.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.