News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Add a new information in bill PDF

Started by LeG3nDz, October 29, 2013, 12:48:13 PM

Previous topic - Next topic

LeG3nDz

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 :)

reinhold

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.

LeG3nDz

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,

reinhold

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")

LeG3nDz

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,

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

LeG3nDz

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 ?

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

cathyhill

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 for adding information to pdf?

Sorry, what version of VM are you using?