Page 3 of 4
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Fri Nov 08, 2013 8:36 pm
by donMiki
Hello can anyone help me!
I have after the Installation a Blank Page!!
how can i uninstall !!
Bitte um Hilfe !!
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Sat Nov 09, 2013 6:53 am
by toshina
Just delete the xml document from your vqmod folder.
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Thu Nov 14, 2013 8:33 am
by parth
Sir i m new to opencart
I have download the extension
Please guide me how to use it??
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Fri Feb 14, 2014 8:39 am
by uhealth1188
I have just installed the extension, but got following errors:
Fatal error: Call to undefined function pdf() in /home/xxxxx/public_html/demo/components/com_aceshop/opencart/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 2571
Does any get solution for this issue.
Thanks
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Sat Mar 01, 2014 8:37 am
by cgsmith
uhealth1188 wrote:I have just installed the extension, but got following errors:
Fatal error: Call to undefined function pdf() in /home/xxxxx/public_html/demo/components/com_aceshop/opencart/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 2571
What version of OC and version of vqmod? Can you verify that ../demo/components/com_aceshop/opencart/system/helper/pdf.php exists?
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Mon Mar 03, 2014 6:00 pm
by scr33ky
hello great extension i must say !
the module works fine on OC 1.5.6.1 with the DEFAULT invoice template ...
with a few adjustmets to the font directory using the updated fonts from the beta 3 version of DOMPDF
now when you get errors of access try to CHMODE the files that give errors... worked for me !
The other issue i am having is my custom invoice template
i tryed to send the code from vqmod to my custom invoice template
<file name="admin/view/template/sale/
MY_CUSTOM_order_invoice.tpl">
this was left out because my template dosent have this bit of code in it
<operation>
<search position="replace"><![CDATA[<div style="page-break-after: always;">]]></search>
<add><![CDATA[]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[foreach ($orders as $order) { ?>]]></search>
<add><![CDATA[$iteration=1;
foreach ($orders as $order) {
if ($iteration < count($orders)){?>
<div style="page-break-after: always;">
<?php }else{?>
<div>
<?php }?>
<?php $iteration++;?>]]></add>
</operation>
Also i tryed to shwitch in vqmod the templated used by the controller .... but no luck
<file name="admin/controller/sale/order.php">
<operation>
<search position="replace" offset="2"><![CDATA[$this->template = 'sale/
MY_CUSTOM_order_invoice.tpl';]]></search>
<add><![CDATA[$this->template = '
MY_CUSTOM_order_invoice.tpl';
if ($pdf){
$this->response->setOutput(pdf($this->render(),$this->data['orders']));
}else{
$this->response->setOutput($this->render());
}]]></add>
</operation>
BUt i get this error
Fatal error: Call to undefined method DOMText::getAttribute() in /home/zpprvjrw/domains/MY_WEBSITE.com/public_html/system/library/dompdf/include/cellmap.cls.php on line 399
what am i missing out ?
can anybody help me

Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Mon Mar 03, 2014 7:39 pm
by scr33ky
QUICK FIX although .... this doesnt export the order id as the file name and Nor does it display the graphics the same as the generated invoice as the extension does for the default invoice template ...this bit of code that is quite handy for this
and its javascript for easy integration
so here we go
go to admin/view/template/sale/order_invoice.tpl or custom_order_invoice.tpl
after the </head > tag add
<script>
function doit(){
if (!window.print){
alert("You need NS4.x to use this print button!")
return
}
window.print()
}
</script>
now for the button ... i have set this like a hidden trigger so it wont show up in the printout and i set it up to trigger on the store logo when i hit it is automaticly starts the pdf download procedure
in order_invoice.tpl or custom_order_invoice.tpl
now find youre store logo image tag shood look something like this
<img src="/image/data/logo_store.png" alt="logo_store" border="0"></td>
and add before it <a href="javascript:doit()">
now when you click the logo inside the generated invoice you can save it as pdf
REMEMBER this is NOT a alternative to the module invoice to pdf .. but its a quick fix for PRINTING OUT of custom invoice using SOFTWARE like bullzipPDF (for windows machines ) print to pdf method ....as i said the output is sloppy
but for now it's a qiuck fix untill we can figure out how to export custom templates
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Tue Mar 04, 2014 2:27 am
by scr33ky
this is my custom TPL file for the order invoice
this is file located at admin/viev/template/sale
.... can anyone take a look and please tell me what is the problem ?? why it's not working ang giving this error
Fatal error: Call to undefined method DOMText::getAttribute() in /public_html/system/library/dompdf/include/cellmap.cls.php on line 399
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Thu Mar 06, 2014 2:43 am
by cgsmith
@scr33ky What happens if you upgrade to the latest DOMPDF? You mention beta 3 but that is from 2012.
https://github.com/dompdf/dompdf/releases/tag/v0.6.0
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Thu Mar 06, 2014 3:21 am
by scr33ky
thanks i will give it a try i was tired and did not read between the lines... also .. i read that html 5 parsing must be turned on in the config files .. i will give it a try and see
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Thu Mar 06, 2014 3:54 am
by scr33ky
yep looks like it does the job now ... but for some reason it dosent pickup the funtions from the custom template ... i get errors like undifiend index ... but the custom template when i wiev it it works just fine .... should i hard code the data from the vqmod ?
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Thu Mar 06, 2014 4:07 am
by cgsmith
Yes. The functions in the template will only be usable in the template.
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Tue Apr 08, 2014 5:09 pm
by outsider147
Hi all,
I am getting this notice: Undefined variable: button_details in /var/www/vhosts/xxxx/httpdocs/opencart/catalog/view/theme/theme290/template/product/product.tpl on line 450
If I look at tis line it says
Code: Select all
<!--<a href="<?php echo $product['href']; ?>" class="button details"><span><?php echo $button_details; ?></span></a>-->
I am using 1.5.6.1.
What is wrong.
Greetz,
Lars
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Thu Apr 10, 2014 11:54 pm
by the dude
Hello
Using Opencart V 1.5.4 and this extension - works like a charm except for one tiny problem.
Instead of letters Č Š Ž it's just ?
How can i fix this?
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Fri Apr 11, 2014 3:52 am
by IP_CAM
[quot Tee="outsider147"]
Undefined variable: button_details in /var/www/vhosts/xxxx/httpdocs/opencart/catalog/view/theme/theme290/template/product/product.tpl on line 450.
Code: Select all
<!--<a href="<?php echo $product['href']; ?>" class="button details"><span><?php echo $button_details; ?></span></a>-->
I have not been able to find anything called $button_details;, neither have I be able to locate anthing like: button details (without underscore), this is a CSS CLASS refference, meaning that you probably use some CUSTOM CSS-file or at least such entries. And you require a $variable, calling something to show up wich is not there...
May be your theme290 Template, using a customized product.tpl - so you possibly have just a .XML subsection linked to your default >>catalog/view/theme/<< OC Template Section. If so, you need to copy/paste the Subsection in the .XML File, wich links to your template Subsection, rewrite the Subs to >>/catalog/view/theme/theme290<< to your THEME290 Template Sub, and you may be lucky...
It's just an idea, If you understand what I'm trying to say...
Ernie
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Sun Apr 20, 2014 11:27 am
by IP_CAM
I had some spare time and just got the latest Version installed onto my OpenShop v1.7 Custom Theme (OC v1.5.6.1-3).
First start produced Source Code on the Screen, then I switched to the Invoice itself and got my PDF as planned. Switching back to admin-display-all user-invoices Order Page, everything worked there too.
It's a nice thing to have! Thank you...
Ernie
ipc.li/shop/
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Tue Apr 22, 2014 4:59 pm
by outsider147
Hay Ernie,
thanks a lot.
I am going to give it a try.
I got what you meant, so I will work from there.
Thanks.
Lars
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Thu May 22, 2014 11:28 am
by _/=-)+(-=\_
Hey guys!
I realize that I'm not the first to ask, but is there really nobody who could help with the mail function or a link to PDF invoice function?
If yes - thank you veru much!
If no - point me at least in the right direction please and of course, thank you!
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Fri May 23, 2014 3:54 am
by IP_CAM
here they are some useful files, for a few days, it takes so much time to find the corresponding links on OC
http://www.opencart.com/index.php?route ... %20Invoice
http://www.opencart.com/index.php?route ... ame=bgill0
http://www.ipc.li/os/pdf1.zip
http://www.ipc.li/os/pdf1.rar
Ernie
PS: that's alI can do for you, take time, read the Forum about them and work exactly...
Re: [Extension] Invoice to PDF 1.2 release (also support thr
Posted: Wed Aug 27, 2014 10:03 pm
by projectcris
I use Invoice to PDF for some time now and it works fine. I now try to add a barcode to the pdf invoice and cannot figure this out.
I used generation an image (code from
http://www.opencart.com/index.php?route ... n_id=16069) and using jquery (code from
http://barcode-coder.com/en/barcode-jqu ... n-201.html). They do look good in html view, but don't show in the pdf view. Other images do show in the pdf view, so that is not the problem.
Does anybody has experience with this or suggestions?
Regards,
Cris