I just wrote small javascript animation example for product images and thought someone may find it useful. It’s a fast way to replace default zoom functionality for the ones that don’t like it.
I’m actually trying to merge something like this with default zoom, but i’m not finished yet. Anyway, i left all javascript and styling in media.phtml file, so just download the file
and replace it with your own at
app/design/frontend/default/yourtheme/template/catalog/product/view/media.phtml

It was made with default Magento theme. Enjoy.


Good work Ivan. Is there a way to make a module of this? Can we create a module that tells Magento to replace certain block if the selected theme is “default”?
very great work!
Thanks
Can I see a sample of this ? do you have it installed on some demo store ?
Thanks for posting your work.
Works great!
Please let us know if you manage to include the zoom function
Thank you all. I don’t have any sample running live right now, sorry, i’m considering to setup one Magento playground/showcase site for things like this. I’ll probably pack it as module with custom block once i polished it some more
Hello,
Can we unite with this great Tuto lightbox?
Use lightbox for expansion.
If so how?
Thank you
I don’t understand what you’ve changed from reading this post. Have you added an “Active” state for the thumbs?
great work
Thanks for this good extension!
I test is with IE brower and found it’s looks not so smooth.It’s perfect when browsing with firefox.
works fine in IE8, but not work in FF
someone help me ?
Cool extension
How can I center the images, looks left justified…. Or how can I add padding to the left side?
How are you so awesome? It bothers me.
Is there a way to hide “more views” if you only have 1 of that product? Only show it if there are more than 1 picture?
@Traci:
The following line controls the count:
0): ?>
change zero to one.
It’s probably a stupid question but I don’t understand how do I add images to the product gallery? As far as I see I can only add one base image, one small image and one thumbnail… what am I missing?
Cool extension
This really works great. Thanks!
Is there a way to replace the pop-up windows with a fancybox or lightbox window on click?
Sorry about being greedy, but a fancybox would just make this perfect.
Thanks.
Thanks for that great mod, How can i make this automatically transiting?
I agree, Fancybox instead of popup window would be perfect
This works like a charm! Thanks for the great tip!
Working on Magento ver. 1.3.2.3
I’ve modified the code and now default zoom works
getProduct(); $_helper = $this->helper('catalog/output'); $_gallery = $this->getGalleryImages(); $_resize = 265; ?> .product-img-box .more-views li.slide-current a{ border:2px solid #aaa; } .product-img-box .product-image-zoom img { cursor: pointer; } #slide-loader{ visibility:hidden; position:absolute; top:auto; left:auto; right:2px; bottom:2px; } function slide(url,num,gallery){ if (typeof slide.loading == 'undefined') slide.loading = false; if(slide.loading) return false; var loader = new Image(); $(loader).observe('load', function(){ $('slide-loader').setStyle({'visibility':'hidden'}); $$('div.more-views li').each(function(el,i){ (i==num) ? el.addClassName('slide-current') : el.removeClassName('slide-current'); }); var dummy = new Element('img', { src: url }).setOpacity(0); new Insertion.After('image', dummy); new Effect.Opacity(dummy, { duration:.5, from:0, to:1.0 }); new Effect.Opacity($('image'), { duration:.5, from:1.0, to:0, afterFinish: function(){ $('image').writeAttribute('src',url).setOpacity(1).observe('click',function(e){ Event.stop(e); return false; }) dummy.remove(); slide.loading = false; } }); }); $('slide-loader').setStyle({'visibility':'visible'}); loader.src=url; slide.loading = true; return false; } <?php $_img = 'helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />'; echo $_helper->productAttribute($_product, $_img, 'image'); ?> <img id="slide-loader" src="getSkinUrl('images/opc-ajax-loader.gif') ?>" /> <img id="zoom_out" src="getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="__('Zoom Out') ?>" title="__('Zoom Out') ?>" class="btn-zoom-out" /> <img id="zoom_in" src="getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="__('Zoom In') ?>" title="__('Zoom In') ?>" class="btn-zoom-in" /> // 0): ?> __('More Views') ?> <a href="helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile()); ?>" onmouseover="slide('helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->resize($_resize) ?>',,'getGalleryUrl($_image) ?>'); return false;"><img src="helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" alt="htmlEscape($_image->getLabel()) ?>" title="htmlEscape($_image->getLabel()) ?>" />Can this extension be use in version1.4 of magento? Expression method of image url is not like as before, now is double brackets.
Just tested it, find the main image losted in the image window popup, good extension, but need update. thanks.
Do not work with any IE for me. Can anywone help?
Thanx a lot… thnx a lot
I’m using this one but I want to extend the functionality by changing the javscript popup with a ligthbox.. Can’t get it working.. Any guidance would be much appreciated..
does it work like flip book?
I want something like flipping book on flash, but it cost much
The method for default zoom does not seem to work,where is the javascript for the zoom ?
actually the zip file appears to be corrupt.. any chance in getting another or is it my zip utility…
Cool effect!
But is it somehow possible to open the main image as lightbox. (I managed it to open in it lightbox but the lightbox always starst with the first image)
this is great! thanks for sharing.
Thanks a lot for this! You’re blog is such a great resource.
Wow Great
You are genies,
Thank you so much.
very nice work!
Thanks