Invoice to PDF 1.20.154 is officially released for the low price of FREE. Check out the extension page.
If you have any issues, feel free to post them here.
Donate! | Github of my extensions | Invoice to PDF | FREE Secure OpenCart Passwords
This allows you to change the downloaded PDF name under /system/helper/pdf.php
Available options are:
- order_id
invoice_id
date_added
email
Code: Select all
$name = 'Order_'.$name[0]['invoice_no'];
Attachments
1.21.154 - Fixes order name
Donate! | Github of my extensions | Invoice to PDF | FREE Secure OpenCart Passwords
DOMPDF_ENABLE_REMOTE is set to FALSE
http://www.myshop.com/image/data/logo.png
any ideas?
EDIT:
Got it! Read through some of the mod comments.
- "Try setting the DOMPDF_ENABLE_REMOTE to true in this location: /system/library/dompdf/dompdf_config.inc.php (line 288)"
- " You will have to delete the vqmod/vqcache/vq2-admin_view_template_sale_order_invoice.tpl file to see changes immediately."
Thanks again!
Just an FYI, the current download has the DOMPDF_ENABLE_REMOTE set to true.
Donate! | Github of my extensions | Invoice to PDF | FREE Secure OpenCart Passwords
The quickest, dirtiest way, to do this is to modify the order_invoice.tpl file in admin/view/template/sale/order_invoice.tpl and edit out the price lines.
I will put it on a to-do list to program a packing list.
I posted my code on Github if people care to fork/edit it.
Donate! | Github of my extensions | Invoice to PDF | FREE Secure OpenCart Passwords
I have uploaded the extension and changed the permissions on the fonts folder to 777, but when I try to generate a pdf invoice I get the following:
Code: Select all
array ( 'sans-serif' => array ( 'normal' => DOMPDF_FONT_DIR . 'Helvetica', 'bold' => DOMPDF_FONT_DIR . 'Helvetica-Bold', 'italic' => DOMPDF_FONT_DIR . 'Helvetica-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Helvetica-BoldOblique', ), 'times' => array ( 'normal' => DOMPDF_FONT_DIR . 'Times-Roman', 'bold' => DOMPDF_FONT_DIR . 'Times-Bold', 'italic' => DOMPDF_FONT_DIR . 'Times-Italic', 'bold_italic' => DOMPDF_FONT_DIR . 'Times-BoldItalic', ), 'times-roman' => array ( 'normal' => DOMPDF_FONT_DIR . 'Times-Roman', 'bold' => DOMPDF_FONT_DIR . 'Times-Bold', 'italic' => DOMPDF_FONT_DIR . 'Times-Italic', 'bold_italic' => DOMPDF_FONT_DIR . 'Times-BoldItalic', ), 'courier' => array ( 'normal' => DOMPDF_FONT_DIR . 'Courier', 'bold' => DOMPDF_FONT_DIR . 'Courier-Bold', 'italic' => DOMPDF_FONT_DIR . 'Courier-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Courier-BoldOblique', ), 'helvetica' => array ( 'normal' => DOMPDF_FONT_DIR . 'Helvetica', 'bold' => DOMPDF_FONT_DIR . 'Helvetica-Bold', 'italic' => DOMPDF_FONT_DIR . 'Helvetica-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Helvetica-BoldOblique', ), 'zapfdingbats' => array ( 'normal' => DOMPDF_FONT_DIR . 'ZapfDingbats', 'bold' => DOMPDF_FONT_DIR . 'ZapfDingbats', 'italic' => DOMPDF_FONT_DIR . 'ZapfDingbats', 'bold_italic' => DOMPDF_FONT_DIR . 'ZapfDingbats', ), 'serif' => array ( 'normal' => DOMPDF_FONT_DIR . 'Times-Roman', 'bold' => DOMPDF_FONT_DIR . 'Times-Bold', 'italic' => DOMPDF_FONT_DIR . 'Times-Italic', 'bold_italic' => DOMPDF_FONT_DIR . 'Times-BoldItalic', ), 'monospace' => array ( 'normal' => DOMPDF_FONT_DIR . 'Courier', 'bold' => DOMPDF_FONT_DIR . 'Courier-Bold', 'italic' => DOMPDF_FONT_DIR . 'Courier-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Courier-BoldOblique', ), 'fixed' => array ( 'normal' => DOMPDF_FONT_DIR . 'Courier', 'bold' => DOMPDF_FONT_DIR . 'Courier-Bold', 'italic' => DOMPDF_FONT_DIR . 'Courier-Oblique', 'bold_italic' => DOMPDF_FONT_DIR . 'Courier-BoldOblique', ), // 'arial' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Arial', // 'bold' => DOMPDF_FONT_DIR . 'Arial_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Arial_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Arial_Bold_Italic', // ), // 'comic sans' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Comic_Sans_MS.ttf', // 'bold' => DOMPDF_FONT_DIR . 'Comic_Sans_MS_Bold.ttf', // 'italic' => DOMPDF_FONT_DIR . 'Comic_Sans_MS.ttf', // 'bold_italic' => DOMPDF_FONT_DIR . 'Comic_Sans_MS.ttf', // ), // 'georgia' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Georgia', // 'bold' => DOMPDF_FONT_DIR . 'Georgia_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Georgia_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Georgia_Bold_Italic', // ), // 'lucida console' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'lucon', // 'bold' => DOMPDF_FONT_DIR . 'lucon', // 'italic' => DOMPDF_FONT_DIR . 'lucon', // 'bold_italic' => DOMPDF_FONT_DIR . 'lucon', // ), // 'times new roman' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Times_New_Roman', // 'bold' => DOMPDF_FONT_DIR . 'Times_New_Roman_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Times_New_Roman_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Times_New_Roman_Bold_Italic', // ), // 'trebuchet' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Trebuchet_MS', // 'bold' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Bold_Italic', // ), // 'trebuchet ms' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Trebuchet_MS', // 'bold' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Trebuchet_MS_Bold_Italic', // ), // 'silkscreen' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'slkscr', // 'bold' => DOMPDF_FONT_DIR . 'slkscrb', // 'italic' => DOMPDF_FONT_DIR . 'slkscr', // 'bold_italic' => DOMPDF_FONT_DIR . 'slkscr', // ), // 'silkscreen expanded' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'slkscre', // 'bold' => DOMPDF_FONT_DIR . 'slkscreb', // 'italic' => DOMPDF_FONT_DIR . 'slkscre', // 'bold_italic' => DOMPDF_FONT_DIR . 'slkscre', // ), // 'verdana' => // array ( // 'normal' => DOMPDF_FONT_DIR . 'Verdana', // 'bold' => DOMPDF_FONT_DIR . 'Verdana_Bold', // 'italic' => DOMPDF_FONT_DIR . 'Verdana_Italic', // 'bold_italic' => DOMPDF_FONT_DIR . 'Verdana_Bold_Italic', // ), )
Best regards Erik
Cheers
Ray
1. i have a image as a logo on my invoice, it displays this error on the pdf -
DOMPDF_ENABLE_REMOTE is set to FALSE
http://www.britelightleds.co.uk/Images/invoicelogo.jpg
2, the pound sign in front of each total looks like this
£
when should be £
please help, its to print to ipad !!
also i have to large of a gap at the top when converted to PDF, this messes up printing for my labels as need to be lined up correctly
Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk
just the  symobol before the £ price is left to do now
any one able to help?
Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk
I Downloaded dompdf_0-6-0_beta3 ,Replaceed the system/library/dompdf directory with the new version and setting chmod (777) directory system/library/dompdf/lib/fonts. this, not works !!
How can I fix it? Thanks for all
Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk
I have installed it twice (OC v1.5.0) following the instructions (chmod 777 on the upload\system\library\dompdf\lib\fonts folder):
1. Module from OpenCart Website GAVE:
Fatal error: Call to undefined function pdf() in /home/public_html/gushpetshop.com/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1944
2. Module from your OpenCart Website GAVE:
http://cgsmith.github.com/opencart-extensions/
Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/jadeye/public_html/gushpetshop.com/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1960
What am I doing wrong??
Thank you.
Attachments
Invoice to PDF LOG
vq2-admin_controller_sale_order
http://nwg.co.il/
“Compassion is the basis of morality.”
― Arthur Schopenhauer
Did you manage to get a fix for this? I have just installed the module and am getting the  before £ problem, but only on the PDF - regular invoices are fine.Brite Light LEDs wrote:sorted the images issue,
just the  symobol before the £ price is left to do now
any one able to help?
Too bad...it was also causing errors on the admin orders model.
I uninstalled it.
jadeye wrote:Hello & thank you for the work you have put in to this Invoice to PDF extension...
I have installed it twice (OC v1.5.0) following the instructions (chmod 777 on the upload\system\library\dompdf\lib\fonts folder):
1. Module from OpenCart Website GAVE:
Fatal error: Call to undefined function pdf() in /home/public_html/gushpetshop.com/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1944
2. Module from your OpenCart Website GAVE:
http://cgsmith.github.com/opencart-extensions/
Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/jadeye/public_html/gushpetshop.com/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1960
What am I doing wrong??
Thank you.
http://nwg.co.il/
“Compassion is the basis of morality.”
― Arthur Schopenhauer
Users browsing this forum: No registered users and 31 guests