VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: LeG3nDz on October 29, 2013, 12:48:13 PM

Title: Add a new information in bill PDF
Post by: LeG3nDz on October 29, 2013, 12:48:13 PM
Hello every body :)

Do you know how can i add a new information on my bill ?

I would like add my SARL etc .., and i don't know if it's on php or in backoffice ?

Thank you all :)
Title: Re: Add a new information in bill PDF
Post by: reinhold on October 29, 2013, 12:53:52 PM
Depends on where you want that information. The headers and footers (and the page geometry in general) of the invoices can be freely configured in the VM backend.

The actual contents of the invoice needs to be modified using template overrides in PHP.
Title: Re: Add a new information in bill PDF
Post by: LeG3nDz on October 29, 2013, 13:00:05 PM
Hi reinhold,

I would like add 2 informations on the header, it's about my society :) Not in the content. And i can't add new input on the backoffice for add my information too see in the header :(

Do you know the file to edit ?

Thank you,
Title: Re: Add a new information in bill PDF
Post by: reinhold on October 29, 2013, 13:07:51 PM
The latest VM version (I think from 2.0.20 on) implements configuring the invoice headers/footers in the backend (section "Shop", entry "Shop", tab "Invoices")
Title: Re: Add a new information in bill PDF
Post by: LeG3nDz on October 29, 2013, 13:19:13 PM
Re,

I've v2.0.6 and if i update my version, bug .. so for the moment, i stay with this version. I think edit the file PHP for add "manualy" the information, do you know the file to edit ?

Thank you,
Title: Re: Add a new information in bill PDF
Post by: jenkinhill on October 29, 2013, 15:54:57 PM
Be aware that VirtueMart versions before 2.0.22c have known critical security issues which have already been exploited by hackers. Current version is VM2.0.24

See the note in the security update announcement about template overrides:  http://virtuemart.net/news/latest-news/446-important-security-release-vm-team-at-joomladay-germany
And see http://forum.virtuemart.net/index.php?topic=118683
Title: Re: Add a new information in bill PDF
Post by: LeG3nDz on October 29, 2013, 16:56:10 PM
Hello jenkinhill :)

Thank you for your post and the link, i think up my version of VM :)

But before, do you know what file i do modif about the generator pdf ?
Title: Re: Add a new information in bill PDF
Post by: jenkinhill on October 29, 2013, 17:09:39 PM
I don't have a version so old around any more - 2.0.6 must be at least 18 months old. But I'd guess that you need to look in components/com_virtuemart/views/invoice/tmpl/ and the file you proably need is invoice.php - unless you already have an override.
Title: Re: Add a new information in bill PDF
Post by: cathyhill on December 02, 2013, 03:59:12 AM
Quote from: LeG3nDz on October 29, 2013, 16:56:10 PM
Hello jenkinhill :)

Thank you for your post and the link, i think up my version of VM:)

But before, do you know what file i do modif about the generator pdf (http://www.rasteredge.com/dotnet-imaging/addon-pdf-document-generator/) for adding information to pdf (http://www.rasteredge.com/how-to/winforms-net-imaging/pdf-reading/)?

Sorry, what version of VM are you using?