Magento Forum

mjZoom, Shadowbox, directResize and thumbnail popups…
 
JeffreyKarbowski
Jr. Member
 
Total Posts:  23
Joined:  2008-11-18
 

I am almost there… My issue when trying to implement mjZoom, Shadowbox and thumbnail popups in media.phtml is that when I rollover a thumbnail and it replaces the big image just fine, but, only the original image shows in the zoom and Shadowbox windows. I need to have the big image (no matter what it is,) be the image that calls the zoom and shadowbox, not just the original image. I hope this makes sense, I have been up for hours trying to figure it out.
Thank you in advance, here is the code:

media.phtml

<?php
    $_product 
$this->getProduct();
    
$_helper $this->helper('catalog/output');
?>

<a href="<?php echo $this->helper('catalog/image')->init($_product, 'image'); ?>" class="zoom" rel="shadowbox[rotation]" title="<?php echo $_product->getName();?>" >
<
class="product-image-zoom">
<?php
        $_img 
'<img id="image" src="'.$this->helper('catalog/image')->init($_product'image')->directResize(2802801).'"  alt="'.$this->htmlEscape($_product->getName()).'" />';
        echo 
$_helper->productAttribute($_product$_img'gallery')
    
?>
</p>
</
a>
<?php if (count($this->getGalleryImages()) > 1): ?>
<div class="more-views">
<
h4><?php echo $this->__('More Views'?></h4>
<
ul>
<?php foreach ($this->getGalleryImages() as $_image): ?>
<li> <a href="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->directResize(280, 280, 1); ?>" rel="shadowbox[rotation]" title="<?php echo $_product->getName();?>" onMouseOver="$('image').src = this.href; return false;"> <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->directResize(70, 70, 3); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"  /> </a> </li>
<?php endforeach; ?>
</ul>
</
div>
<?php endif; ?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
JeffreyKarbowski
Jr. Member
 
Total Posts:  23
Joined:  2008-11-18
 

Still looking for an answer…
You can see it in action here: http://www.viciousfun.com/index.php/blood-limited-edition-book-and-print-178-500-mark-ryden.html

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top