Sny Posted April 16, 2010 Share Posted April 16, 2010 In the customer invoices, a PDF is automatically attached. I'd like to change the contents of this PDF, where can I do that? I've checked email templates and haven't really found anything. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 16, 2010 Share Posted April 16, 2010 It's the invoicepdf.tpl file in your template directory. 0 Quote Link to comment Share on other sites More sharing options...
Maik Posted April 18, 2010 Share Posted April 18, 2010 (edited) Hello Dont want to open new Thread my Problem is like the same. I want to customize my Invoice Style / Layout. Means i want to add something like a Footer for Company Details Adress, Bankaccount ... But for me personally its really hard to change dont know how. Is there an example or HowTo to customizie Invoice Style? Sorry for my bad Englisch EDIT: I already take a look at the Link in Knowledgebase beacause of Customizing Invoice but without PHP Know How and understanding that Type of class there is no way. Best regards Edited April 18, 2010 by Maik 0 Quote Link to comment Share on other sites More sharing options...
itropics.net Posted April 23, 2010 Share Posted April 23, 2010 Hello Maik... As m00 said, you can edit it by opening your invoicepdf.tpl which is inside your templates folder. Let say your default template is portal then the location is <whmcs location>\templates\portal\invoicepdf.tpl. Before ?> you can add your payment method and other details. E.g. # PAYMENT METHOD $pdf->Ln(); $pdf->SetFont('Arial','',6); $pdf->Cell(100,3, "Contact us to avoid the late payment fee.");$pdf->Ln();$pdf->Ln(); $pdf->SetFont('Arial','B',7); $pdf->SetFont('Arial','B',7); $pdf->Cell(100,4, "Direct Deposit:"); $pdf->Ln(); $pdf->SetFont('Arial','',7); $pdf->Cell(100,3, "Bank: _______ Account Name: _________ Account No: _________"); $pdf->Ln(); $pdf->SetFont('Arial','B',7); $pdf->Cell(100,4, "Cheque:"); $pdf->Ln(); $pdf->SetFont('Arial','',7); $pdf->Cell(100,3, "Post to: CompanyName, PO Box 12345 City, State, Country, PostCode"); $pdf->Ln();$pdf->Ln(); $pdf->SetFont('Arial','',6); $pdf->Cell(100,3, "TERMS: STRICTLY NETT 7 DAYS from date of invoice.");$pdf->Ln(); $pdf->Ln(); $pdf->Ln(); 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted April 23, 2010 Share Posted April 23, 2010 the invoice.tpl is a pure PHP template. the pdf generation class is the opensource TCPDF find some documentation here: http://www.tecnick.com/pagefiles/tcpdf/doc/com-tecnick-tcpdf/TCPDF.html and some examples here: http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples maybe its helpful 0 Quote Link to comment Share on other sites More sharing options...
lightbeing creations Posted August 22, 2010 Share Posted August 22, 2010 itropics: thanks for posting that code snippet, really useful 0 Quote Link to comment Share on other sites More sharing options...
FlexiHost Posted August 22, 2010 Share Posted August 22, 2010 Prehaps Sparkys PDF invoice mod would be ideal for you? 0 Quote Link to comment Share on other sites More sharing options...
lightbeing creations Posted August 22, 2010 Share Posted August 22, 2010 Prehaps Sparkys PDF invoice mod would be ideal for you? Which is what and where? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted August 22, 2010 Share Posted August 22, 2010 the invoice.tpl is a pure PHP template.the pdf generation class is the opensource TCPDF find some documentation here: http://www.tecnick.com/pagefiles/tcpdf/doc/com-tecnick-tcpdf/TCPDF.html and some examples here: http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples maybe its helpful WOW !!!!! 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted August 22, 2010 Share Posted August 22, 2010 Hello Dont want to open new Thread my Problem is like the same. I want to customize my Invoice Style / Layout. Means i want to add something like a Footer for Company Details Adress, Bankaccount ... But for me personally its really hard to change dont know how. Is there an example or HowTo to customizie Invoice Style? Sorry for my bad Englisch EDIT: I already take a look at the Link in Knowledgebase beacause of Customizing Invoice but without PHP Know How and understanding that Type of class there is no way. Best regards whmcs/templates/portal/invoicepdf.tpl whmcs/templates/portal/invoicestyle.css 0 Quote Link to comment Share on other sites More sharing options...
FlexiHost Posted August 22, 2010 Share Posted August 22, 2010 http://tshosting.com.au/whmcs.php 0 Quote Link to comment Share on other sites More sharing options...
lightbeing creations Posted August 23, 2010 Share Posted August 23, 2010 thanks for the link, some useful looking mods there. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.