News:

Support the VirtueMart project and become a member

Main Menu

Is it possible this solution for invoice.pdf and invoice for print?

Started by Pejo, October 07, 2013, 02:25:24 AM

Previous topic - Next topic

Pejo

I was searching this forum and internet for few hours now to find some free or cheap solution to make invoice print and invoice pdf solution better looking.
Every solution i found it is very expensive, so I tried to do it my self with the invoice inside VM.

Then I so that Virtuemart invoice and Virtuemart order mails use same source.

So this is my question:

Is it possible to make printable invoice (or invoice.pdf) to look like order email that shopper receive?
order that I received by mail looks quite good, so why is this not used for invoice, too?

Is it possible to use codes and stuff to make invoice preview (invoice look) to be the same as e-mail order?
If this is possible, can you please tell us how, I think this will be interested for many VM users.

I will try it my self, just tell me if this is possible.

thanks.

reinhold

Unfortunately, the library that creates the pdf file does not fully support CSS, which makes the confirmation mail look nice.
Still, you can create quite nice invoices with template overrides. I'm attaching my template overrides for the invoices' page contents (in templates/YOURTEMPLATE/html/com_virtuemart/invoice/ ), which are tweaked to my needs (i.e. several columns removed), so they might not directly suit everyone's need and might need to be adjusted to your needs.

I'm putting these files under the GPL v2+, so if someone has enough time to make them generic enough for inclusion into the VM code base, I'm perfectly fine with it...

The invoice headers and footers can now nicely formatted in the VM config.

Reinhold


[attachment cleanup by admin]

Pejo

Quote from: reinhold on October 07, 2013, 10:05:34 AM
Unfortunately, the library that creates the pdf file does not fully support CSS, which makes the confirmation mail look nice.
Still, you can create quite nice invoices with template overrides. I'm attaching my template overrides for the invoices' page contents (in templates/YOURTEMPLATE/html/com_virtuemart/invoice/ ), which are tweaked to my needs (i.e. several columns removed), so they might not directly suit everyone's need and might need to be adjusted to your needs.

I'm putting these files under the GPL v2+, so if someone has enough time to make them generic enough for inclusion into the VM code base, I'm perfectly fine with it...

The invoice headers and footers can now nicely formatted in the VM config.

Reinhold


THANKS! Your invoice looks great and I will use it. I see that you have change and add some lines (as you said), but there is no problem, I will try to edit it by me needs. Hope I will manage to do that. ;)

Thanks a lot!

Oh, one more question if you maybe know: in invoice.pdf I can not see some of Croatian letters: "č" and "ć". But in printer invoice, this letters are shown.
Do you know what can be the problem?

Thanks again for your invoice! ;)

Pejo

@reinhold, can you please send me one of yours invoice.pdf to pejo@ambienti.hr?

I think that your invoice looks very different from this I have now with your .php files. Have you change anything in invoice.php file?

Maxim Pishnyak

Quote from: Pejo on October 07, 2013, 15:35:15 PM
Oh, one more question if you maybe know: in invoice.pdf I can not see some of Croatian letters: "č" and "ć". But in printer invoice, this letters are shown.
Do you know what can be the problem?
And you font setting is?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart