VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: nickon2 on April 20, 2013, 22:36:27 PM

Title: add own image under product image in productdetail.php
Post by: nickon2 on April 20, 2013, 22:36:27 PM
Hi,

Using Vm2 and j2.5.9 I am trying to add a "zoom in image" under the product image in the productdetail.php template file
Looking around I found that I have to edit the default_images.php file around code:

<?php
        echo $image->displayMediaFull("",true,"rel='vm-additional-images'");
        ?>

So what I basicly need to do is to add image  ../images/magnify.gif underneeth the product image

I tried  echo $image->displayMediaFull("",true,"rel='vm-additional-images'") . ("<br/>"."<img src=\"http://path-to.com/common/images/magnify.gif\" border=\"0\"/>");

which add the image I need but zoom in works only when I click the product image but not the magify image.
Could anyone please help ?

Kind Regards