Alignment of sku number

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
mrbaselier
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 May 2011, 22:40

Alignment of sku number

Post 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
mrbaselier
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 May 2011, 22:40

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

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49134
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Alignment of sku number

Post 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
If you find Phoca extensions useful, please support the project
Post Reply