HI,
I found a solution that i am sure it will work out just fine.
I put come PHP comment to let you understand the idea, so you can customize it later if you wish.
Here is your patch.
Open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php
Then find this lines:
<li class="flexible-zoom-additionalImages-slide" style="height:64px; width:72px;">
<a href="<?php echo $this->product->images[$ImageId]->file_url;?>" class="flexible-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo JURI::root(); ?><?php echo $this->product->images[$ImageId]->file_url;?>'"><img src="<?php echo $this->product->images[$ImageId]->file_url_thumb;?>" class="zoom-tiny-image-additional" style="max-height: 60;width: 60px;" /></a>
</li>
Replace these lines with these:
<li class="flexible-zoom-additionalImages-slide" style="height:64px; width:72px;">
<?php
// MEDIA TYPE CHECK -- STARTS
$ImageURLCheck = $this->product->images[$ImageId]->file_url_thumb;
if (empty($ImageURLCheck)) { // Check if the Thumbnail URL is esit, downloadable medias won't have thumbnail.
// If the media is downloadable (PDF,DOCX, ZIP etc..) then below line will be printed?>
<a href="<?php echo $this->product->images[$ImageId]->file_url;?>" target="_blank">
<?php
echo $image->displayMediaFull("",false,"");
?>
</a>
<?php } else {
// if the media is displayable (JPG, PNG, GIF etc..) then the below line will be printed?>
<a href="<?php echo $this->product->images[$ImageId]->file_url;?>" class="flexible-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo JURI::root(); ?><?php echo $this->product->images[$ImageId]->file_url;?>'"><img src="<?php echo $this->product->images[$ImageId]->file_url_thumb;?>" class="zoom-tiny-image-additional" style="max-height: 60;width: 60px;" /></a>
<?php }
// MEDIA TYPE CHECK -- ENDS ?>
</li>
further more, you can include this CSS rule below to re-size the PDF icons to make it fits inside the slider (to any CSS file)
#vm_display_image {
max-height:60px;
max-width:60px;
}
the result will be:
Attachment Pasted_Image_5_30_13_3_56_PM-2.gif not found
Regards.
Support & Development.