Jump to content

Changing Customer Invoice PDF


Sny

Recommended Posts

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 by Maik
Link to comment
Share on other sites

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();

Link to comment
Share on other sites

  • 3 months later...
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated