Author Topic: Invoice per product  (Read 153 times)

Huubs

  • Jr. Member
  • **
  • Posts: 262
Invoice per product
« 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?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3276
  • VirtueMart Version: 3.8.4
Re: Invoice per product
« Reply #1 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:

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

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

Quote
echo '<div style="page-break-after: always;"></div>';
regards
A

Joomla 3.9.20
php 7.3