Page 1 of 1
PDF Virtuemart PDF Invoice new field
Posted: 02 Nov 2011, 23:37
by yavin4
Hello,
I use the Phoca PDF with the VirtueMart plugin. I would like to insert the field payment method in the bill (PDF). Which variable should I insert into the tmpl.invoice.php? Like, for example.
Code: Select all
<td width="20%"> '. JText ::_(' PLG_PHOCAPDF_VM_DELIVERY_PRINT_SHIPPING_CARRIER_LBL').': </ td> width="35%">'. $ a ['td details_1'].'</ > '
. looking forward to your help. THX
regards David
Re: PDF Virtuemart PDF Invoice new field
Posted: 03 Nov 2011, 04:13
by Sckubba
Hi,
the variable is "payment_method"
Bye
Re: PDF Virtuemart PDF Invoice new field
Posted: 03 Nov 2011, 08:54
by yavin4
Hello Sckubba,
just does not work. You can not use a Virtuemart variable. They must be in the form, such as the "PLG_PHOCAPDF_VM_payment_method_name". Do you have another idea?
regards David
Re: PDF Virtuemart PDF Invoice new field
Posted: 03 Nov 2011, 15:17
by Sckubba
I think so, you can.
I have inserted the VAT number and the customer's phone in the invoice and in the delivery note using variables of VM.
You have ti modify de next files: tmpl.invoice.php, tmpl.deliverynote.php, and virtuemartpdfoutput.php
I have a post with the VAT number solution in
viewtopic.php?f=37&t=16123
And works well.
Regards.
Re: PDF Virtuemart PDF Invoice new field
Posted: 21 Nov 2011, 14:27
by yavin4
Hi,
I’ve tried it a few times but unfortunately with no result. The payment information is in the file "virtuemartpdfoutput.php" in the lines 72 to 74. The variable "payment_method" is also formed here. But when I insert the variable (<td width="25%">'.$a['payment_method_name'].'</td>) in the file "tmpl.invoice.php" line 191, in the final pdf nothing changes and the field is empty.
II followed your advise with the „Extra_feld“. Do you have an other idea?
Kind regards
David