[how to] Adding a new page for invoice

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
korb
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 13 Oct 2008, 11:33

[how to] Adding a new page for invoice

Post by korb »

Hello again,

I was wandering if it is possible to add a new page (page 2) to the invoice like this:

-title: "DISCLAIMER"
-body text "This product is under the direct protection of Laws ............"
-ordered products:
Example
1. Product name SKU - Quantity 10 pieces
-Vendor Information

Danny
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48535
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [how to] Adding a new page for invoice

Post by Jan »

This can be done in these 2 files:

administrator\components\com_virtuemart\pdf\delivery.pdf.php
administrator\components\com_virtuemart\pdf\phoca.tcpdf.php

TCPDF skills are needed...


Jan
If you find Phoca extensions useful, please support the project
korb
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 13 Oct 2008, 11:33

Re: [how to] Adding a new page for invoice

Post by korb »

:lol: Hei Jan,
I know what files to modify, but just a little hint: where to write page 2, how to insert information there...
Thanks for the fast answer
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48535
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [how to] Adding a new page for invoice

Post by Jan »

this is not so easy, new sites are automatically created by TCPDF because e.g. of a lot of products (header and footer is still the same - on every page)...

So I think (I don't know it because I haven't try it yet), there must be some method in TCPDF which will add some new page with new information at the end of the document ....
If you find Phoca extensions useful, please support the project
Post Reply