Hi,
I am having some problems trying to integrate the downloadable PDF. I have followed the instructions from here:
www.artio.net/support-forums/vm-invoice/...er-frontend-with-vm2
And I also edited the list.php file in the template.
However, I run into problems when creating the delivery/invoice note.
Referring to step 5, do I add this code into the delivery note:
<a href="index.php?option=com_vminvoice&controller=invoices&task=pdf&cid=<?php
echo $row->virtuemart_order_id
?>" target="_blank">
<img src="<?php echo JURI::root()?>media/media/images/mime-icon-16/pdf.png">
</a>
However, when I do this, the picture (PDF) icon is missing. Furthermore, the link does not work when the note is emailed. I found that for any <a href="....."> - the link is never clickable in the email, even though it is in the delivery/invoice note editor.
Finally, after manually entering the URL - I get the error: "You do not have permission to view this resource."
chrisjackson.biz/joomlanew/en/?option=co...id=%3C?php%20echo%20$row-%3Evirtuemart_order_id%20?%3E
But when I put in the order ID manually, I am able to download it:
chrisjackson.biz/joomlanew/en/?option=co...ask=pdf_dn&cid=3
Therefore, I believe my problem lies in this part of the code (THE ORDER ID PART)
<?phpecho $row->virtuemart_order_id?>
Could you please suggest a way to fix this and also the hyperlink problem I mentioned earlier. I am using Virtuemart 2.0.26 if this of any help.
Thank you very much.