News:

Looking for documentation? Take a look on our wiki

Main Menu

Product image link problem when no image uploaded.

Started by tlwebdesign, June 27, 2013, 00:47:09 AM

Previous topic - Next topic

tlwebdesign

Hi Guys,

I seem to have a strange problem. on my website



Code in default_products.php:

<?php // Product Image
if ($product->images) {
echo JHTML::'link'JRoute::'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' $product->virtuemart_product_id '&virtuemart_category_id=' $product->virtuemart_category_id ), $product->images[0]->displayMediaThumb'class="featuredProductImage" border="0"',true,'href="'.$product->link.'"') );
}


Code in default.php (Category)

v class="product-images">
<?php /** @todo make image popup */
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'href="'.$product->link.'"');
?>

</div>


Is there some other place that handles the url for the default image seperately? Seems like it. but couldn't find anything.

Help greatly appreciated!

Regards

Tom