News:

Looking for documentation? Take a look on our wiki

Main Menu

Pictures of articles not clickable

Started by ceesvandoorn, April 01, 2012, 13:31:14 PM

Previous topic - Next topic

ceesvandoorn

The pictures on the browsepage are not clickable, you need to click on the link (text) under the picture.
When you click on the picture it enlarges to screensize. How can I solve this.

The picture on the flypage is oke, but the thumbnails under the large picture are also not clickable so the first picture changes in the second one and so on.

I use joomla 2.5.3  / Virtuemart 2.01 and Gk template of eSport

I found perhaps a solution but as a beginner in Virtuemart I haven't an idea where to change this.

Thanks!

<?php 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="browseProductImage" border="0"',false)); ?>

carsten888

brilliant! I know the location of the code, but was looking for the code, which you had. Isn't that just great the way internet brings people together  ;D

to make a template override, copy default.php from com_virtuemart/category/default.php
to
templates/templatename/html/com_virtuemart/category/default.php

then change line 230
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
change to
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="browseProductImage" border="0"',false));

Anirudh

OMG was searching for this tweak from ages, was search for blah..... blah........ but at last tried Pictures of articles not clickable. Moderator moved by posts twice without answering :(

Anyways... Virtuemart is a great gift internet has ever got

andrew.overlord

I'm using this alternative method:

<a class="product-read-details" href="<?php echo $product->link;?>" title='<?php echo $product->product_name;?>'>
    <img
    src='<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'.$product->images[0]->file_url_thumb?>'
    alt='<?php echo $product->images[0]->file_meta?>'
    title='<?php echo $product->images[0]->file_description?>'
    />         
</a>