#1  
Old 30th March 2012, 01:55
Davide Davide is offline
Senior Member
 
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 7 Times in 6 Posts
Default Billing module invoice template

Hi

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
  #2  
Old 30th March 2012, 08:23
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,453
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
 
Default

Quote:
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:

Code:
/*
   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)
Reply

Bookmarks

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 12:11
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 18:03
FreeRadius + MySQL working, but I don't know how to customise SQL queries awe Installation/Configuration 4 4th April 2010 23:28
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Webmin docs missing namit Server Operation 11 5th January 2006 09:51


All times are GMT +2. The time now is 17:54.


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