I’ve seen a few posts regarding disabling or modifying the image zoom feature. Here’s what I did - I wanted the product image to show up, without the zoom, a certain size and allow users to view the full size image in a new window if they need more detail:
Original code in template/catalog/product/view/media.phtml:
Notice I removed the “product-image-zoom” class. I also removed the if/else since it didn’t seem necessary anyway. Now, the product image shows up no larger than 250x250 pixels. One click on the image will show the full size picture. This new code is nothing special, but I like having a pop-up window to show details rather than using the image zoom feature.
Now my small images do not pop up but rather get displayed in the larger image box...but if I double click on the large image it still pops up. Any help on disabling the pop up?
Here is the complete code for: app\design\frontend\default\blank\template\catalog\product\view\media.phtml
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category design_blank * @package Mage * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */
/** * Product media data template * * @see Mage_Catalog_Block_Product_View_Media */ ?>
Now my small images do not pop up but rather get displayed in the larger image box...but if I double click on the large image it still pops up. Any help on disabling the pop up?
what document/line is that in? I could not find it in my media.phtml file. See below.
I am trying to keep the zoom and remove the pop up. I want the images to display in the larger photo area.
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category design_blank * @package Mage * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */
/** * Product media data template * * @see Mage_Catalog_Block_Product_View_Media */ ?>
Ok, slight change to what I said above. I see that this already works.
But… I changed the popup to be the same as the large image (no header, navigation, etc...) and when I did that the next prev links disappeared.
So I guess my question now, is how do I make the popup box for the thumbnails looks the same as the popup for the large image, but include the next prev links?
I’ve seen a few posts regarding disabling or modifying the image zoom feature. Here’s what I did - I wanted the product image to show up, without the zoom, a certain size and allow users to view the full size image in a new window if they need more detail [...]
[...] Notice I removed the “product-image-zoom” class. I also removed the if/else since it didn’t seem necessary anyway. Now, the product image shows up no larger than 250x250 pixels. One click on the image will show the full size picture. This new code is nothing special, but I like having a pop-up window to show details rather than using the image zoom feature.
Your code worked perfectly, but I would like my image to open in the lightbox rather than the pop-up window. I have already installed the lightbox and my thumbnails open in the lightbox, but Im not sure how to get the main image to open in the lightbox.
Notice I removed the “product-image-zoom” class. I also removed the if/else since it didn’t seem necessary anyway. Now, the product image shows up no larger than 250x250 pixels. One click on the image will show the full size picture. This new code is nothing special, but I like having a pop-up window to show details rather than using the image zoom feature.
Hello,
This works great but the pop-up image is left. Is there anyway to center the popup image?
kullysupply - 14 October 2008 07:54 AM
I’ve seen a few posts regarding disabling or modifying the image zoom feature. Here’s what I did - I wanted the product image to show up, without the zoom, a certain size and allow users to view the full size image in a new window if they need more detail:
Original code in template/catalog/product/view/media.phtml:
Notice I removed the “product-image-zoom” class. I also removed the if/else since it didn’t seem necessary anyway. Now, the product image shows up no larger than 250x250 pixels. One click on the image will show the full size picture. This new code is nothing special, but I like having a pop-up window to show details rather than using the image zoom feature.