Page 1 of 1

how to return order_id value in getOutput section

Posted: 05 Jun 2011, 21:25
by degoist
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!

Re: how to return order_id value in getOutput section

Posted: 06 Jun 2011, 23:39
by Jan
Hi, then you need to check if such varible exist in the VM output:
plugins\phocapdf\virtuemart\virtuemartpdfoutput.php

Re: how to return order_id value in getOutput section

Posted: 07 Jun 2011, 08:01
by degoist
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!

Re: how to return order_id value in getOutput section

Posted: 08 Jun 2011, 00:00
by Jan
Ok