Page 2 of 2

Re: hide elements in invoice?

Posted: 04 Aug 2008, 14:38
by Jan
ok

Re: hide elements in invoice?

Posted: 04 Aug 2008, 14:57
by matc
good news: i think I´m already close to a solution. The only problem seems to be that somehow I cannot use the fpdf commands GetX() and GetY() in delivery.pdf.php while these commands are used in phoca.tcpdf.php wwithout problems. I´m really no programmer so I´m quite sure this is not a big issue but I need a hint... :)

here is my code which replaces the line

Code: Select all

$pdf->Cell(65,5,$db->f('order_item_name'),0,0,'L');

Code: Select all

$x = $this->GetX();
$y = $this->GetY();
$order_item_name = ereg_replace ("<br/>", "\n", $db->f("order_item_name") );
$order_item_name2 = $order_item_name . "\n";
$pdf->MultiCell(65,5,$pdf->unhtmlentities($order_item_name2),1,0,'L');
$pdf->Ln(5);
$x2 = $x + 65;
$this->SetXY($x2,$y);

Re: hide elements in invoice?

Posted: 04 Aug 2008, 22:23
by Jan
??? why you cannot use GetX() and GetY()... do you use Joomla! 1.5, the tcpdf included these methods, so there should not be a problem ... ???

Jan

Re: hide elements in invoice?

Posted: 07 Aug 2008, 11:34
by matc
yes, I do, but somehow it´s not working. can you give it a try on your installation? simply replace the line of code I mentioned with my few lines of code. I get the error message, that getx() is an unknown method...!?

Re: hide elements in invoice?

Posted: 07 Aug 2008, 22:55
by Jan
no idea , maybe try getX instead of getx ... but I think, this is not a problem ... :( ... no idea why tcpdf says the getX is unknown... :(

Re: hide elements in invoice?

Posted: 12 Aug 2008, 16:20
by matc
hmm...did you try it on your server and is it working?? if it would work this would be a very useful addition to your extension - I think there are more users with long article names... :)

Re: hide elements in invoice?

Posted: 13 Aug 2008, 17:22
by Jan
no I didn't try it yet (because of my time :( )

Jan

Re: hide elements in invoice?

Posted: 21 Aug 2008, 12:29
by matc
is there anybody out there able to try this little hack on a VM installtion? I completly understand that Jan is short on time but hopefully there are others able and willing to help... :)