Version Notes
Fixed table prefix issue
Download this release
Release Info
Developer | AJAX-ZOOM |
Extension | AJAX_ZOOM |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
app/code/local/Ax/Zoom/Model/Ax360.php
CHANGED
@@ -134,7 +134,7 @@ class Ax_Zoom_Model_Ax360 extends Mage_Core_Model_Abstract
|
|
134 |
}
|
135 |
|
136 |
$json .= '}';
|
137 |
-
|
138 |
return $json;
|
139 |
}
|
140 |
|
134 |
}
|
135 |
|
136 |
$json .= '}';
|
137 |
+
$json = str_replace('\\n', '', $json);
|
138 |
return $json;
|
139 |
}
|
140 |
|
app/code/local/Ax/Zoom/controllers/AxzoomController.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/controllers/IndexController.php
|
4 |
* Copyright: Copyright (c) 2010-2016 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
-
* Version: 1.2.
|
7 |
-
* Date: 2016-
|
8 |
-
* Review: 2016-
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
@@ -162,16 +162,17 @@ class Ax_Zoom_AxzoomController extends Mage_Adminhtml_Controller_Action
|
|
162 |
$id_360 = $get->getParam('id_360');
|
163 |
|
164 |
$db = Mage::getSingleton('core/resource')->getConnection('core_write');
|
165 |
-
$
|
|
|
166 |
if ($check_crop_field){
|
167 |
$check_crop_field_fetch = $check_crop_field->fetchAll(PDO::FETCH_COLUMN);
|
168 |
// Update table
|
169 |
if (!in_array('crop', $check_crop_field_fetch)){
|
170 |
-
$db->query('ALTER TABLE `ajaxzoom360` ADD `crop` TEXT NOT NULL');
|
171 |
}
|
172 |
}
|
173 |
|
174 |
-
$row = $db->fetchAll('SELECT * FROM `ajaxzoom360` WHERE id_360 = '.(int)$id_360.' LIMIT 1');
|
175 |
if ($row[0]['crop']){
|
176 |
die(stripslashes($row[0]['crop']));
|
177 |
}else{
|
@@ -183,9 +184,9 @@ class Ax_Zoom_AxzoomController extends Mage_Adminhtml_Controller_Action
|
|
183 |
{
|
184 |
$json = $this->getRequest()->getPost('json');
|
185 |
$id_360 = Mage::app()->getRequest()->getParam('id_360');
|
186 |
-
|
187 |
$db = Mage::getSingleton('core/resource')->getConnection('core_write');
|
188 |
-
$query = 'UPDATE `ajaxzoom360` SET crop = \''.addslashes($json).'\' WHERE id_360 = '.(int)$id_360;
|
189 |
$result = $db->query($query);
|
190 |
|
191 |
die(Mage::helper('core')->jsonEncode(array(
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/controllers/IndexController.php
|
4 |
* Copyright: Copyright (c) 2010-2016 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
+
* Version: 1.2.2
|
7 |
+
* Date: 2016-08-03
|
8 |
+
* Review: 2016-08-03
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
162 |
$id_360 = $get->getParam('id_360');
|
163 |
|
164 |
$db = Mage::getSingleton('core/resource')->getConnection('core_write');
|
165 |
+
$db_prefix = (string)Mage::getConfig()->getTablePrefix();
|
166 |
+
$check_crop_field = $db->query('SHOW FIELDS FROM `'.$db_prefix.'ajaxzoom360`');
|
167 |
if ($check_crop_field){
|
168 |
$check_crop_field_fetch = $check_crop_field->fetchAll(PDO::FETCH_COLUMN);
|
169 |
// Update table
|
170 |
if (!in_array('crop', $check_crop_field_fetch)){
|
171 |
+
$db->query('ALTER TABLE `'.$db_prefix.'ajaxzoom360` ADD `crop` TEXT NOT NULL');
|
172 |
}
|
173 |
}
|
174 |
|
175 |
+
$row = $db->fetchAll('SELECT * FROM `'.$db_prefix.'ajaxzoom360` WHERE id_360 = '.(int)$id_360.' LIMIT 1');
|
176 |
if ($row[0]['crop']){
|
177 |
die(stripslashes($row[0]['crop']));
|
178 |
}else{
|
184 |
{
|
185 |
$json = $this->getRequest()->getPost('json');
|
186 |
$id_360 = Mage::app()->getRequest()->getParam('id_360');
|
187 |
+
$db_prefix = (string)Mage::getConfig()->getTablePrefix();
|
188 |
$db = Mage::getSingleton('core/resource')->getConnection('core_write');
|
189 |
+
$query = 'UPDATE `'.$db_prefix.'ajaxzoom360` SET crop = \''.addslashes($json).'\' WHERE id_360 = '.(int)$id_360;
|
190 |
$result = $db->query($query);
|
191 |
|
192 |
die(Mage::helper('core')->jsonEncode(array(
|
app/code/local/Ax/Zoom/etc/config.xml
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/config.xml
|
5 |
* Copyright: Copyright (c) 2010-2016 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
-
* Version: 1.2.
|
8 |
-
* Date: 2016-
|
9 |
-
* Review: 2016-
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
@@ -20,7 +20,7 @@
|
|
20 |
|
21 |
<modules>
|
22 |
<Ax_Zoom>
|
23 |
-
<version>1.2.
|
24 |
</Ax_Zoom>
|
25 |
</modules>
|
26 |
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/config.xml
|
5 |
* Copyright: Copyright (c) 2010-2016 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
+
* Version: 1.2.2
|
8 |
+
* Date: 2016-08-03
|
9 |
+
* Review: 2016-08-03
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
20 |
|
21 |
<modules>
|
22 |
<Ax_Zoom>
|
23 |
+
<version>1.2.2</version>
|
24 |
</Ax_Zoom>
|
25 |
</modules>
|
26 |
|
app/code/local/Ax/Zoom/etc/system.xml
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/system.xml
|
5 |
* Copyright: Copyright (c) 2010-2016 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
-
* Version: 1.2.
|
8 |
-
* Date: 2016-
|
9 |
-
* Review: 2016-
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/system.xml
|
5 |
* Copyright: Copyright (c) 2010-2016 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
+
* Version: 1.2.2
|
8 |
+
* Date: 2016-08-03
|
9 |
+
* Review: 2016-08-03
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
app/code/local/Ax/Zoom/sql/axzoom_setup/install-0.0.1.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/sql/axzoom_setup/install-0.0.1.php
|
4 |
* Copyright: Copyright (c) 2010-2016 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
-
* Version: 1.2.
|
7 |
-
* Date: 2016-
|
8 |
-
* Review: 2016-
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
@@ -16,12 +16,13 @@
|
|
16 |
|
17 |
//die('AJAX ZOOM module setup');
|
18 |
|
|
|
19 |
$installer = $this;
|
20 |
$installer->startSetup();
|
21 |
$installer->run("
|
22 |
-
CREATE TABLE IF NOT EXISTS `ajaxzoom360` (`id_360` int(11) NOT NULL AUTO_INCREMENT, `id_product` int(11) NOT NULL, `name` varchar(255) NOT NULL, `num` int(11) NOT NULL DEFAULT '1', `settings` text NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '0', `combinations` text NOT NULL, `crop` text NOT NULL, PRIMARY KEY (`id_360`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
|
23 |
-
CREATE TABLE IF NOT EXISTS `ajaxzoom360set` (`id_360set` int(11) NOT NULL AUTO_INCREMENT, `id_360` int(11) NOT NULL, `sort_order` int(11) NOT NULL, PRIMARY KEY (`id_360set`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
24 |
-
CREATE TABLE IF NOT EXISTS `ajaxzoomproducts` (`id_product` int(11) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
25 |
");
|
26 |
|
27 |
$installer->endSetup();
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/sql/axzoom_setup/install-0.0.1.php
|
4 |
* Copyright: Copyright (c) 2010-2016 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
+
* Version: 1.2.2
|
7 |
+
* Date: 2016-08-03
|
8 |
+
* Review: 2016-08-03
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
16 |
|
17 |
//die('AJAX ZOOM module setup');
|
18 |
|
19 |
+
$db_prefix = (string)Mage::getConfig()->getTablePrefix();
|
20 |
$installer = $this;
|
21 |
$installer->startSetup();
|
22 |
$installer->run("
|
23 |
+
CREATE TABLE IF NOT EXISTS `".$db_prefix."ajaxzoom360` (`id_360` int(11) NOT NULL AUTO_INCREMENT, `id_product` int(11) NOT NULL, `name` varchar(255) NOT NULL, `num` int(11) NOT NULL DEFAULT '1', `settings` text NOT NULL, `status` tinyint(1) NOT NULL DEFAULT '0', `combinations` text NOT NULL, `crop` text NOT NULL, `hotspot` text NOT NULL, PRIMARY KEY (`id_360`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
|
24 |
+
CREATE TABLE IF NOT EXISTS `".$db_prefix."ajaxzoom360set` (`id_360set` int(11) NOT NULL AUTO_INCREMENT, `id_360` int(11) NOT NULL, `sort_order` int(11) NOT NULL, PRIMARY KEY (`id_360set`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
25 |
+
CREATE TABLE IF NOT EXISTS `".$db_prefix."ajaxzoomproducts` (`id_product` int(11) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26 |
");
|
27 |
|
28 |
$installer->endSetup();
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AJAX_ZOOM</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.ajax-zoom.com/index.php?cid=download">Commercial, demoware</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Responsive product detail view mousehover zoom extension with optional 360° spins or multilevel 3D</summary>
|
10 |
<description>Responsive, jQuery based mouse over zoom for viewing high resolution product images and optionally 360° spins or multilevel 3D. Image pyramid / tiles view in responsive Fancybox or full screen on click. Upload or import 360° images over admin interface. Optional responsive thumbnails slider integration. Instant (on-the-fly) generation of all thumbnails. Works great on touch-enabled devices. Free to download, install and test.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>AJAX-ZOOM</name><user>vadus</user><email>support@ajax-zoom.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir><dir name="Ax"><dir><dir name="Zoom"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="License.php" hash="66127902dffd0fd9a530057907733d46"/></dir></dir></dir><dir name="Tabs"><file name="Tabid.php" hash="e1c649d4992cc73a6601c129677df806"/></dir><file name="Tabs.php" hash="0239c3a73cdeb05fab451a3219bea07f"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0f05da01383c450e5abb331f06bd3304"/><file name="Head.php" hash="8803a48e89902a3deec90a2145523830"/></dir><dir name="Model"><file name="Ax360.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.1</min><max>5.7.99</max></php><extension><name>ionCube Loader</name><min/><max/></extension><extension><name>zip</name><min/><max/></extension></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AJAX_ZOOM</name>
|
4 |
+
<version>1.2.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.ajax-zoom.com/index.php?cid=download">Commercial, demoware</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Responsive product detail view mousehover zoom extension with optional 360° spins or multilevel 3D</summary>
|
10 |
<description>Responsive, jQuery based mouse over zoom for viewing high resolution product images and optionally 360° spins or multilevel 3D. Image pyramid / tiles view in responsive Fancybox or full screen on click. Upload or import 360° images over admin interface. Optional responsive thumbnails slider integration. Instant (on-the-fly) generation of all thumbnails. Works great on touch-enabled devices. Free to download, install and test.</description>
|
11 |
+
<notes>Fixed table prefix issue</notes>
|
12 |
<authors><author><name>AJAX-ZOOM</name><user>vadus</user><email>support@ajax-zoom.com</email></author></authors>
|
13 |
+
<date>2016-08-03</date>
|
14 |
+
<time>13:19:03</time>
|
15 |
+
<contents><target name="magelocal"><dir><dir name="Ax"><dir><dir name="Zoom"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="License.php" hash="66127902dffd0fd9a530057907733d46"/></dir></dir></dir><dir name="Tabs"><file name="Tabid.php" hash="e1c649d4992cc73a6601c129677df806"/></dir><file name="Tabs.php" hash="0239c3a73cdeb05fab451a3219bea07f"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0f05da01383c450e5abb331f06bd3304"/><file name="Head.php" hash="8803a48e89902a3deec90a2145523830"/></dir><dir name="Model"><file name="Ax360.php" hash="72963127156dd97c4be7db4fabf74d43"/><file name="Ax360set.php" hash="57c4e9979d8ae6ee709921718060d151"/><file name="Axproducts.php" hash="9e6449b0229d6c83497094bed536f5f9"/><file name="Galleryposition.php" hash="9d8812051417db9e39c4c5a1412deb81"/><file name="Observer.php" hash="bfcd571e1e0fd7f80176d733e0fa2075"/><file name="Position.php" hash="4df583defefa6a8a4302b3b06846a38c"/><file name="Position4.php" hash="d5b23c5a5cc98abd4b1ed45e0b829298"/><dir name="Resource"><dir name="Ax360"><file name="Collection.php" hash="95ab28070ce834f8176c5457b2f920e8"/></dir><file name="Ax360.php" hash="ca8ac71cf2b5dc3e5660946122c22e12"/><dir name="Ax360set"><file name="Collection.php" hash="448603fb57c42f09bd5e044214ff6bee"/></dir><file name="Ax360set.php" hash="52cd74b4bd994d6812db71f8ece455a1"/><dir name="Axproducts"><file name="Collection.php" hash="89e23ff705c2c4c8de3a2b5eb617deda"/></dir><file name="Axproducts.php" hash="7ec4b5dc2f19cc440a7dd3e440eaa8d1"/></dir><file name="Words.php" hash="a246e42282ccd636a38873ea3ca70237"/><file name="Yesno.php" hash="71b1887dcb4161688c7d9f64e245ec1c"/></dir><dir name="controllers"><file name="AxzoomController.php" hash="f89af7b227fa26d89ab1d3b5f65e0f60"/></dir><dir name="etc"><file name="config.xml" hash="537ff8dce622ede95e6e1df899fc5dab"/><file name="system.xml" hash="07d3b73adb21420d24dd48f8b4bcf3a5"/></dir><dir name="sql"><dir name="axzoom_setup"><file name="install-0.0.1.php" hash="4a33be2f925ed44bef6cbe5674c959a6"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="axzoom.xml" hash="9987ad3d3421b896101314e336b3fe7f"/></dir><dir name="template"><dir name="axzoom"><file name="tab.phtml" hash="5dab2ed3a1d1358f5d8acf2385bdc134"/><file name="tab360-sets.phtml" hash="cdb3f6e72730d27b2cbfe1c35ded6641"/><file name="tab360-settings.phtml" hash="4149220ce003f75f19938ac0dcc5d52e"/><file name="tab360.phtml" hash="9fd8e285234c5698d3000b6271cf5e5f"/><file name="uploader.phtml" hash="ee293453776e3d9862bd3c5cf03be13e"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="axzoom.xml" hash="46f90ee9227387c6e0df207d9e75aed7"/></dir><dir name="template"><dir name="ax_zoom"><dir><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="cdbf8049e503797b779eab7bcee61443"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Ax_Zoom.xml" hash="b3ca0f170cfea52154fac0d92fc8390e"/></dir></dir></target><target name="magelocale"><dir><dir name="ru_RU"><file name="Ax_Zoom.csv" hash="ad9b1e1ad87a1187dbd076b43af97429"/></dir></dir></target><target name="mageweb"><dir><dir name="js"><dir name="axzoom"><file name="check_fallback.js" hash="23a0cf74d487426d7124209136608d69"/><file name="check_jquery.js" hash="e6a9ffca4d09e86a4b795c63b8732fc3"/><file name="check_jquery_admin.js" hash="6b9d9517795bb2cf8e63bad60cea7a48"/><file name="image_path.gif" hash="bf922e182e18a02613f26ca5eaa4c560"/><file name="jquery-1.11.3.min.js" hash="1c1e3d814cc7278f801463874463e504"/><file name="jquery-migrate-1.2.1.min.js" hash="eb05d8d73b5b13d8d84308a4751ece96"/><file name="jquery.fileupload-process.js" hash="0da6f8ef76956f6ce7842dcf8941d1fa"/><file name="jquery.fileupload-validate.js" hash="561d450d59e39724999629cae64cd80e"/><file name="jquery.fileupload.js" hash="d4b3a5c4f6e69185727cfe98f17f0239"/><file name="jquery.livequery.htc" hash="6fddf8d185aa26ca790c9f435fee8bad"/><file name="jquery.livequery.min.js" hash="295403b41c10cc54df7c580e269088ca"/><file name="jquery.ui.widget.min.js" hash="2425a542e6dde093dd85ac0b5adc0141"/><file name="lic.php" hash="284821bf8557dfaa6a3c07d85ddfc13d"/><file name="no_image-100x100.jpg" hash="ebbaa789d1a5e5b1bb6fdb9ccd683aa2"/><dir><dir name="pic"><file name="readme.txt" hash="763fdb72282a84d27d9a6c93e014775a"/></dir><dir name="preview"><file name="cropeditor.php" hash="41c8c7469a6be545fc43af154f4ceb9c"/><file name="index.php" hash="c304cfb13785e145e95d5f21cc95bd12"/><file name="preview.php" hash="c3e25a397b2fa733945611a9afc17d3d"/></dir><dir name="tmp"><file name="readme.txt" hash="b17a61b9642c5d472107ab7023c5c880"/></dir><dir name="zip"><file name="readme.txt" hash="2134ad018dd3da577df745a04d22899f"/><file name=".htaccess" hash="209634bb0238704c4874c35d615ae59e"/></dir></dir><file name="zoomConfigCustomAZ.inc.php" hash="b120374793d953ae1bfb49accc3e4733"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.1</min><max>5.7.99</max></php><extension><name>ionCube Loader</name><min/><max/></extension><extension><name>zip</name><min/><max/></extension></required></dependencies>
|
18 |
</package>
|