Discussions

commerce pdf invoice not work as intendet

Hi drupal commerce users,

I tried to get 'commerce pdf invoice'-module to work. But it not really work, as i aspected. I've installed the libs and the module, as it is described in the docs but the only thing which is printed to pdf is the text 'invoice' ... I've changed nothing on the standard view settings ... what did I wrong ?
Is there a better way to get the commerce invoices printable?

Posted: Apr 30, 2012

Comments

conscience on May 3, 2012

hey cedric and everybody who have the same problem:

set the font size for all fields in the views settings (format -> display -> settings) and voila u have a working pdf invoice :D

lsolesen Lars Oleson on December 8, 2012

I have tried Views PDF together with Commerce Invoice. However, it seems that the PDF module is still buggy. How did you solve it?

Toki on September 5, 2013

Hi
I have tried many different things to get a nice PDF invoice and finally, the tip above was perfect (conscience). You have to set a font size to each label and value in the "Commerce Invoice" View AND the "Commerce Pdf Invoice Line Items" View, which is included in the first one. In "CPI Line items", something tricky, you have to scroll on the right to access the fields values configuration. Once this is done, you just have to set your style, position, etc. (or maybe define a CSS class to the CI View)
Finally, you can add a link in each mail or page you build, with href="/commerce/invoice/[commerce-order:order-number]" (Token needed) and it should works.
"A plus"
Toki