Page 1 of 1

Alignment of sku number

Posted: 20 May 2011, 22:52
by mrbaselier
Dear everyone,

First of all...thank you for this wonderfull component!!!

I have long SKU numbers but am unable to align them nicely. Please see below image.

Image

I was able to move the productname header a bit to the right in the following file:
administrator/components/com_virtuemart/pdf/phoca.tcpdf.php

I changed the line:
$this->Cell(15,5,$VM_LANG->_('VM_DELIVERY_PRINT_SKU_LBL'),0,0,'L');
to:
$this->Cell(20,5,$VM_LANG->_('VM_DELIVERY_PRINT_SKU_LBL'),0,0,'L');

So now the header was OK but the product below the header remain as they are and so the SKU number is still running over the product name.

Hope you can help me!

Many thanks!


Kind regards,

Jarno

Re: Alignment of sku number = Solved... Now Spacing = Proble

Posted: 21 May 2011, 11:41
by mrbaselier
Ok... I solved this myself by changing this file:

administrator/components/com_virtuemart/pdf/delivery.pdf.php

and this line:
$pdf->Cell(15,5,$db->f('order_item_sku'),0,0,'L');
to:
$pdf->Cell(20,5,$db->f('order_item_sku'),0,0,'L');

But now I am stuck with a new question. I am unable to add a space between the first and surname of the shipping address.

Please see below screenshot.

Image

hope you can help me.


Kind regards,

Jarno

Re: Alignment of sku number

Posted: 26 May 2011, 22:59
by Jan
Hi, if you are using the old addon then this needs to be done with some of the tcpdf method and count the position :-( :-( In new version, this can be done in template with <br /> tag (html using)

Jan