Page 1 of 2
hide elements in invoice?
Posted: 28 Jul 2008, 19:59
by matc
hi there - great extension, but I have a question on it:
how can I hide some information from the PDF? there is for example no need to show the ammount of "rest" if it is "0" and I also don´t need to show the "default interest" to the customer.
And another problem: the font overlays in the columns and in the rows (if the name of the article is too long), how can I avoid this (see attached picture)?
thank you so much...
Re: hide elements in invoice?
Posted: 29 Jul 2008, 11:59
by Jan
Hi, all changes must be done in the code:
administrator\components\com_virtuemart\pdf\delivery.pdf.php
administrator\components\com_virtuemart\pdf\phoca.tcpdf.php
you can hide there unnecessary items or change e.g. cell to multicell (tcpdf framework shold be known)
Jan
Re: hide elements in invoice?
Posted: 29 Jul 2008, 12:24
by matc
thank you very much for your reply - I´ll take a look at these files!
Is there a way to include automatic linebreaks for longer productnames?
Re: hide elements in invoice?
Posted: 29 Jul 2008, 12:53
by Jan
This should be made by multicell, see:
https://www.phoca.cz/documentation/index ... te-receipt
Point 2 (the using of multicell)
Jan
Re: hide elements in invoice?
Posted: 29 Jul 2008, 17:31
by matc
Thanks for the quick reply - I just copied the code from the FAQ and pasted it into the file but nothing changed!?
How can I tell the script to do a linebreak after xxx characters? Of course the script should go back from the position until it reaches a space in order to avoid breaking words...
I´m not a coder so any help would be really appreciated!

Re: hide elements in invoice?
Posted: 29 Jul 2008, 18:15
by matc
PS: I also didn´t manage to include product variation information like colors or size...

Re: hide elements in invoice?
Posted: 29 Jul 2008, 22:40
by Jan
Re: hide elements in invoice?
Posted: 03 Aug 2008, 20:40
by matc
how can I check if TCPDF is working correctly? the FAQ section is not very clear about how to add the product variation like colors, site etc. - would be great if you could help me with this, I´m sure that other users might be interested in something like this as well.
it´s really unbelieveable that a powerful tool like VM has no PDF invoice included...so keep up the great work!

Re: hide elements in invoice?
Posted: 03 Aug 2008, 21:45
by Jan
the FAQ section is not very clear about how to add -...
see BTW here:
viewtopic.php?f=1&t=1471&p=8146#p8122
I don't know VM perfectly, I only reworked the addon for 1.5 and added the PDF creating but I don't know where the product variation settings are
Jan
Re: hide elements in invoice?
Posted: 04 Aug 2008, 10:32
by matc
ok, I try to figure it out by myself and let you know as soon as I found a solution...!