VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: sandum150 on June 12, 2013, 10:49:34 AM

Title: Change the header of PDF invoice
Post by: sandum150 on June 12, 2013, 10:49:34 AM
Hello everybody!
I'm trying to modify the /views/invoice/tmpl/invoice.php, but there are no changes in the top of PDF file.
Can anybody give me a hint where is the right code i should change?
Title: Re: Change the header of PDF invoice
Post by: Milbo on June 12, 2013, 12:54:05 PM
You must use the latest version, atm 2.0.21D, there you can style this.
Title: Re: Change the header of PDF invoice
Post by: lorartemis on June 17, 2013, 14:01:02 PM
Hi Milbo, I take it as a non stable release, it's not for a live site?
Thanks
Loraine
Title: Re: Change the header of PDF invoice
Post by: sandum150 on July 18, 2013, 15:52:46 PM
Quote from: Milbo on June 12, 2013, 12:54:05 PM
You must use the latest version, atm 2.0.21D, there you can style this.

Now I have the 2.0.22 but still couldn't make changes. In which file(s) I can do that?
Title: Re: Change the header of PDF invoice
Post by: jenkinhill on July 18, 2013, 15:58:53 PM
In Shop, Invoices tab.
Title: Re: Change the header of PDF invoice
Post by: sandum150 on July 18, 2013, 16:13:06 PM
Joomla 2.5.11
Virtuemart 2.0.22 (just updated from 2.0.20b)
php 5.4.4
Title: Re: Change the header of PDF invoice
Post by: Maxim Pishnyak on July 18, 2013, 16:36:51 PM
Sandum, did you found what you want in the VM backend?
Title: Re: Change the header of PDF invoice
Post by: sandum150 on July 19, 2013, 10:11:35 AM
Waw! It's Great! Thank You
but i need to insert in the invoice a dynamic image, like a barcode, or QRcode. How could it be possible?
Also, is there a way to add another UTF-8 font?
Title: Re: Change the header of PDF invoice
Post by: Maxim Pishnyak on July 21, 2013, 22:58:18 PM
You able to use template overrides (check related sticked thread) for invoices, using as example contest of this folder
com_virtuemart\components\com_virtuemart\views\invoice\

About font issue use search on this forum - forum members resolved this.
Title: Re: Change the header of PDF invoice
Post by: rockycox1989 on January 09, 2014, 08:01:23 AM
Quote from: sandum150 on July 19, 2013, 10:11:35 AM
Waw! It's Great! Thank You
but i need to insert in the PDF (http://www.rasteredge.com/how-to/asp-net-imaging/pdf-reading/) invoice a dynamic image (http://www.rasteredge.com/java-imaging/), like a barcode, or QRcode. How could it be possible?
Also, is there a way to add another UTF-8 font?

;D, I am too lazy to try each suggested advice. So how does Maxim's solution work? Have you successfully insert an dynamic image into PDF header. By the way, how to make barcode image dynamic? All the barcode images that I met are just combination of white & black bars.
Title: Re: Change the header of PDF invoice
Post by: micagordon on February 15, 2015, 08:56:50 AM
Quote from: sandum150 on July 19, 2013, 10:11:35 AM
Waw! It's Great! Thank You
but i need to insert in the invoice a dynamic image, like a barcode (http://www.onbarcode.com/), or QRcode (http://www.onbarcode.com/qr_code/). How could it be possible?
Also, is there a way to add another UTF-8 font?
Did you find the way of insert bar code images in the invoice?
Title: Re: Change the header of PDF invoice
Post by: jenkinhill on February 15, 2015, 12:27:49 PM
@micagordon a problem with adding to an old thread is that many of those who took part are no longer forum users and VM will be very different from the version they were using.  Once they solve their problem they don't come back. So I suggest that you start a new thread with your issue.
Title: Re: Change the header of PDF invoice
Post by: micagordon on February 16, 2015, 09:19:28 AM
Quote from: jenkinhill on February 15, 2015, 12:27:49 PM
@micagordon a problem with adding to an old thread is that many of those who took part are no longer forum users and VM will be very different from the version they were using.  Once they solve their problem they don't come back. So I suggest that you start a new thread with your issue.
I've found the resolution. :)
But thanks still.