Version Notes
1)To have a better view of zoom functionality you need to upload image equal or greater than 800*800 pixels
2)template/catalog/product/view/media.phtml file will be ignored and the one in the extension will be used for the zoom function to work on the product page. So if you have customized your media.phtml file, you will need to copy your custom code and paste it in this "new" file located at /design/frontend/default/default/template/zoom/media.phtml. For help, please get in touch with us at magento@cueblocks.com
3)This extension will work for simple,configurable,bundled,virtual and grouped products.
Download this release
Release Info
Developer | Magento Core Team |
Extension | CueBlocks_Zoom |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.3
- app/code/community/JM/Zoom/Helper/Data.php +2 -2
- app/code/community/JM/Zoom/etc/config.xml +2 -2
- app/code/community/JM/readme.txt +3 -3
- app/design/frontend/default/default/layout/zoom.xml +2 -2
- app/design/frontend/default/default/template/zoom/media.phtml +9 -7
- app/etc/modules/JM_Zoom.xml +2 -2
- js/jquery/Cuejqzoom.js +23 -20
- package.xml +4 -4
app/code/community/JM/Zoom/Helper/Data.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
*
|
4 |
-
* Package :- CueBlocks_Zoom-1.
|
5 |
-
* Version :- 1.
|
6 |
* Edition :- Community
|
7 |
* Developed By :- CueBlocks.com
|
8 |
*
|
1 |
<?php
|
2 |
/**
|
3 |
*
|
4 |
+
* Package :- CueBlocks_Zoom-1.3.tgz
|
5 |
+
* Version :- 1.3
|
6 |
* Edition :- Community
|
7 |
* Developed By :- CueBlocks.com
|
8 |
*
|
app/code/community/JM/Zoom/etc/config.xml
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
-
* Package :- CueBlocks_Zoom-1.
|
6 |
-
* Version :- 1.
|
7 |
* Edition :- Community
|
8 |
* Developed By :- CueBlocks.com
|
9 |
*
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
+
* Package :- CueBlocks_Zoom-1.3.tgz
|
6 |
+
* Version :- 1.3
|
7 |
* Edition :- Community
|
8 |
* Developed By :- CueBlocks.com
|
9 |
*
|
app/code/community/JM/readme.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
-
* Package :- CueBlocks_Zoom-1.
|
3 |
-
* Version :- 1.
|
4 |
* Edition :- Community
|
5 |
* Developed By :- CueBlocks.com
|
6 |
*
|
@@ -10,4 +10,4 @@
|
|
10 |
|
11 |
2)template/catalog/product/view/media.phtml file will be ignored and the one in the extension will be used for the zoom function to work on the product page. So if you have customized your media.phtml file, you will need to copy your custom code and paste it in this "new" file located at /design/frontend/default/default/template/zoom/media.phtml. For help, please get in touch with us at magento@cueblocks.com
|
12 |
|
13 |
-
3)This extension will work for simple,configurable,bundled and grouped products.
|
1 |
/**
|
2 |
+
* Package :- CueBlocks_Zoom-1.3.tgz
|
3 |
+
* Version :- 1.3
|
4 |
* Edition :- Community
|
5 |
* Developed By :- CueBlocks.com
|
6 |
*
|
10 |
|
11 |
2)template/catalog/product/view/media.phtml file will be ignored and the one in the extension will be used for the zoom function to work on the product page. So if you have customized your media.phtml file, you will need to copy your custom code and paste it in this "new" file located at /design/frontend/default/default/template/zoom/media.phtml. For help, please get in touch with us at magento@cueblocks.com
|
12 |
|
13 |
+
3)This extension will work for simple,configurable,bundled,virtual and grouped products.
|
app/design/frontend/default/default/layout/zoom.xml
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
-
* Package :- CueBlocks_Zoom-1.
|
6 |
-
* Version :- 1.
|
7 |
* Edition :- Community
|
8 |
* Developed By :- CueBlocks.com
|
9 |
*
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
+
* Package :- CueBlocks_Zoom-1.3.tgz
|
6 |
+
* Version :- 1.3
|
7 |
* Edition :- Community
|
8 |
* Developed By :- CueBlocks.com
|
9 |
*
|
app/design/frontend/default/default/template/zoom/media.phtml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Package :- CueBlocks_Zoom-1.
|
4 |
-
* Version :- 1.
|
5 |
* Edition :- Community
|
6 |
* Developed By :- CueBlocks.com
|
7 |
*
|
@@ -45,7 +45,7 @@
|
|
45 |
// Find out image name from image URL
|
46 |
|
47 |
$img_name = ExtractImageName($this->helper('catalog/image')->init($this->getProduct(), 'image',$_image->getFile()));
|
48 |
-
$_img = '<a href="'.$this->helper('catalog/image')->init($this->getProduct(), 'image',$_image->getFile()).'" id="anchorproductImg'.$img_name.'"><img border="0" id="productImg'.$img_name.'" src="'.$this->helper('catalog/image')->init($this->getProduct(), 'image',$_image->getFile())->resize(
|
49 |
|
50 |
echo $_helper->productAttribute($this->getProduct(), $_img, 'image');
|
51 |
|
@@ -60,7 +60,7 @@
|
|
60 |
|
61 |
<?php else: ?>
|
62 |
<?php
|
63 |
-
$_img = '<img border="0" src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(
|
64 |
echo $_helper->productAttribute($_product, $_img, 'image')
|
65 |
?>
|
66 |
<?php endif; ?>
|
@@ -109,9 +109,9 @@ function ExtractImageName($fullImagePath)
|
|
109 |
|
110 |
var options = {
|
111 |
|
112 |
-
zoomWidth:
|
113 |
|
114 |
-
zoomHeight:
|
115 |
|
116 |
showEffect: 'show',
|
117 |
|
@@ -123,7 +123,9 @@ function ExtractImageName($fullImagePath)
|
|
123 |
|
124 |
zoomtype:'innerzoom',
|
125 |
|
126 |
-
showPreload: false
|
|
|
|
|
127 |
|
128 |
}
|
129 |
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Package :- CueBlocks_Zoom-1.3.tgz
|
4 |
+
* Version :- 1.3
|
5 |
* Edition :- Community
|
6 |
* Developed By :- CueBlocks.com
|
7 |
*
|
45 |
// Find out image name from image URL
|
46 |
|
47 |
$img_name = ExtractImageName($this->helper('catalog/image')->init($this->getProduct(), 'image',$_image->getFile()));
|
48 |
+
$_img = '<a href="'.$this->helper('catalog/image')->init($this->getProduct(), 'image',$_image->getFile()).'" id="anchorproductImg'.$img_name.'"><img border="0" id="productImg'.$img_name.'" src="'.$this->helper('catalog/image')->init($this->getProduct(), 'image',$_image->getFile())->resize(250).'" alt="'.$this->htmlEscape($_image->getLabel()).'" title="'.$this->htmlEscape($_image->getLabel()).'"/></a>';
|
49 |
|
50 |
echo $_helper->productAttribute($this->getProduct(), $_img, 'image');
|
51 |
|
60 |
|
61 |
<?php else: ?>
|
62 |
<?php
|
63 |
+
$_img = '<img border="0" src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(250).'" alt="'.$this->htmlEscape($_product->getImageLabel()).'" id="productImgDefault" />';
|
64 |
echo $_helper->productAttribute($_product, $_img, 'image')
|
65 |
?>
|
66 |
<?php endif; ?>
|
109 |
|
110 |
var options = {
|
111 |
|
112 |
+
zoomWidth: 250,
|
113 |
|
114 |
+
zoomHeight: 250,
|
115 |
|
116 |
showEffect: 'show',
|
117 |
|
123 |
|
124 |
zoomtype:'innerzoom',
|
125 |
|
126 |
+
showPreload: false,
|
127 |
+
|
128 |
+
yOffset: 70
|
129 |
|
130 |
}
|
131 |
|
app/etc/modules/JM_Zoom.xml
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
-
* Package :- CueBlocks_Zoom-1.
|
6 |
-
* Version :- 1.
|
7 |
* Edition :- Community
|
8 |
* Developed By :- CueBlocks.com
|
9 |
*
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
+
* Package :- CueBlocks_Zoom-1.3.tgz
|
6 |
+
* Version :- 1.3
|
7 |
* Edition :- Community
|
8 |
* Developed By :- CueBlocks.com
|
9 |
*
|
js/jquery/Cuejqzoom.js
CHANGED
@@ -1,38 +1,41 @@
|
|
1 |
-
/* :- CueBlocks_Zoom-1.
|
2 |
-
* Version :- 1.
|
3 |
* Edition :- Community
|
4 |
* Developed By :- CueBlocks.com
|
5 |
*
|
6 |
*/
|
7 |
-
|
8 |
// SWITCH MAIN IMAGE BASED ON MORE IMAGES ON MEDIA FILE
|
9 |
function switchmore(imagename){
|
10 |
jQuery("#imageShowcase a").hide();
|
11 |
jQuery("#productImg" + imagename).show();
|
12 |
-
jQuery("#anchorproductImg" + imagename).
|
13 |
var options = {
|
14 |
|
15 |
-
zoomWidth:
|
16 |
-
|
17 |
-
zoomHeight:
|
18 |
-
|
19 |
-
showEffect: 'show',
|
20 |
-
|
21 |
-
hideEffect: 'fadeout',
|
22 |
-
|
23 |
-
fadeoutSpeed: 'slow',
|
24 |
-
|
25 |
-
title: false,
|
26 |
-
|
|
|
|
|
|
|
27 |
yOffset: 70
|
28 |
|
29 |
}
|
30 |
|
31 |
-
|
32 |
-
|
33 |
jQuery("#anchorproductImg" + imagename).jqzoom(options);
|
34 |
-
|
35 |
-
|
36 |
|
37 |
}
|
38 |
|
1 |
+
/* :- CueBlocks_Zoom-1.3.tgz
|
2 |
+
* Version :- 1.3
|
3 |
* Edition :- Community
|
4 |
* Developed By :- CueBlocks.com
|
5 |
*
|
6 |
*/
|
7 |
+
var zoomDone = new Array();
|
8 |
// SWITCH MAIN IMAGE BASED ON MORE IMAGES ON MEDIA FILE
|
9 |
function switchmore(imagename){
|
10 |
jQuery("#imageShowcase a").hide();
|
11 |
jQuery("#productImg" + imagename).show();
|
12 |
+
jQuery("#anchorproductImg" + imagename).attr("style", "display:block");
|
13 |
var options = {
|
14 |
|
15 |
+
zoomWidth: 250,
|
16 |
+
|
17 |
+
zoomHeight: 250,
|
18 |
+
|
19 |
+
showEffect: 'show',
|
20 |
+
|
21 |
+
hideEffect: 'fadeout',
|
22 |
+
|
23 |
+
fadeoutSpeed: 'slow',
|
24 |
+
|
25 |
+
title: false,
|
26 |
+
|
27 |
+
zoomtype:'innerzoom',
|
28 |
+
|
29 |
+
|
30 |
yOffset: 70
|
31 |
|
32 |
}
|
33 |
|
34 |
+
if(!zoomDone.in_array(imagename))
|
35 |
+
{
|
36 |
jQuery("#anchorproductImg" + imagename).jqzoom(options);
|
37 |
+
zoomDone.push(imagename);
|
38 |
+
}
|
39 |
|
40 |
}
|
41 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CueBlocks_Zoom</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -14,9 +14,9 @@
|
|
14 |
|
15 |
3)This extension will work for simple,configurable,bundled,virtual and grouped products.</notes>
|
16 |
<authors><author><name>ekta puri</name><user>auto-converted</user><email>ekta.puri@cueblocks.com</email></author></authors>
|
17 |
-
<date>2010-12-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="zoom.xml" hash="
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CueBlocks_Zoom</name>
|
4 |
+
<version>1.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
14 |
|
15 |
3)This extension will work for simple,configurable,bundled,virtual and grouped products.</notes>
|
16 |
<authors><author><name>ekta puri</name><user>auto-converted</user><email>ekta.puri@cueblocks.com</email></author></authors>
|
17 |
+
<date>2010-12-23</date>
|
18 |
+
<time>05:54:32</time>
|
19 |
+
<contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="zoom.xml" hash="95cab45d9d19b648c048c9fc0c60e1a5"/></dir><dir name="template"><dir name="zoom"><file name="media.phtml" hash="295bc0799e0571a454386a2b5da92fad"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="JM"><dir name="Zoom"><dir name="etc"><file name="config.xml" hash="cd460dc66581f1b847cd34be57b7845e"/></dir><dir name="Helper"><file name="Data.php" hash="86204506dd1365b20bedbfbdc1e53e9a"/></dir></dir><file name="readme.txt" hash="1a4fc695feab47b2f7032bcb812e3945"/></dir></target><target name="mage"><dir name="js"><dir name="jquery"><file name="Cuejqzoom.js" hash="e5001c8a04393b15cf0fe7cb0ed0e19e"/><file name="jquery-1.3.2.min.js" hash="25e59325cb47d2ab5ea650d47f431a9c"/><file name="jquery.jqzoom1.0.1.js" hash="e15445b6384c0be0b55b6d9b3f873867"/></dir></dir><dir name="skin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="jqzoom.css" hash="6b12d033e477ead2050d9d5cd58d7185"/></dir><dir name="images"><file name="zoomloader.gif" hash="7b9776076d5fceef4993b55c9383dedd"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="JM_Zoom.xml" hash="517dbfc568739f627ac657cabe238bc5"/></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|