raeyo Posted May 19, 2011 Share Posted May 19, 2011 I succesfully did the upgrade to 4.5 (from 4.2) and everything is running smoothly. Only issue I have is that the € signs after amount / subtotal amount etc... in my pdfinvoice are gone. Does anyone know how and where I can place the currency back in there? -- Tried to edit this line from invoicepdf.tpl and place the currency but seems not to be working. $pdf->Cell(40,7,$subtotal,1,0,'C','1'); Thnx in advance 0 Quote Link to comment Share on other sites More sharing options...
ditto Posted May 20, 2011 Share Posted May 20, 2011 I would guess you are using iso-8859-1 in WHMCS? In that case any special character in your PDF invoice will be gone, like reported here: http://forum.whmcs.com/showthread.php?t=38382 0 Quote Link to comment Share on other sites More sharing options...
raeyo Posted May 20, 2011 Author Share Posted May 20, 2011 I would guess you are using iso-8859-1 in WHMCS? In that case any special character in your PDF invoice will be gone, like reported here: http://forum.whmcs.com/showthread.php?t=38382 This didn't help. I have a customized invoice template (pdf) but even if I upload the original one, problem persist. Anyone can explain how to add "€" after the amounts? $pdf->MultiCell(40,$rowcount * 5,$item['amount'],1,'C',0,0); 0 Quote Link to comment Share on other sites More sharing options...
ditto Posted May 20, 2011 Share Posted May 20, 2011 I was trying to tell you it is a bug. If you are using iso-8859-1 in WHMCS, then any special characther will not display in your PDF invoice, including € - it's already there, you just can't see it. It is a bug. 0 Quote Link to comment Share on other sites More sharing options...
raeyo Posted May 20, 2011 Author Share Posted May 20, 2011 Ah.. thnx Ditto. In the meantime I did a workaround. I replaced $pdf->Cell(140,7,$_LANG["invoicessubtotal"],1,0,'R','1'); with $pdf->Cell(140,7,$_LANG["invoicessubtotal"].' '.€.'',1,0,'R','1'); ...now thats for the amount but for the other items like subtotal, credit and total I have to fix this code $pdf->Cell(40,7,$total,1,0,'C','1'); (not succeeded yet) ... in the meantime waiting for the bugfix. 0 Quote Link to comment Share on other sites More sharing options...
raeyo Posted May 20, 2011 Author Share Posted May 20, 2011 $pdf->Cell(40,7,$total,1,0,'C','1'); becomes $pdf->Cell(40,7,$total.' '.€.'',1,0,'C','1'); 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 20, 2011 WHMCS CEO Share Posted May 20, 2011 There's no reason why this shouldn't still be working. The TCPDF class has been upgraded to their latest version but that's the only change. Double check the font settings and try re-entering your currency in Setup > Currencies. Matt 0 Quote Link to comment Share on other sites More sharing options...
webex Posted June 16, 2011 Share Posted June 16, 2011 Hi Matt We have the same problem? After the upgrade we lost all our special characters in our invoices. BIG Problem! We have even tried to install different characters to the font folder with out any luck? Please advise what to do, i looks really unprofessional when we send invoices! Please advise 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.