Page 1 of 1

Invoice formatting issues

Posted: 27 Jan 2009, 16:08
by scottjball
Hey All Loving This VM ad-on (It should be a part of the VM base code)

I have a few small issues with the PDF being generated:

1) Is there any way to carry over the attributes (eg size, colour) that are present in VM on the order details.

2) My SKU's are longish, so they overlap on the invoice with the Product Title (See attached PDF) IS there any way to modify the template to allow for longer SKU's?

3) In the Shipping address - It's putting the First and Surnames together without a space. But In Billing Address it's OK (See PDF for example

4) The Logo is being enlarged and pixelated. It should be 118x49 Pixels But is getting stretched.

Other than that I love it!

Re: Invoice formatting issues

Posted: 29 Jan 2009, 15:22
by Jan
Hi, 1,2 - this need to be customized in:
administrator\components\com_virtuemart\pdf\delivery.pdf.php
D:\www\J156\administrator\components\com_virtuemart\pdf\phoca.tcpdf.php

3) I will take a look at it

4) you can change the logo size attributes in:

administrator\components\com_virtuemart\pdf\phoca.tcpdf.php on line + - 103

$this->Image($hD['logo'],20,15,70);

It was customized to standard VM logo format

Jan

Re: Invoice formatting issues

Posted: 27 Mar 2009, 15:23
by invition
Hi,

First of all thanks for the great components!

I experience 1 little problem. The details of the invoice appear at the top of the pdf. Allready searched through the files, but can't find the properties for this part.

thanks!

Re: Invoice formatting issues

Posted: 20 Apr 2009, 17:06
by bluesoul
3) If you want to add a space between name and surname open phoca.tcpdf.php and change line #163
$this->Cell(0,0,$hD['dbst']->f("first_name") . $hD['dbst']->f("middle_name").$hD['dbst']->f("last_name"),0,0,'L');
by
$this->Cell(0,0,$hD['dbst']->f("first_name") ." ". $hD['dbst']->f("middle_name").$hD['dbst']->f("last_name"),0,0,'L');