VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: trimixdive on March 05, 2013, 23:27:27 PM

Title: Solved. Hiding file name of the image in product template
Post by: trimixdive on March 05, 2013, 23:27:27 PM
Can some one explain how to chance this code so that the file name of the image was not seeing in product template?
Plese see attached picture.

CODE:

      <?php // Product Main Image
      if (!empty($this->product->images[0])) { ?>
         <div class="main-image">
         <?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"',true,'class="modal"',true,true); ?> 
         </div>
      <?php } // Product Main Image END ?>


Joomla 2.5.9, Virtuemart 2.0.18a.

sSourcefile of code:
/templates/name_of_template/html/com_virtuemart/productdetails/default.php

Than you!






[attachment cleanup by admin]
Title: Re: Hiding file name of the image in product template
Post by: jenkinhill on March 06, 2013, 13:43:35 PM
Looks like you are using an override template for an old version of VirtueMart which need updating to current. Image display now uses its own template, default_images.php
Title: Solved Re: Hiding file name of the image in product template
Post by: trimixdive on March 12, 2013, 19:30:43 PM
Thanks, that helps and I solved a problem.
No more file name showed (removed from css).