maildemon Posted September 12, 2011 Share Posted September 12, 2011 Hi everybody. I'm quite new with Presta and I have a little but important problem with invoices. The auto-generated invoice from presta doesn't contain my information (adress, bank account etc.) Can anyone give me an advice where I have to put any code or make some changes? I know I have to change something in pdf.php but this is my end. I don't know what changes or code I have to fill in. Sorry for bad english. Thanks for all advices. Tony -- I'm using Presta 1.4.0.17 (I did many changes in modules, so It is difficult for me to upgrade to latest Presta) EDIT: Mission Complete. Changes are written below this comment. These changes aren't in pdf.php yet, so you have to edit the php. PDF.php Link to comment Share on other sites More sharing options...
pepperoni Posted February 7, 2012 Share Posted February 7, 2012 Hi maildemon, did you solve your problem? I'm curious to find out how you did it. I use the same version and likewise I can't upgrade as I have changed so many core files. Many thanks Link to comment Share on other sites More sharing options...
maildemon Posted February 8, 2012 Author Share Posted February 8, 2012 pepperoni: Hi. I rewrite some lines of code in pdf.php after few days of solving this problem. I put these code somewhere on line 403 (approximately) $pdf->Ln(5); $pdf->Cell(0, 6, self::l('Supplier'), 0, 'L');$pdf->Ln(5); $pdf->Cell(0, 6, self::l('Name'), 0, 'L');$pdf->Ln(5); $pdf->Cell(0, 6, self::l('Address'), 0, 'L');$pdf->Ln(5); $pdf->Cell(0, 6, self::l('Email:'), 0, 'L');$pdf->Ln(5); $pdf->Cell(0, 6, self::l('Tel:'), 0, 'L');$pdf->Ln(5); $pdf->Cell(0, 6, self::l('VAT: '), 0, 'L');$pdf->Ln(5); $pdf->Cell(0, 6, self::l('website'), 0, 'L');$pdf->Ln(5); I have some more lines, like the dates fill in automatically etc. If you want to change the "location of the text on the paper", you can do it by $pdf->SetXY(x,y); I don't know if it is a good solution but it works for me fine and I am satisfied. M. Link to comment Share on other sites More sharing options...
pepperoni Posted February 12, 2012 Share Posted February 12, 2012 Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now