Post by cgsmith » Mon Sep 03, 2012 11:52 pm

Hello everyone,

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


User avatar
New member

Posts

Joined
Thu Mar 08, 2012 6:35 am
Location - Milwaukee, WI

Post by cgsmith » Tue Sep 04, 2012 4:27 am

Here is an updated vqMod script for 1.21.154

This allows you to change the downloaded PDF name under /system/helper/pdf.php

Available options are:
  • order_id
    invoice_id
    date_added
    email
/system/helper/pdf.php:

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


User avatar
New member

Posts

Joined
Thu Mar 08, 2012 6:35 am
Location - Milwaukee, WI

Post by javabean » Wed Sep 05, 2012 6:03 am

Thanks for this mod. This is great because I've been printing invoices that show the URL on the printed invoice but with the PDF the URL data doesn't show up there any more. I installed this mod but on the PDF invoice my store logo doesn't show up and returns this:

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!

Newbie

Posts

Joined
Wed Aug 29, 2012 2:11 am

Post by cgsmith » Wed Sep 05, 2012 10:24 am

I appreciate the compliment! Glad to see you found my solution buried in the comments on the extension page :) !

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


User avatar
New member

Posts

Joined
Thu Mar 08, 2012 6:35 am
Location - Milwaukee, WI

Post by javabean » Wed Sep 05, 2012 9:50 pm

is there an easy way to modify this mod to make the pdf into a packing slip where there prices does not show? i've looked in many places but there is no real solution for people on the current release of opencart and i think this is a very popular feature people are looking for.

Newbie

Posts

Joined
Wed Aug 29, 2012 2:11 am

Post by cgsmith » Wed Sep 05, 2012 9:54 pm

That's another great suggestion.

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


User avatar
New member

Posts

Joined
Thu Mar 08, 2012 6:35 am
Location - Milwaukee, WI

Post by jakuba » Wed Sep 26, 2012 10:12 pm

Hi, i need UTF-8 PDF export. What file I need to change? Thank you
Which font is default? Used font unsupport symbols in my language.

Tvorba a správa eshopů


Active Member

Posts

Joined
Fri Jul 08, 2011 12:51 am
Location - CZ-Prague

Post by estateP » Sat Oct 13, 2012 1:01 am

Hi

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', // ), )
Don't know what is going wrong. I am using OC v1.5.3.1

New member

Posts

Joined
Wed Jun 13, 2012 2:41 am

Post by thejagular » Mon Oct 22, 2012 3:51 pm

I have successfully got this to work! But I have a problem with swedish translation. å, ä, ö is not working when I export to PDF. It works fine when I press the normal button "print invoice".. Any way to solve this? Looked for some files changed from ANSI but have not found anything affecting this..

Best regards Erik

Newbie

Posts

Joined
Wed Oct 17, 2012 6:29 am

Post by craig@thekeyvan.com » Tue Oct 23, 2012 9:57 pm

I am wondering if your software could help my problem. When I list a product, in the data section, we put a location, where the item can be found in our store. We want that then to print out in any order we recieve, but cant see how to do this. Can you add any extra fields to the pdf , or does it only print out exactly what is on invoice

Cheers
Ray


Posts

Joined
Mon Oct 22, 2012 10:43 pm

Post by Brite Light LEDs » Wed Nov 07, 2012 5:34 am

just installed this, works fine apart from two things

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


User avatar
Active Member

Posts

Joined
Wed Apr 25, 2012 12:47 am

Post by Brite Light LEDs » Fri Nov 09, 2012 4:33 am

sorted the images issue,

just the  symobol before the £ price is left to do now

any one able to help?

Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 25, 2012 12:47 am

Post by ichpen » Tue Nov 13, 2012 8:35 pm

Great free extension. How does one 'automagically' attach the pdf invoice to the order email? That would be an excellent feature.

Newbie

Posts

Joined
Tue Jan 24, 2012 3:48 am

Post by Brite Light LEDs » Sun Nov 25, 2012 11:54 pm

any ideas on pound sign?

Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 25, 2012 12:47 am

Post by Ale88 » Thu Dec 27, 2012 5:40 pm

For me it all works, but in stead of euro signs, I get question marks in the pdf output.
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

New member

Posts

Joined
Thu Feb 18, 2010 8:09 am

Post by Ale88 » Thu Dec 27, 2012 6:34 pm

I solved , but not a good way.
Replace in file admin/view/template/sale/order_invoice.tpl , <?php echo $total['text']; ?> in <?php echo str_replace('€','&euro;',$total['text']); ?>

New member

Posts

Joined
Thu Feb 18, 2010 8:09 am

Post by Brite Light LEDs » Sat Dec 29, 2012 12:16 am

so no real fix for this? :( just want a pound sign

Automotive Lighting upgrades
http://www.BriteLightLEDs.co.uk


User avatar
Active Member

Posts

Joined
Wed Apr 25, 2012 12:47 am

Post by jadeye » Sun Jan 13, 2013 8:07 am

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.

Attachments

Invoice to PDF LOG

vq2-admin_controller_sale_order


Imagehttp://nwg.co.il/
“Compassion is the basis of morality.”
― Arthur Schopenhauer


New member

Posts

Joined
Sun Jul 15, 2012 12:35 am

Post by psychosonicsid » Tue Jan 29, 2013 12:48 am

Brite Light LEDs wrote:sorted the images issue,

just the  symobol before the £ price is left to do now

any one able to help?
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.


Posts

Joined
Tue Jan 29, 2013 12:46 am

Post by jadeye » Tue Jan 29, 2013 2:07 pm

No one has a solution I guess...no one has answered...not even the developer and I wrote him personally.

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.

Imagehttp://nwg.co.il/
“Compassion is the basis of morality.”
― Arthur Schopenhauer


New member

Posts

Joined
Sun Jul 15, 2012 12:35 am
Who is online

Users browsing this forum: Bing [Bot] and 4 guests