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
What version of OC and version of vqmod? Can you verify that ../demo/components/com_aceshop/opencart/system/helper/pdf.php exists?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
Donate! | Github of my extensions | Invoice to PDF | FREE Secure OpenCart Passwords
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

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
Fatal error: Call to undefined method DOMText::getAttribute() in /public_html/system/library/dompdf/include/cellmap.cls.php on line 399
https://github.com/dompdf/dompdf/releases/tag/v0.6.0
Donate! | Github of my extensions | Invoice to PDF | FREE Secure OpenCart Passwords
Donate! | Github of my extensions | Invoice to PDF | FREE Secure OpenCart Passwords
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>-->
What is wrong.
Greetz,
Lars
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>-->
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
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
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/
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
thanks a lot.
I am going to give it a try.
I got what you meant, so I will work from there.
Thanks.
Lars
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!
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...
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
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
Users browsing this forum: No registered users and 2 guests