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!
Invoice formatting issues
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Invoice formatting issues
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 27 Mar 2009, 15:20
Re: Invoice formatting issues
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!
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!
-
- Phoca Newbie
- Posts: 6
- Joined: 23 Mar 2009, 19:01
Re: Invoice formatting issues
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');
$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');