VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jack19 on September 27, 2012, 18:34:34 PM

Title: Problem with invoice PDF
Post by: jack19 on September 27, 2012, 18:34:34 PM
Hi,
I have found that the PDF of the invoice, the shipmentName is without spaces with the shipmentDescription. (Also paymentName with paymentDescription)
is the same problem that I mentioned in another post that I have partially solved
http://forum.virtuemart.net/index.php?topic=107455.msg359179#msg359179 (http://forum.virtuemart.net/index.php?topic=107455.msg359179#msg359179)
In this case, however, appears in the output PDF files, and I have tried various ways but no solution.
For example, should be:
Telematica Consegna di prodotti virtuali
and not
TelematicaConsegna di prodotti virtuali
See attach.
Any idea?
Regards.

[attachment cleanup by admin]
Title: Re: Problem with invoice PDF
Post by: Naesstrom on September 28, 2012, 12:21:00 PM
I had the same problem on my site.
If you go to the selected shipping options and payment options you have the name and a box beneath it.
Leave the lower box empty and instead ad that text to the next tab at the top called: Configuration
Once there you have a couple of options, add your text to the large one called "Payment Info" instead
Title: Re: Problem with invoice PDF
Post by: jack19 on September 28, 2012, 15:33:16 PM
Quote from: Naesstrom on September 28, 2012, 12:21:00 PM
I had the same problem on my site.
If you go to the selected shipping options and payment options you have the name and a box beneath it.
Leave the lower box empty and instead ad that text to the next tab at the top called: Configuration
Once there you have a couple of options, add your text to the large one called "Payment Info" instead
Hi Naesstrom,
I thank you for the answer.
But yours is an alternative that does not work with all payments, for example if you use PayPal.
Also with shipments not have this possibility (with 2.0.10).
The solution could be to separate the two values ​​in the function
<?php echo $this->orderDetails['shipmentName'?>
creating two different like:
<?php echo $this->orderDetails['shipment_Name'?></
and
<?php echo $this->orderDetails['shipment_Description'?></
so you can use them at will where necessary.
Rgds