how to return order_id value in getOutput section

Phoca PDF - creating PDF documents in Joomla! CMS
degoist
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Jun 2011, 21:17

how to return order_id value in getOutput section

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to return order_id value in getOutput section

Post by Jan »

Hi, then you need to check if such varible exist in the VM output:
plugins\phocapdf\virtuemart\virtuemartpdfoutput.php
If you find Phoca extensions useful, please support the project
degoist
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 05 Jun 2011, 21:17

Re: how to return order_id value in getOutput section

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: how to return order_id value in getOutput section

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply