Jump to content

Edit PDF Invoice display for my website


Iki

Recommended Posts

Hi guys, im user of WHMCS for a very long time, however now I decided to stop using online payment methods and switch to Bank Transfers only. What I noticed is that PDF invoices are totally different than HTML invoices and this is not good to me because on PDF invoice which client download you can't even see bank payment instructions. I need someone to create PDF invoice for me custom to display Bank informations and instructions to pay at the bottom. Also to remove the big status words PAID / UNPAID ( it looks ugly to me i manage to change the color to white but still words are visible in HTML invoice ) Also i checked this thread: https://whmcs.community/topic/226689-how-to-add-payment-details-to-your-whmcs-pdf-invoices/ and I  have tried editing PDF invoice myself but everytime i insert the code i break the page i am not sure where i need to copy paste the code, if i paste it on the bottom it brake the page and i can't place orders at all, if i put it anywhere else same thing. So where i actually need to copy the code which will display Bank information at bottom of invoice. This are last lines of my invoicepdf.tpl file

 

# Generation Date
$pdf->SetFont($pdfFont, '', 8);
$pdf->Ln(5);
$pdf->Cell(180, 4, Lang::trans('invoicepdfgenerated') . ' ' . getTodaysDate(1), '', '', 'C');


/**
 * Invoice footer
 */

Link to comment
Share on other sites

as a starting point, make a backup copy of your existing invoicepdf.tpl template (just rename it invoicepdf2.tpl) and then try uploading the invoice template attached in the thread below...

that was a solution I posted to a similar question....

On 26/10/2019 at 16:20, Iki said:

Also to remove the big status words PAID / UNPAID ( it looks ugly to me i manage to change the color to white but still words are visible in HTML invoice )

if you wanted to remove those banners from the right corner, then you would just remove the entire # Invoice Status block of code from the template, and adjust the value of the XY value in # Company Details to something more suitable - however, if you're unfamiliar with this template, then don't try to do both things at once - get the bank transfer details working, and once it is, then try removing the banners from the layout.

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