VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: hk on March 28, 2014, 12:49:50 PM

Title: PDF Invoice layout
Post by: 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 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]
Title: Re: PDF Invoice layout
Post by: JoomTut on March 28, 2014, 13:40:21 PM
Please take a look at this post: https://forum.virtuemart.net/index.php?topic=101821.0
Title: Re: PDF Invoice layout
Post by: hk on March 28, 2014, 14:08:02 PM
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
Title: Re: PDF Invoice layout
Post by: JoomTut on March 28, 2014, 14:31:57 PM
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.
Title: Re: PDF Invoice layout
Post by: hk on March 28, 2014, 14:37:18 PM
I checked that link before posting my query. It did not help!
Can you summarize .
Title: Re: PDF Invoice layout
Post by: jenkinhill on March 28, 2014, 15:19:59 PM
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
Title: Re: PDF Invoice layout
Post by: hk on March 28, 2014, 16:52:48 PM
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.
Title: Re: PDF Invoice layout
Post by: jenkinhill on March 28, 2014, 18:04:17 PM
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.
Title: Re: PDF Invoice layout
Post by: hk on March 29, 2014, 11:38:30 AM
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.
Title: Re: PDF Invoice layout
Post by: StefanSTS on March 29, 2014, 15:28:19 PM
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
Title: Re: PDF Invoice layout
Post by: hk on March 31, 2014, 14:07:07 PM
@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]
Title: Re: PDF Invoice layout
Post by: JoomTut on March 31, 2014, 18:08:42 PM
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.
Title: Re: PDF Invoice layout
Post by: hongdida on April 17, 2014, 08:45:54 AM
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