Version Notes
Create account in extension page.
Download this release
Release Info
| Developer | Ronen |
| Extension | Camera_Malabi |
| Version | 1.0.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.3 to 1.0.4
app/code/local/Camera/Malabi/controllers/ProductController.php
CHANGED
|
@@ -10,8 +10,8 @@ class Camera_Malabi_ProductController extends Mage_Core_Controller_Front_Action
|
|
| 10 |
|
| 11 |
$email = $this->getRequest()->getParam('email');
|
| 12 |
try {
|
| 13 |
-
$datas = array('firstName' => '
|
| 14 |
-
'lastName' => '
|
| 15 |
'userEmail' => $email,
|
| 16 |
'userPassword' => 'mag' . rand(11112,99999),
|
| 17 |
'customerId' => '405',
|
| 10 |
|
| 11 |
$email = $this->getRequest()->getParam('email');
|
| 12 |
try {
|
| 13 |
+
$datas = array('firstName' => '',
|
| 14 |
+
'lastName' => '',
|
| 15 |
'userEmail' => $email,
|
| 16 |
'userPassword' => 'mag' . rand(11112,99999),
|
| 17 |
'customerId' => '405',
|
app/design/adminhtml/default/default/template/catalog/product/helper/gallery-new.phtml
CHANGED
|
@@ -129,19 +129,19 @@ $_block = $this;
|
|
| 129 |
console.log(transport.responseText);
|
| 130 |
var res = JSON.parse(transport.responseText);
|
| 131 |
if(res.status == "fail"){
|
| 132 |
-
if(res["subscription"] == "
|
| 133 |
Dialog.alert('<b>Welcome to Malabi</b> <br>To activate Malabi go to the "background remover by malabi" tag on the menu bar and press "Malabi activation"',
|
| 134 |
{
|
| 135 |
-
className: 'magento', width: 300, height:
|
| 136 |
ok: function (win) {
|
| 137 |
return true;
|
| 138 |
}
|
| 139 |
});
|
| 140 |
}
|
| 141 |
-
if(res["subscription"] == "
|
| 142 |
Dialog.alert('<b>Purchase Malabi subscription</b> <br>To continue working with Malabi go to the "background remover by malabi" tag on the menu bar and press "subscription information" - "Subscribe"',
|
| 143 |
{
|
| 144 |
-
className: 'magento', width: 300, height:
|
| 145 |
ok: function (win) {
|
| 146 |
return true;
|
| 147 |
}
|
| 129 |
console.log(transport.responseText);
|
| 130 |
var res = JSON.parse(transport.responseText);
|
| 131 |
if(res.status == "fail"){
|
| 132 |
+
if(res["subscription"] == "not-available") {
|
| 133 |
Dialog.alert('<b>Welcome to Malabi</b> <br>To activate Malabi go to the "background remover by malabi" tag on the menu bar and press "Malabi activation"',
|
| 134 |
{
|
| 135 |
+
className: 'magento', width: 300, height: 150, okLabel: "close",
|
| 136 |
ok: function (win) {
|
| 137 |
return true;
|
| 138 |
}
|
| 139 |
});
|
| 140 |
}
|
| 141 |
+
if(res["subscription"] == "notactive") {
|
| 142 |
Dialog.alert('<b>Purchase Malabi subscription</b> <br>To continue working with Malabi go to the "background remover by malabi" tag on the menu bar and press "subscription information" - "Subscribe"',
|
| 143 |
{
|
| 144 |
+
className: 'magento', width: 300, height: 150, okLabel: "close",
|
| 145 |
ok: function (win) {
|
| 146 |
return true;
|
| 147 |
}
|
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>
|
|
@@ -45,8 +45,8 @@ Malabi’s enhanced images ensures a faster and more profitable sale!
|
|
| 45 |
<notes>Create account in extension page.</notes>
|
| 46 |
<authors><author><name>Ronen</name><user>Malabi</user><email>info@malabi.co</email></author></authors>
|
| 47 |
<date>2017-03-16</date>
|
| 48 |
-
<time>13:
|
| 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.4</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="https://www.malabi.co/eula">Malabi EULA and privacy policy</license>
|
| 7 |
<channel>community</channel>
|
| 45 |
<notes>Create account in extension page.</notes>
|
| 46 |
<authors><author><name>Ronen</name><user>Malabi</user><email>info@malabi.co</email></author></authors>
|
| 47 |
<date>2017-03-16</date>
|
| 48 |
+
<time>13:49:10</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="e643ca4f91fe90da27a067b2f29fe684"/></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="e51dbb328c912ec9799bd350248661f6"/></dir></dir></dir><dir name="malabi"><file name="urls.phtml" hash="1424652722710eaf4701974029f630f0"/></dir></dir></dir></dir></dir></target></contents>
|
| 50 |
<compatible/>
|
| 51 |
<dependencies><required><php><min>5.3.1</min><max>5.7.0</max></php></required></dependencies>
|
| 52 |
</package>
|
