-
- toman01

-
Total Posts: 92
Joined: 2008-03-07
|
I found the solution. Simply replace the content in template/catalog/product/view/media.phtml with:
<?php $_product = $this->getProduct() ?> <?php if (count($this->getGalleryImages()) > 0): ?> <div class="more-views"> <h4><?php echo $this->__('Sample Images') ?></h4>
<?php $counter = 0; foreach ($this->getGalleryImages() as $_image) { if ($counter % 2 == 0) { $class =1; } else { $class=2; } $counter++; ?> <div <?php echo 'class="gal-pic' . $class . '"'; ?>> <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image); ?>', 'gallery', 'scrollbars=yes,width=300,height=300,resizable=yes');return false;" > <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->directResize(140, 300, 1); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()); ?>" title="<?php echo $this->htmlEscape($_image->getLabel()); ?>" /></a></div>
<?php } ?></div><?php endif; ?>
Of course you can further customize it to your needs.
|