News:

Support the VirtueMart project and become a member

Main Menu

No Image gif not showing up.

Started by Softfocus, November 13, 2012, 18:58:47 PM

Previous topic - Next topic

Softfocus

Hi I have an site setup with vm2.
For some reason if a product does not have a image the noimage.gif does not show in fact nothing shows.
Any idea how to fix this? I would like the noimage.gif to show.

thanks!


Softfocus

Nvm, figured it out I had to change this:

<img class="featuredProductImage" src="<?php echo $product->images[0]->file_url_thumb; ?>" alt="" />

to this

<img class="featuredProductImage" src="<?php echo $product->images[0]->displayMediaThumb(); ?>" alt="" />

In my categories.