VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jagjot on April 03, 2013, 23:27:45 PM

Title: How to view Product as image on mouseover
Post by: jagjot on April 03, 2013, 23:27:45 PM
Folks,

I have hundreds of products in my virtuemart 2.0.6 on joomla 2.5.8... And I have to update 50 to 60 product prices.

But the problem is I have to go through every item and open the products and view the images and then update the prices. Wondering if I can make product name display images on mouseover (in administration area).

Thanks in advance...

Title: Re: How to view Product as image on mouseover
Post by: jagjot on April 04, 2013, 23:59:56 PM
Folks,

I found the php file which displays Product (List) in administrator page.

Path is : administrator/components/com_virtuemart/views/product/tmpl/default.php

code :


<!-- Media -->
<?php
        
/* Create URL */
        
$link JRoute::_('index.php?view=media&virtuemart_product_id='.$product->virtuemart_product_id.'&option=com_virtuemart');
?>

<td><?php echo JHTML::_('link'$link'<span class="icon-nofloat vmicon vmicon-16-media"></span> ('.$product->mediaitems.')''title ="'JText::_('COM_VIRTUEMART_MEDIA_MANAGER').'" ' );
?>
</td>


Now,
1. the question is how to get the image of my product image displayed? 
2. should display first image, if there are multiple images?
3. or the best option will be onmouseover display first image of the product?

looking forward to hear from you guys..