VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: soh on March 13, 2014, 20:07:12 PM

Title: Image name on product lightbox
Post by: soh on March 13, 2014, 20:07:12 PM
Hi!

How do i remove the title of the image that appears under the image on lightbox mode:

(http://s30.postimg.org/ooh23rp0x/Captura_de_Tela_2014_03_13_s_16_06_04.png)
Title: Re: Image name on product lightbox
Post by: Eugen S. on March 13, 2014, 20:16:02 PM
Please open:

/components/com_virtuemart/views/productdetails/tmpl/default_images.php

and remove line 27 where you see:

      "titlePosition"    : "inside",
Title: Re: Image name on product lightbox
Post by: soh on March 13, 2014, 21:41:07 PM
Hello! Thx for the help!

But now it looks like this:

(http://s27.postimg.org/w2ff3jnj7/Captura_de_Tela_2014_03_13_s_17_37_57.png)

Also, i`m using a template override provided by my template, here is the code with the change you requested:

defined('_JEXEC') or die('Restricted access');
vmJsApi::js( 'fancybox/jquery.fancybox-1.3.4.pack');
vmJsApi::css('jquery.fancybox-1.3.4');
$document = JFactory::getDocument ();
$imageJS = '
jQuery(document).ready(function() {
jQuery("a[rel=vm-additional-images]").fancybox({
"transitionIn" : "elastic",
"transitionOut" : "elastic"
});
});
';
$document->addScriptDeclaration ($imageJS);

if (!empty($this->product->images)) {
$image = $this->product->images[0];
?>
<div class="main-image">

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


<div class="clear"></div>
</div>
<?php
$count_images count ($this->product->images);
if ($count_images 1) {
?>

    <div class="additional-images">
<?php
for ($i 1$i $count_images$i++) {
$image $this->product->images[$i];
?>

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

            </div>
<?php
}
?>

        <div class="clear"></div>
    </div>
<?php
}
}
  
// Showing The Additional Images END ?>
Title: Re: Image name on product lightbox
Post by: Eugen S. on March 18, 2014, 10:32:14 AM
No idea without further testing...