News:

Support the VirtueMart project and become a member

Main Menu

PDF Invoice layout

Started by hk, March 28, 2014, 12:49:50 PM

Previous topic - Next topic

hk

Hi,

I'm using Joomla 2.5 and Virtuemart 2.0.18c
I have used Template Overrides for invoice. The changes which I make in the override file are reflecting in the invoice. However, I could not find a solution to remove the extra blank spaces in the invoice.
Also I'm not sure which file should I edit for changing the footer of the invoice.
Sample invoice attached.
Can you please advise how can we remove the extra blank lines and edit Footer of invoice.

Thanks.


[attachment cleanup by admin]

JoomTut

#1
http://www.joomtut.com - How to Joomla!
Joomla! & VirtueMart Pro Support.
http://www.joomtut.com/joomla-clip.html - 14 steps to creating a Joomla! website with video clip tutorials

hk

Quote from: jtut on March 28, 2014, 13:40:21 PM
Please take a look at this post: http://forum.virtuemart.net/index.php?topic=93140.0
The link you provided is for Order status not for Invoice layout

JoomTut

Quote from: hk on March 28, 2014, 14:08:02 PM
The link you provided is for Order status not for Invoice layout

Sorry for the wrong link. I have fixed it. Please check again.
http://www.joomtut.com - How to Joomla!
Joomla! & VirtueMart Pro Support.
http://www.joomtut.com/joomla-clip.html - 14 steps to creating a Joomla! website with video clip tutorials

hk

I checked that link before posting my query. It did not help!
Can you summarize .

jenkinhill

hk the invoice templates are in components/com_virtuemart/views/invoice/tmpl and layout is controlled by a combination of these template files (using overrides when necessary) and the back end layout editor on the Shop/Invoices/Emails tab. However, you are using an old insecure version of virtueMart and may not have the extra invoice layout editor.
See https://forum.virtuemart.net/index.php?topic=118683.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

hk

Thanks Jenkin!
I agree, i'm using the old version. But it will take some time for me to upgrade as I need to test the various functionality of new version.
As a workaround, could you please let me know which files to be edited to remove the extra spaces in the invoice.

Thanks.

jenkinhill

I have no idea as I don't keep old insecure versions around, and 18c was over a year ago. You can probably do it by further editing the view template file overrides.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

hk

I edited various other fields in the Template Override, but did not find the right place to remove the extra spaces in the invoice.

Thanks.

StefanSTS

I saw your invoice, and there are a lot of spaces, but I have no idea, which spaces you are talking about.

So you might want to make some arrows into the PDF to clarify.

Or just do yourself a huge favor and mirror your site to a test subdomain and upgrade to at least 2.0.26d and solve the problem in this way.

Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

hk

@StefanSTS,
I have highlighted the blank spaces (in RED) which I need to get rid of..
1. Above the Store name
2. Between Store logo and address
3. Between Store address and Invoice number

[attachment cleanup by admin]

JoomTut

Maybe they are blank line information because you have not entered enough information in the custom fields. Check your code to find out the problem.
http://www.joomtut.com - How to Joomla!
Joomla! & VirtueMart Pro Support.
http://www.joomtut.com/joomla-clip.html - 14 steps to creating a Joomla! website with video clip tutorials

hongdida

Quote from: hk on March 28, 2014, 12:49:50 PM
Hi,

I'm using Joomla 2.5 and Virtuemart 2.0.18c
I have used Template Overrides for invoice. The changes which I make in the override file are reflecting in the invoice. However, I could not find a solution to remove the extra blank spaces in the pdf invoice.
Also I'm not sure which file should I edit the pdf for changing the footer of the invoice.
Sample invoice attached.
Can you please advise how can we remove the extra blank lines and edit Footer of invoice.

Thanks.

at this link, someone called caquita posts a php code for removing the spaces from pdf file, but still stuck. Maybe you can have a look and find some useful information. :)

https://forum.virtuemart.net/index.php?topic=101821.0