VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Naesstrom on September 27, 2012, 13:56:04 PM

Title: Vendor Image in PDF Invoice, Size problem
Post by: Naesstrom on September 27, 2012, 13:56:04 PM
I'm working on a virtuemart installation and have solved basically everything but the image in the invoice by now!

The pdf looks like this:
(http://i.imgur.com/NMhy4.png)

but the image should look like:
(http://i.imgur.com/Xr91h.gif)
(gif since it had problems with png)

Ok, so what have I tried... well first I added this to the invoice.php template:
<?php echo $this->vendor->images[0]->displayMediaFull('style="width: 100px;"'false); ?>
instead of the old line that looked like:
<?php echo $this->vendor->images[0]->displayMediaThumb(''false); ?>
but that didn't work, ie. there was no change at all to the invoice so I moved on and noticed that the image was using the class vendor-image so I added this to Joomla's template CSS:
.vendor-image {
            Height:55px;
        }

yes, the image is 55px/101px in size so any of them would do it!

but... as you can see in the first image... no go... the image is still way to big!

So... where should I try next?
Title: Re: Vendor Image in PDF Invoice, Size problem
Post by: K&K media production on October 02, 2012, 01:39:56 AM
I think you need to include the css in invoice.php like
JHTML::stylesheet('vmpanels.css', JURI::root().'components/com_virtuemart/assets/css/');
Title: Re: Vendor Image in PDF Invoice, Size problem
Post by: frytako on January 03, 2013, 14:23:05 PM
Same problem here. Could you finally solve it?