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]
Please take a look at this post: https://forum.virtuemart.net/index.php?topic=101821.0
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
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.
I checked that link before posting my query. It did not help!
Can you summarize .
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
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.
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.
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.
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
@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]
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.
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 (http://www.rasteredge.com/how-to/vb-net-imaging/pdf-reading/) invoice.
Also I'm not sure which file should I edit the pdf (http://www.rasteredge.com/how-to/vb-net-imaging/pdf-processing/) 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