Hi!
I have a problem returning the value of '.$a['order_id'].' from public function getOutputHeader($a) in public function getOutput($a, $items).
I have created a simple table right after the "Signature" which displays bank details (account holder, account id, etc).
I need to return the order_id value as a reference number and bill_due as a due date.
The problem is that when I insert the codes into my table they do not render (at least are not visible in the generated pdf file).
All the changes are done in tmpl.invoice.php
Please, help!
Thank you!
how to return order_id value in getOutput section
-
- Phoca Newbie
- Posts: 5
- Joined: 05 Jun 2011, 21:17
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to return order_id value in getOutput section
Hi, then you need to check if such varible exist in the VM output:
plugins\phocapdf\virtuemart\virtuemartpdfoutput.php
plugins\phocapdf\virtuemart\virtuemartpdfoutput.php
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 05 Jun 2011, 21:17
Re: how to return order_id value in getOutput section
Hi Jan,
In plugins\phocapdf\virtuemart\virtuemartpdfoutput.php there are all variables i need listed under "RENDER" part.
I am particularly looking for
$a['order_id']
$a['bill_due']
<STRIKE>But i don't understand haw to make them work in the invoice template in the body part of it (after Signature).</STRIKE> Got it! Works!
Thank you in advance!
In plugins\phocapdf\virtuemart\virtuemartpdfoutput.php there are all variables i need listed under "RENDER" part.
I am particularly looking for
$a['order_id']
$a['bill_due']
<STRIKE>But i don't understand haw to make them work in the invoice template in the body part of it (after Signature).</STRIKE> Got it! Works!
Thank you in advance!
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to return order_id value in getOutput section
Ok
If you find Phoca extensions useful, please support the project