Magento product image switcher

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

It was made with default Magento theme. Enjoy.

Ivan Weiler

- Technical Educator and Consultant

Ivan is a Technical Educator and Consultant. He gained lots of experience managing some of the most complex Magento projects we had at Inchoo.

Read more posts by Ivan / Visit Ivan's profile


  1. hide the zoom option for product images with less resolution in magento


    first of all, sorry for disturbing you here.

    please visit this link :, you can see there is a zoom option on the products images

    if we upload smaller images as like here :

    the product image is not zooming properly

    so i want to hide the zooming option for images with less than 400 * 400 pixels.

    please help me to find some solution.

    thanks in advance

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.