VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Kuubs on October 06, 2020, 16:11:39 PM

Title: Invoice per product
Post by: Kuubs on October 06, 2020, 16:11:39 PM
Hello,

Is it possible to have per product ordered a new page of invoice in the PDF?

so if I order 2 products, I get 2 pages in my invoice PDF?
Title: Re: Invoice per product
Post by: AH on October 07, 2020, 08:54:42 AM
You could try and override the invoice_items template

This might work (sometimes PDF does not play nice with divs though)

Find this:

Quoteforeach($this->orderDetails['items'] as $item) {

And at the end of the "for loop" add a page break.

Quoteecho '<div style="page-break-after: always;"></div>';