I nearly got everything perfectly working but there are still 2 problems left:
as you can see in the attached screenshots, there is a problem with the charset and ther german "Umlaute".
second I have problems with overlapping text in the item text. please have a look at the second screenshot.
I´m also wonderung where to change the "Zahlungsziel" which is 30 days at the moment. Must be somewhere in VM I guess...
here is what I changed in the admnistrator/components/com_virtuemart/pdf/delivery.pdf.php
Code: Select all
// PDF
$pdf->SetFont($pdfFont,'',9);
$pdf->Cell(30,5,$db->f('order_item_sku'),0,0,'L');
if($d['gen'] == 'bill') {
// START modification by mat-c
$x = $pdf->GetX();
$y = $pdf->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),0,0,'L');
$pdf->Ln(5);
$x2 = $x + 65;
$pdf->SetXY($x2,$y);
//END modification by mat-c
$pdf->Cell(10,5,$db->f('product_quantity'),0,0,'C');
$pdf->Cell(10,5,$db->f('product_quantity_delivered'),0,0,'C');
$pdf->Cell(10,5,$remaining,0,0,'C');