We use the popular WHMCS billing system to manage our customers accounts alongside Umbraco.

One of the things our customers asked for is the Bank details to be included on the PDF invoice which is emailed or downloaded from within their account.

We thought this was a great idea. A quick look through the WHMCS Community has shown others asking this exact question in the past, using the post on the community as a guide we implemented this into our system with a few minor tweaks.

The change is very small, firstly open up the file called invoicepdf.tpl this can be found within your template folder.

Find # Clients Details and then around line 102 you should find the following:


After that line, insert the following:

if ($paymentmethod=="Bank Transfer") {
$pdf->SetXY(15, 95);
$pdf->Cell(180,15,"Payment Due Via Bank Transfer",0,0,'R');
$pdf->Cell(0, 4, "Bank Name: BANK NAME", 0, 1, 'R');
$pdf->Cell(0, 4, "Payee Name: PAYEE NAME", 0, 1, 'R');
$pdf->Cell(0, 4, "Sort Code: SORT CODE", 0, 1, 'R');
$pdf->Cell(0, 4, "Account No: ACCOUNT NUMBER", 0, 1, 'R');
$pdf->Cell(0, 4, "IBAN: IBAN NUMBER", 0, 1, 'R');
$pdf->Cell(0, 4, "BIC / SWIFT: BIN NUMBER", 0, 1, 'R');
$pdf->Cell(0, 4, "Ref: #$invoicenum", 0, 1, 'R');

Finally replace the values in the text above with your actual Bank Details.

That's all there is to it!


Post a comment

Fields marked with an * (asterisk) are required

Recent Posts

How to pass a Content Security Nonce (CSP) to G...

How to use a CSP nonce with...

UmbCheckout 1.0.0 & UmbCheckout.StarterKit.Stri...

The stable version of UmbCh...

Voting is now open for the Green Business of th...

We've been shortlisted! - P...

We have been shortlisted in The Petersfield Awa...

We have been shortlisted fo...

Please nominate us in The Petersfield Awards!

If you believe in what we d...

Browse Umbraco Hosting

Umbraco Hosting Starting At $26/month