VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: bryanearl on May 23, 2018, 21:32:13 PM

Title: Remove blank space at top of PDF invoice?
Post by: bryanearl on May 23, 2018, 21:32:13 PM
VirtueMart Version: 3.2.14
Joomla Version:  3.8.8

I have been customizing my PDF invoices, and they look great except one issue...

I cannot figure out how to remove the blank spaces that are below the header line and above the invoice information.

Anyone?
Title: Re: Remove blank space at top of PDF invoice?
Post by: jjk on June 04, 2018, 22:22:23 PM
In the 'Shop' Edit > 'Invoices/Emails' tab reduce the 'Contents Top Margin' (default is 45 mm) a little bit and check by clicking on the preview link (labled 'Here') if the value provided the required result. If you reduce it too much, it might hide the bottom line(s) of your header.
Title: Re: Remove blank space at top of PDF invoice?
Post by: bryanearl on June 04, 2018, 23:17:48 PM
Quote from: jjk on June 04, 2018, 22:22:23 PM
In the 'Shop' Edit > 'Invoices/Emails' tab reduce the 'Contents Top Margin' (default is 45 mm) a little bit and check by clicking on the preview link (labled 'Here') if the value provided the required result. If you reduce it too much, it might hide the bottom line(s) of your header.

Ahhhh, you rock, thank you. I assumed it was CSS driven and was unable to locate it.
Title: Re: Remove blank space at top of PDF invoice?
Post by: aftertaf on June 04, 2018, 23:48:32 PM
hi,
could you give me a tip on where to find the files to customise the pdf invoices?
i've been trying to find for a while now...
david
Title: Re: Remove blank space at top of PDF invoice?
Post by: bryanearl on June 05, 2018, 00:21:54 AM
Quote from: aftertaf on June 04, 2018, 23:48:32 PM
hi,
could you give me a tip on where to find the files to customise the pdf invoices?
i've been trying to find for a while now...
david

Override the following files and work with them to customize the PDF Invoice:
components/com_virtuemart/views/invoice/tmpl/invoice_items.php
components/com_virtuemart/views/invoice/tmpl/invoice_order.php


and override the following file and work with it to customize the email invoice:
components/com_virtuemart/views/invoice/tmpl/mail_html_pricelist.php

There are more files in that same folder you may want to customize, but those are the biggies.
Title: Re: Remove blank space at top of PDF invoice?
Post by: aftertaf on June 06, 2018, 23:00:03 PM
thank you so much : you saved me a lot of valuable time !!