PDF Virtuemart PDF Invoice new field

Phoca PDF - creating PDF documents in Joomla! CMS
yavin4
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Nov 2011, 23:07

PDF Virtuemart PDF Invoice new field

Post 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
Sckubba
Phoca Member
Phoca Member
Posts: 12
Joined: 13 Oct 2011, 03:53

Re: PDF Virtuemart PDF Invoice new field

Post by Sckubba »

Hi,
the variable is "payment_method"

Bye
yavin4
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Nov 2011, 23:07

Re: PDF Virtuemart PDF Invoice new field

Post 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
Sckubba
Phoca Member
Phoca Member
Posts: 12
Joined: 13 Oct 2011, 03:53

Re: PDF Virtuemart PDF Invoice new field

Post 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.
yavin4
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 02 Nov 2011, 23:07

Re: PDF Virtuemart PDF Invoice new field

Post 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
Post Reply