News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Vendor Image in PDF Invoice, Size problem

Started by Naesstrom, September 27, 2012, 13:56:04 PM

Previous topic - Next topic

Naesstrom

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:


but the image should look like:

(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?

K&K media production

I think you need to include the css in invoice.php like
JHTML::stylesheet('vmpanels.css', JURI::root().'components/com_virtuemart/assets/css/');

frytako

Same problem here. Could you finally solve it?