innovot Posted July 6, 2015 Share Posted July 6, 2015 (edited) Hello: am trying to add a payment details section to the end of invoicepdf.tpl but instead of appearing as three columns across the page it just displays underneath each other. Also, if there are a number of product lines then the page break is not being thrown correctly due to the payment details. Here is what I have added # Payment Details $pdf->SetFont('freesans','B',12); $pdf->Cell(180,7,"HOW TO PAY",0,1,'C'); $pdf->SetFont('freesans','B',9); $pdf->Cell(60,7,"Cheque",0,0,'L');$pdf->Cell(60,7,"Electronic Funds Transfer",0,0,'L');$pdf->Cell(40,7,"Credit Card",0,0,'L'); $pdf->Ln(); $pdf->SetFont('freesans','',9); $ypos = $pdf->GetY(); $pdf->SetXY(20,$ypos); $pdf->MultiCell(60,4,"Please send cheque payable to\nINNOVOT LTD addressed:\n145-157 St. John Street\nLondon\nEC1V 4PW\nEngland\n"); $pdf->SetXY(80,$ypos); $pdf->MultiCell(60,4,"Account Name: INNOVOT LTD\nSort Code: XX-XX-XX\nAccount No: 12345678\n"); $pdf->SetXY(140,$ypos); $pdf->MultiCell(60,4,"Please phone us with your\ncard details to pay with \nVisa or Mastercard\n"); Any help appreciated, thanks. Edited July 6, 2015 by innovot 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 6, 2015 Share Posted July 6, 2015 unless absolutely necessary (and it very rarely is!), it's usually easier to just use a 100%-width html table and split it into three columns. http://forum.whmcs.com/showthread.php?89574-How-to-Add-Payment-Details-to-your-WHMCS-PDF-Invoices&p=393683#post393683 0 Quote Link to comment Share on other sites More sharing options...
innovot Posted July 6, 2015 Author Share Posted July 6, 2015 Thank you. 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.