CorlleteLab_Imagezoom - Version 0.1.7

Version Notes

- Added support for 1.4+

Download this release

Release Info

Developer Magento Core Team
Extension CorlleteLab_Imagezoom
Version 0.1.7
Comparing to
See all releases


Code changes from version 0.1.6 to 0.1.7

app/code/community/CorlleteLab/Imagezoom/controllers/ProductController.php DELETED
@@ -1,51 +0,0 @@
1
- <?php
2
- /**
3
- * CorlleteLab
4
- *
5
- * Imagezoom extension
6
- *
7
- * @category CorlleteLab
8
- * @package CorlleteLab_Imagezoom
9
- * @copyright Copyright (c) 2011 Corllete Ltd. (http://www.clabteam.com/)
10
- * @author CorlleteLab Dev Team <office@clabteam.com>
11
- */
12
-
13
- /**
14
- * Override Mage_Catalog_ProductController controller
15
- */
16
-
17
- require_once("Mage/Catalog/controllers/ProductController.php");
18
-
19
- class CorlleteLab_Imagezoom_ProductController extends Mage_Core_Controller_Front_Action
20
- {
21
- public function viewAction()
22
- {
23
- // Get initial data from request
24
- $categoryId = (int) $this->getRequest()->getParam('category', false);
25
- $productId = (int) $this->getRequest()->getParam('id');
26
- $specifyOptions = $this->getRequest()->getParam('options');
27
-
28
- // Prepare helper and params
29
- $viewHelper = Mage::helper('catalog/product_view');
30
-
31
- $params = new Varien_Object();
32
- $params->setCategoryId($categoryId);
33
- $params->setSpecifyOptions($specifyOptions);
34
-
35
- // Render page
36
- try {
37
- $viewHelper->prepareAndRender($productId, $this, $params);
38
- } catch (Exception $e) {
39
- if ($e->getCode() == $viewHelper->ERR_NO_PRODUCT_LOADED) {
40
- if (isset($_GET['store']) && !$this->getResponse()->isRedirect()) {
41
- $this->_redirect('');
42
- } elseif (!$this->getResponse()->isRedirect()) {
43
- $this->_forward('noRoute');
44
- }
45
- } else {
46
- Mage::logException($e);
47
- $this->_forward('noRoute');
48
- }
49
- }
50
- }
51
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/CorlleteLab/Imagezoom/etc/config.xml CHANGED
@@ -46,8 +46,9 @@
46
  </blocks>
47
  </global>
48
  <frontend>
 
49
  <routers>
50
- <!--
51
  <imagezoom>
52
  <use>standard</use>
53
  <args>
@@ -55,15 +56,16 @@
55
  <frontName>imagezoom</frontName>
56
  </args>
57
  </imagezoom>
58
- -->
59
  <catalog>
60
  <args>
61
  <modules>
62
- <CorlleteLab_Imagezoom before="Mage_Catalog">CorlleteLab_Imagezoom</CorlleteLab_Imagezoom><!-- Tell Magento to call our custom module before the Mage/Catalog module -->
63
  </modules>
64
  </args>
65
  </catalog>
66
  </routers>
 
67
  <layout>
68
  <updates>
69
  <imagezoom>
46
  </blocks>
47
  </global>
48
  <frontend>
49
+ <!--
50
  <routers>
51
+
52
  <imagezoom>
53
  <use>standard</use>
54
  <args>
56
  <frontName>imagezoom</frontName>
57
  </args>
58
  </imagezoom>
59
+
60
  <catalog>
61
  <args>
62
  <modules>
63
+ <CorlleteLab_Imagezoom before="Mage_Catalog">CorlleteLab_Imagezoom</CorlleteLab_Imagezoom>
64
  </modules>
65
  </args>
66
  </catalog>
67
  </routers>
68
+ -->
69
  <layout>
70
  <updates>
71
  <imagezoom>
app/design/frontend/base/default/template/corlletelab/imagezoom/media.phtml CHANGED
@@ -53,6 +53,7 @@
53
  var assocIMG = { // Added
54
  <?php
55
  if(isset($img_arr) && count($img_arr) > 0) {
 
56
  foreach ($img_arr as $img) {
57
  if ($img['main_image']) {
58
  $dados[] = "small_image_".$img['id'].":'".$img['small_image']."'";
53
  var assocIMG = { // Added
54
  <?php
55
  if(isset($img_arr) && count($img_arr) > 0) {
56
+ $dados = array();
57
  foreach ($img_arr as $img) {
58
  if ($img['main_image']) {
59
  $dados[] = "small_image_".$img['id'].":'".$img['small_image']."'";
app/design/frontend/default/default/template/corlletelab/imagezoom/media.phtml CHANGED
@@ -53,6 +53,7 @@
53
  var assocIMG = { // Added
54
  <?php
55
  if(isset($img_arr) && count($img_arr) > 0) {
 
56
  foreach ($img_arr as $img) {
57
  if ($img['main_image']) {
58
  $dados[] = "small_image_".$img['id'].":'".$img['small_image']."'";
53
  var assocIMG = { // Added
54
  <?php
55
  if(isset($img_arr) && count($img_arr) > 0) {
56
+ $dados = array();
57
  foreach ($img_arr as $img) {
58
  if ($img['main_image']) {
59
  $dados[] = "small_image_".$img['id'].":'".$img['small_image']."'";
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>CorlleteLab_Imagezoom</name>
4
- <version>0.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Image Zoom for product images. Configurable and Grouped products are also supported.</summary>
10
  <description>Image Zoom for product images. Configurable and Grouped products are also supported.</description>
11
- <notes>- Fixed PHP 5.3.0 restrictions</notes>
12
- <authors><author><name>Desislav Yosifov</name><user>SonicE</user><email>deskin@probg.com</email></author></authors>
13
  <date>2011-09-18</date>
14
- <time>11:43:15</time>
15
- <contents><target name="magecommunity"><dir name="CorlleteLab"><dir name="Imagezoom"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="View.php" hash="49b559624494bf64ace997fbee9dfd52"/></dir></dir><dir name="Html"><file name="Head.php" hash="eb6a6cc918857cb6a49695946b3b0339"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2f5ac92c0dbdcd6aa16019e43d20a922"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><file name="Color.php" hash="6d9be20970ecbbc3be9f4e29e4130d06"/><dir name="Config"><dir name="Source"><file name="Position.php" hash="3202945d312df9a18977e38473a88a33"/><file name="Zoomeffect.php" hash="506343ccb9ef940fc577029ed5a0a47c"/></dir></dir><file name="Size.php" hash="4d27ab856f017b32626a19460b0984a5"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="a7ae6f32c671c0624779a1d6a188a885"/><file name="ProductController.php" hash="ab18a2d7f5d02d3b4dfc048dfb7fc619"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2774ef2b98fc8995157a97f1d05e0196"/><file name="config.xml" hash="c11ef43a443947a1ed5393176dd0299e"/><file name="system.xml" hash="ec749375fdf843e6715a453ae3971d60"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CorlleteLab_Imagezoom.xml" hash="be76b163aaf29b643d4a8c27ead5b5ee"/></dir></target><target name="magelocale"><dir name="en_US"><file name="CorlleteLab_ImageZoom.csv" hash="31a82c36cedcba9ebda3ab27490ab43e"/></dir></target><target name="mageweb"><dir name="js"><dir name="corlletelab"><dir name="imagezoom"><file name="cloud-zoom.1.0.2.js" hash="c1893fd33ca7e6329246342be8acc03d"/><file name="jquery-1.6.2.min.js" hash="a1a8cb16a060f6280a767187fd22e037"/><file name="product_override.js" hash="a7b9d9c1d0eec0937f6394f3b6b81dc0"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="imagezoom.xml" hash="7447d71df1a9c3cd48cd110d6dd2972c"/></dir><dir name="template"><dir name="corlletelab"><dir name="imagezoom"><file name="grouped.phtml" hash="cbb95504d0160bf8647ab1de975289ea"/><file name="media.phtml" hash="34997eb9bb0ce6381bdb7e13366f585e"/></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="imagezoom.xml" hash="7447d71df1a9c3cd48cd110d6dd2972c"/></dir><dir name="template"><dir name="corlletelab"><dir name="imagezoom"><file name="grouped.phtml" hash="cbb95504d0160bf8647ab1de975289ea"/><file name="media.phtml" hash="34997eb9bb0ce6381bdb7e13366f585e"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="corlletelab"><file name="imagezoom.css" hash="988e76756be393d452cd36a570a94c7d"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="css"><dir name="corlletelab"><file name="imagezoom.css" hash="8bb60e53a7b337fd33db683dfae3c59c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.2.0</min><max>5.4.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>CorlleteLab_Imagezoom</name>
4
+ <version>0.1.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Image Zoom for product images. Configurable and Grouped products are also supported.</summary>
10
  <description>Image Zoom for product images. Configurable and Grouped products are also supported.</description>
11
+ <notes>- Added support for 1.4+</notes>
12
+ <authors><author><name>Desislav Yosifov</name><user>auto-converted</user><email>deskin@probg.com</email></author></authors>
13
  <date>2011-09-18</date>
14
+ <time>12:38:30</time>
15
+ <contents><target name="magecommunity"><dir name="CorlleteLab"><dir name="Imagezoom"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="View.php" hash="49b559624494bf64ace997fbee9dfd52"/></dir></dir><dir name="Html"><file name="Head.php" hash="eb6a6cc918857cb6a49695946b3b0339"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2f5ac92c0dbdcd6aa16019e43d20a922"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Position.php" hash="3202945d312df9a18977e38473a88a33"/><file name="Zoomeffect.php" hash="506343ccb9ef940fc577029ed5a0a47c"/></dir></dir><file name="Color.php" hash="6d9be20970ecbbc3be9f4e29e4130d06"/><file name="Size.php" hash="4d27ab856f017b32626a19460b0984a5"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="a7ae6f32c671c0624779a1d6a188a885"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2774ef2b98fc8995157a97f1d05e0196"/><file name="config.xml" hash="55abb3b465f5fbcb1c8b3903fa8aab1d"/><file name="system.xml" hash="ec749375fdf843e6715a453ae3971d60"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CorlleteLab_Imagezoom.xml" hash="be76b163aaf29b643d4a8c27ead5b5ee"/></dir></target><target name="magelocale"><dir name="en_US"><file name="CorlleteLab_ImageZoom.csv" hash="31a82c36cedcba9ebda3ab27490ab43e"/></dir></target><target name="mageweb"><dir name="js"><dir name="corlletelab"><dir name="imagezoom"><file name="cloud-zoom.1.0.2.js" hash="c1893fd33ca7e6329246342be8acc03d"/><file name="jquery-1.6.2.min.js" hash="a1a8cb16a060f6280a767187fd22e037"/><file name="product_override.js" hash="a7b9d9c1d0eec0937f6394f3b6b81dc0"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="imagezoom.xml" hash="7447d71df1a9c3cd48cd110d6dd2972c"/></dir><dir name="template"><dir name="corlletelab"><dir name="imagezoom"><file name="grouped.phtml" hash="cbb95504d0160bf8647ab1de975289ea"/><file name="media.phtml" hash="4bd0f67dae00bd4031d0851c68103f74"/></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="imagezoom.xml" hash="7447d71df1a9c3cd48cd110d6dd2972c"/></dir><dir name="template"><dir name="corlletelab"><dir name="imagezoom"><file name="grouped.phtml" hash="cbb95504d0160bf8647ab1de975289ea"/><file name="media.phtml" hash="4bd0f67dae00bd4031d0851c68103f74"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="corlletelab"><file name="imagezoom.css" hash="988e76756be393d452cd36a570a94c7d"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="css"><dir name="corlletelab"><file name="imagezoom.css" hash="8bb60e53a7b337fd33db683dfae3c59c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies/>
18
  </package>