News:

Looking for documentation? Take a look on our wiki

Main Menu

Removing no-image.gif - any other solution than forking mediahandler?

Started by maxispin, September 14, 2016, 22:15:03 PM

Previous topic - Next topic

maxispin

Removing from /administrator/components/com_virtuemart/helpers/mediahandler.php

472               $file_url = $this->theme_url.'assets/images/vmgeneral/'.VmConfig::get('no_image_set');
473               $file_alt = vmText::_('COM_VIRTUEMART_NO_IMAGE_SET').' '.$this->file_description;

(annoying) No image- info is removed from categories & products pages.

I googled a lot, but couldn't figure out how via css or tmpl edit the same can be done. Any ideas for a better solution ?
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

Jumbo!

What exactly do you want to show in place of the default no-image.gif when no image is available? You can change the image in VM Config. You can use a blank/transparent image if you need.

maxispin

I don't want to have any picture IF there is no picture set. I know I could have zero file. Maybe that's the most stable solution.
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

PRO

where at?

this is not hard to do

product details
if (!empty($this->product->images)) {}

category
sublayouts/products

if (!empty($product->images)){echo $product->images[0]->displayMediaThumb('class="browseProductImage"', false);}

maxispin

VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9