Version Notes
Create account in extension page
Download this release
Release Info
Developer | Ronen |
Extension | Camera_Malabi |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
app/code/local/Camera/Malabi/controllers/ProductController.php
CHANGED
@@ -264,6 +264,7 @@ class Camera_Malabi_ProductController extends Mage_Core_Controller_Front_Action
|
|
264 |
[
|
265 |
'malabiFileLocation' => '/tmp/malabi_'.$imageTrackId.'.jpeg',
|
266 |
'resultImageURL' => $result['resultImageURL'],
|
|
|
267 |
'trackId' => $imageTrackId
|
268 |
]
|
269 |
);
|
264 |
[
|
265 |
'malabiFileLocation' => '/tmp/malabi_'.$imageTrackId.'.jpeg',
|
266 |
'resultImageURL' => $result['resultImageURL'],
|
267 |
+
'processingResultCode' => $result['processingResultCode'],
|
268 |
'trackId' => $imageTrackId
|
269 |
]
|
270 |
);
|
app/design/adminhtml/default/default/template/catalog/product/helper/gallery-new.phtml
CHANGED
@@ -149,10 +149,22 @@ $_block = $this;
|
|
149 |
}
|
150 |
|
151 |
} else {
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
}
|
157 |
}
|
158 |
});
|
149 |
}
|
150 |
|
151 |
} else {
|
152 |
+
|
153 |
+
if(res.resultImageURL != null){
|
154 |
+
$(selectElement).next().firstDescendant().src = res.resultImageURL;
|
155 |
+
$(selectElement).next().firstDescendant().setAttribute("data-trackId", res.trackId);
|
156 |
+
$(selectElement).next().setStyle({'display': "block"});
|
157 |
+
$(selectElement).setStyle({'display': "none"});
|
158 |
+
} else {
|
159 |
+
Dialog.alert('<b>Could not process image</b> <br>Try a diffrent image"',
|
160 |
+
{
|
161 |
+
className: 'magento', width: 300, height: 150, okLabel: "close",
|
162 |
+
ok: function (win) {
|
163 |
+
return true;
|
164 |
+
}
|
165 |
+
});
|
166 |
+
}
|
167 |
+
|
168 |
}
|
169 |
}
|
170 |
});
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Camera_Malabi</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.malabi.co/eula">Malabi EULA and privacy policy</license>
|
7 |
<channel>community</channel>
|
@@ -42,11 +42,12 @@ Malabi’s enhanced images ensures a faster and more profitable sale!
|
|
42 |

|
43 |
<br /> By using Malabi Background Remover you accept the terms of its <a href="http://www.malabi.co/eula">EULA and privacy policy</a>.
|
44 |
© Copyright ArtInCam Ltd. (2017). All rights reserved.</description>
|
45 |
-
<notes>Create account in extension page
|
|
|
46 |
<authors><author><name>Ronen</name><user>Malabi</user><email>info@malabi.co</email></author></authors>
|
47 |
-
<date>2017-03-
|
48 |
-
<time>
|
49 |
-
<contents><target name="magelocal"><dir name="Camera"><dir name="Malabi"><dir name="Block"><dir name="Adminhtml"><dir name="Productclick"><dir name="Edit"><file name="Form.php" hash="d123f3e614dbea83917283162163c713"/><dir name="Renderer"><file name="Urls.php" hash="dff3ec0ca9b46977f9544498b6ae8532"/></dir></dir><file name="Edit.php" hash="fa6562d8bb6ef549b4c585cfd55ee350"/></dir><file name="Productclick.php" hash="0b08e8a9e55910e35ec3fa00f10ff1f4"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2bc4e4b0706da3774cb7248c12d150c7"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Productclick"><file name="Collection.php" hash="b94110ec7a16a54e2b9e50724f83da47"/></dir><file name="Productclick.php" hash="890d56f493c01d964a7b629bf6a4e322"/></dir><file name="Observer.php" hash="4629e9d62d4648b27e550534b047276e"/><file name="Productclick.php" hash="ef0cf5873bf9947eb2aa45b3f50212ed"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ProductclickController.php" hash="f0d7345cb71b68deedf13964ce75582b"/></dir><file name="ProductController.php" hash="
|
50 |
<compatible/>
|
51 |
<dependencies><required><php><min>5.3.1</min><max>5.7.0</max></php></required></dependencies>
|
52 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Camera_Malabi</name>
|
4 |
+
<version>1.0.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.malabi.co/eula">Malabi EULA and privacy policy</license>
|
7 |
<channel>community</channel>
|
42 |

|
43 |
<br /> By using Malabi Background Remover you accept the terms of its <a href="http://www.malabi.co/eula">EULA and privacy policy</a>.
|
44 |
© Copyright ArtInCam Ltd. (2017). All rights reserved.</description>
|
45 |
+
<notes>Create account in extension page
|
46 |
+
</notes>
|
47 |
<authors><author><name>Ronen</name><user>Malabi</user><email>info@malabi.co</email></author></authors>
|
48 |
+
<date>2017-03-20</date>
|
49 |
+
<time>11:19:51</time>
|
50 |
+
<contents><target name="magelocal"><dir name="Camera"><dir name="Malabi"><dir name="Block"><dir name="Adminhtml"><dir name="Productclick"><dir name="Edit"><file name="Form.php" hash="d123f3e614dbea83917283162163c713"/><dir name="Renderer"><file name="Urls.php" hash="dff3ec0ca9b46977f9544498b6ae8532"/></dir></dir><file name="Edit.php" hash="fa6562d8bb6ef549b4c585cfd55ee350"/></dir><file name="Productclick.php" hash="0b08e8a9e55910e35ec3fa00f10ff1f4"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2bc4e4b0706da3774cb7248c12d150c7"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Productclick"><file name="Collection.php" hash="b94110ec7a16a54e2b9e50724f83da47"/></dir><file name="Productclick.php" hash="890d56f493c01d964a7b629bf6a4e322"/></dir><file name="Observer.php" hash="4629e9d62d4648b27e550534b047276e"/><file name="Productclick.php" hash="ef0cf5873bf9947eb2aa45b3f50212ed"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ProductclickController.php" hash="f0d7345cb71b68deedf13964ce75582b"/></dir><file name="ProductController.php" hash="e4d5e378a56e3d1319e051bec48a3483"/></dir><dir name="etc"><file name="config.xml" hash="c5f55d8a8842ffb53efdf64a045c6983"/></dir><dir name="sql"><dir name="productclick_setup"><file name="mysql4-install-0.1.0.php" hash="bdf82a0397e524ac47f20179bdd0f9d2"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Block"><dir name="Catalog"><dir name="Product"><dir name="Helper"><dir name="Form"><dir name="Gallery"><file name="Content.php" hash="214e148885166f36bf4126d11ebc1da8"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Camera_Malabi.xml" hash="da762d589eddd255b0a522081c2f958c"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="productclick.xml" hash="579ea5b43a32dfafaec53096c2ec292e"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="helper"><file name="gallery-new.phtml" hash="d01353a85ee382e3ab4e9557dcb3cb73"/></dir></dir></dir><dir name="malabi"><file name="urls.phtml" hash="1424652722710eaf4701974029f630f0"/></dir></dir></dir></dir></dir></target></contents>
|
51 |
<compatible/>
|
52 |
<dependencies><required><php><min>5.3.1</min><max>5.7.0</max></php></required></dependencies>
|
53 |
</package>
|