Artizzz Posted June 1, 2011 Share Posted June 1, 2011 Hello!I would like to know how to delete invoice address in pdf and instead of invoicing address I need to add Shop name, address, and details(something similar to what are in footer but I need to display it in header). In previous version I made those changes just editing lines in pdf.php but now I see that there are made some serious changes and it's more complicated than before and I don't have any clue how to make it work for me. EDIT:Actually I know how to disable invoicing address(need to delete - 'invoice' => array(), and rename $pdf->Cell($width, 10, self::l('Invoicing'), 0, 'L'); ) but how to display my datas in that place, need to make some kind of array or what?Best regards,Artizzz Link to comment Share on other sites More sharing options...
Artizzz Posted June 2, 2011 Author Share Posted June 2, 2011 Does really nobody knows how to make similar hook or array(don't know what it really is) like shipping address info and invoice address info in invoice to add vertical column with few lines to display company info - address, address 2, phone and some other things - similar to customer address(invoicing address and delivery address). I tried to solve it now for 2 days but with no results I just can't get how to call it to invoice(like those invoicing and delivery addresses) to make both columns next to each other.Best regards,Artizzz Link to comment Share on other sites More sharing options...
Artizzz Posted June 9, 2011 Author Share Posted June 9, 2011 Now I'm getting close to what I need, but I need some help...I have modifie classes/pdf.php to show what I really needfrom: $width = 100; $pdf->SetX(10); $pdf->SetY(25); $pdf->SetFont(self::fontname(), '', 12); $pdf->Cell($width, 10, self::l('Delivery'), 0, 'L'); $pdf->Cell($width, 10, self::l('Invoicing'), 0, 'L'); $pdf->Ln(5); $pdf->SetFont(self::fontname(), '', 9); $addressType = array( 'delivery' => array(), 'invoice' => array(), ); to: $width = 100; $pdf->SetX(10); $pdf->SetY(25); $pdf->SetFont(self::fontname(), '', 12); $pdf->Cell($width, 10, self::l('Company'), 0, 'L'); $pdf->Cell($width, 10, self::l('Delivery'), 0, 'L'); $pdf->Ln(5); $pdf->SetFont(self::fontname(), '', 9); $pdf->Cell($width, 15, self::l('Line 1'), 0, 'L'); $pdf->Ln(0); $pdf->Cell($width, 23, self::l('Line 2'), 0, 'L'); $pdf->Ln(0); $pdf->Cell($width, 31, self::l('Line 3'), 0, 'L'); $pdf->Ln(0); $pdf->Cell($width, 38, self::l('Line 4'), 0, 'L'); $pdf->Ln(0); $pdf->Cell($width, 46, self::l('Line 5'), 0, 'L'); $pdf->Ln(0); $pdf->Cell($width, 54, self::l('Line 6'), 0, 'L'); $pdf->Ln(0); $pdf->Cell($width, 62, self::l('Line 7'), 0, 'L'); $pdf->Ln(0); $pdf->Cell($width, 70, self::l('Line 8'), 0, 'L'); $pdf->Ln(0); $pdf->Cell($width, 78, self::l('Line 9'), 0, 'L'); $addressType = array( 'empty' => array(), 'delivery' => array(), ); And now when there are lines they hides below text what are below(Order Nr., carrier - column). To avoid it maybe it's possible to make my lines as array like it been with invoicing address lines. And then replace 'empty' => array(), with that array with my lines??? Or some other solution? 2 Link to comment Share on other sites More sharing options...
wampsi Posted March 29, 2012 Share Posted March 29, 2012 Thanks man, you just saved me tons of time. Wish i've found your solution earlier.. For me these lines don't hide below text. 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