How can I implement a zoom functionality on my content nodes? Like I need to put a zoom button next to my image and clicking it brings a floating zoomed image over the page like it's done here. I'm using Drupal Commerce.

I know that it can be done through Colorbox or Lightbox2 but these modules only function in Views (or not?). How can I put this functionality on my node (product page)?

I have themed my custom node.tpl.php template for the product display page.


I have achieved this on a node before using Fancybox by setting up an image preset for your thumb size that opens with Fancybox. For the image to link to Fancybox you need select a Fancybox image preset under display settings for full node within your content type.

Make sure you initialize the plugin before activation using the appropriate jQuery selector.

  • 1
    How did you use this module? I mean how can I set my image field to be activated? I have set the path to my page as node/* but it's not working.. – CobaltBabyBear May 14 '12 at 10:56
  • I have edited the above – piranah May 14 '12 at 11:33

Magic Thumb zooms images on a product page.

The Drupal module is here:


  • 1
    Please provide links form Drupal.org. – niksmac May 14 '12 at 10:04
  • 1
    Yeah. And the modules there don't even work. They crash my apache server! – CobaltBabyBear May 14 '12 at 10:24
  • @NikhilMohan, why does a module have to come from drupal.org? – mpdonadio May 14 '12 at 10:39
  • @MPD, Its because we can have a look at some familiar location for documentation, and of course its a matter of authorization. Suppose i have a module calles 'mynameis', in example.com/p/mynameis.zip. How can you provide documentation? And what if i have a doubt on line 568? ;) – niksmac May 14 '12 at 10:55
  • @NikhilMohan, there are plenty of modules on drupal.org that are of questionable quality, have no documentation, and are effectively abandoned. Being on drupal.org isn't a seal of approval, and not being there doesn't make its recommendation a wrong answer. – mpdonadio May 14 '12 at 12:35

I have used the Colorbox module to successfully achieve the desired effect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.