Version Notes
You can Now Track you all the Magento Backend Activity Using our Emizentech Magento Mobile Apps . IT has very great feature API to display All the Sales Activity with Graph . You can now easily see all the Magento Orders Listing , Product Listing, Customer Listing .
Features :
* Wonderful View of your Sales with Days Filter Graph
* Sales Listing View with Details.
* Customer Listing View with Details
* Product Listing View With Details
* Store view Selection For Dashboard,
* Multistore Support
Download this release
Release Info
Developer | Emizen Tech Private Limited |
Extension | emizenmobileadmin |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
app/code/local/EmizenTech/MobileAdmin/controllers/ProductsController.php
CHANGED
@@ -72,29 +72,6 @@ class EmizenTech_MobileAdmin_ProductsController extends Mage_Core_Controller_Fro
|
|
72 |
}
|
73 |
$options['categoriesList'] = $this->customCategoriesAction($parentId, $catLabel, $storeId);
|
74 |
|
75 |
-
// if(isset($post_data['url']) && isset($post_data['user']) && isset($post_data['password']))
|
76 |
-
// {
|
77 |
-
// // login api with username and password to get admin categories
|
78 |
-
// try
|
79 |
-
// {
|
80 |
-
// $url = $post_data['url'].'api/soap/?wsdl';
|
81 |
-
// $soap = new SoapClient($url); // load shop library
|
82 |
-
// $session_id = $soap->login($post_data['user'], $post_data['password']);
|
83 |
-
// }
|
84 |
-
// catch(SoapFault $fault)
|
85 |
-
// {
|
86 |
-
// $result['error'] = $fault->getMessage();
|
87 |
-
// $jsonData = Mage::helper('core')->jsonEncode($result); // encode array to json
|
88 |
-
// return Mage::app()->getResponse()->setBody($jsonData);
|
89 |
-
// }
|
90 |
-
|
91 |
-
// if($session_id)
|
92 |
-
// {
|
93 |
-
// $result = $soap->call($session_id,'catalog_category.tree');
|
94 |
-
// $options['caegoriesList'] = $result;
|
95 |
-
// }
|
96 |
-
// }
|
97 |
-
|
98 |
$isEnable = Mage::helper('core')->jsonEncode($options);
|
99 |
return Mage::app()->getResponse()->setBody($isEnable);
|
100 |
}
|
@@ -144,15 +121,17 @@ class EmizenTech_MobileAdmin_ProductsController extends Mage_Core_Controller_Fro
|
|
144 |
|
145 |
// Inventory
|
146 |
$product_qty = $data['qty'];
|
147 |
-
|
|
|
|
|
148 |
|
149 |
// Websites
|
150 |
$product_websites = $data['websites'];
|
151 |
-
|
152 |
|
153 |
// Categories
|
154 |
$product_categories = $data['categories'];
|
155 |
-
|
156 |
|
157 |
}
|
158 |
else
|
@@ -170,26 +149,32 @@ class EmizenTech_MobileAdmin_ProductsController extends Mage_Core_Controller_Fro
|
|
170 |
->setTypeId($product_type) // e.g. Mage_Catalog_Model_Product_Type::TYPE_SIMPLE
|
171 |
->setAttributeSetId($product_attribute_type) // default attribute set
|
172 |
->setSku($product_sku) // generate some random SKU
|
173 |
-
|
174 |
-
->setWebsiteIDs(array(1))
|
175 |
;
|
176 |
|
177 |
// make the product visible
|
178 |
$product
|
179 |
-
->setCategoryIds(
|
180 |
->setStatus($product_status)
|
181 |
->setUrlKey($product_url_key)
|
182 |
->setVisibility($product_visibility) // visible in catalog and search
|
183 |
->setCountryOfManufacture($product_manufacture)
|
184 |
;
|
|
|
185 |
// configure stock
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
$product->setStockData(array(
|
187 |
'use_config_manage_stock' => 1, // use global config ?
|
188 |
-
'manage_stock' =>
|
189 |
-
|
190 |
-
|
191 |
-
'is_in_stock' => 1,
|
192 |
-
'qty' => 1,
|
193 |
));
|
194 |
|
195 |
// optimize performance, tell Magento to not update indexes
|
@@ -276,6 +261,7 @@ class EmizenTech_MobileAdmin_ProductsController extends Mage_Core_Controller_Fro
|
|
276 |
|
277 |
}
|
278 |
Mage::log($data, null, "cart_android.log");
|
|
|
279 |
if ($doSave)
|
280 |
$product->save();
|
281 |
|
72 |
}
|
73 |
$options['categoriesList'] = $this->customCategoriesAction($parentId, $catLabel, $storeId);
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
$isEnable = Mage::helper('core')->jsonEncode($options);
|
76 |
return Mage::app()->getResponse()->setBody($isEnable);
|
77 |
}
|
121 |
|
122 |
// Inventory
|
123 |
$product_qty = $data['qty'];
|
124 |
+
//$product_stock_availability = $data['stock_availability'];
|
125 |
+
$product_manage_stock = $data['manage_stock'];
|
126 |
+
$product_is_in_stock = $data['is_in_stock'];
|
127 |
|
128 |
// Websites
|
129 |
$product_websites = $data['websites'];
|
130 |
+
//$product_websites_commas_value = implode(',', $product_websites);
|
131 |
|
132 |
// Categories
|
133 |
$product_categories = $data['categories'];
|
134 |
+
//$product_categories_commas_value = implode(',', $product_categories);
|
135 |
|
136 |
}
|
137 |
else
|
149 |
->setTypeId($product_type) // e.g. Mage_Catalog_Model_Product_Type::TYPE_SIMPLE
|
150 |
->setAttributeSetId($product_attribute_type) // default attribute set
|
151 |
->setSku($product_sku) // generate some random SKU
|
152 |
+
->setWebsiteIDs($product_websites)
|
|
|
153 |
;
|
154 |
|
155 |
// make the product visible
|
156 |
$product
|
157 |
+
->setCategoryIds($product_categories)
|
158 |
->setStatus($product_status)
|
159 |
->setUrlKey($product_url_key)
|
160 |
->setVisibility($product_visibility) // visible in catalog and search
|
161 |
->setCountryOfManufacture($product_manufacture)
|
162 |
;
|
163 |
+
|
164 |
// configure stock
|
165 |
+
if(isset($product_manage_stock))
|
166 |
+
{
|
167 |
+
$check_manage_stock = $product_manage_stock;
|
168 |
+
}
|
169 |
+
else
|
170 |
+
{
|
171 |
+
$check_manage_stock = 0;
|
172 |
+
}
|
173 |
$product->setStockData(array(
|
174 |
'use_config_manage_stock' => 1, // use global config ?
|
175 |
+
'manage_stock' => $check_manage_stock, // shoudl we manage stock or not?
|
176 |
+
'is_in_stock' => $product_is_in_stock,
|
177 |
+
'qty' => $product_qty,
|
|
|
|
|
178 |
));
|
179 |
|
180 |
// optimize performance, tell Magento to not update indexes
|
261 |
|
262 |
}
|
263 |
Mage::log($data, null, "cart_android.log");
|
264 |
+
// die('die');
|
265 |
if ($doSave)
|
266 |
$product->save();
|
267 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>emizenmobileadmin</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -28,9 +28,9 @@ Features :
|
|
28 |
* Store view Selection For Dashboard,
|
29 |
* Multistore Support</notes>
|
30 |
<authors><author><name>Emizen Tech Private Limited</name><user>emizen</user><email>info@emizentech.com</email></author></authors>
|
31 |
-
<date>2015-
|
32 |
-
<time>
|
33 |
-
<contents><target name="mageetc"><dir name="modules"><file name="EmizenTech_MobileAdmin.xml" hash="3d9904aebe449343c74004cd160e0b89"/></dir></target><target name="magelocal"><dir name="EmizenTech"><dir name="MobileAdmin"><dir><dir name="Block"><file name="Index.php" hash="76f331d88fb83bbe3135c494d084e4b7"/></dir><dir name="Helper"><file name="Data.php" hash="e9fe1d9c30704ce4e47861040eb7cf89"/></dir><dir name="Model"><file name="Api.php" hash="ab4aecf0be9b1d58967757bd703820b5"/><file name="Emizenmob.php" hash="0b2018dfc93072b5712d20ed676c8a30"/><dir name="Mysql4"><dir name="Emizenmob"><file name="Collection.php" hash="6b958aa1ddc5d96955dbdf4bdd7f6976"/></dir><file name="Emizenmob.php" hash="1285e93887bc67933f0bac32bed8b762"/></dir><file name="Observer.php" hash="4758f17b582bbb6d8745cf7b97fc0cc7"/></dir><dir name="controllers"><file name="CmsController.php" hash="88290b694e7cfb080aa58e9ec2046480"/><file name="ConfigurationController.php" hash="733600ecac25a8ce7a35183212aae417"/><file name="IndexController.php" hash="b46a458e5727429e24795273cd80a3c1"/><file name="ProductsController.php" hash="
|
34 |
<compatible/>
|
35 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
36 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>emizenmobileadmin</name>
|
4 |
+
<version>1.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
28 |
* Store view Selection For Dashboard,
|
29 |
* Multistore Support</notes>
|
30 |
<authors><author><name>Emizen Tech Private Limited</name><user>emizen</user><email>info@emizentech.com</email></author></authors>
|
31 |
+
<date>2015-09-25</date>
|
32 |
+
<time>11:31:54</time>
|
33 |
+
<contents><target name="mageetc"><dir name="modules"><file name="EmizenTech_MobileAdmin.xml" hash="3d9904aebe449343c74004cd160e0b89"/></dir></target><target name="magelocal"><dir name="EmizenTech"><dir name="MobileAdmin"><dir><dir name="Block"><file name="Index.php" hash="76f331d88fb83bbe3135c494d084e4b7"/></dir><dir name="Helper"><file name="Data.php" hash="e9fe1d9c30704ce4e47861040eb7cf89"/></dir><dir name="Model"><file name="Api.php" hash="ab4aecf0be9b1d58967757bd703820b5"/><file name="Emizenmob.php" hash="0b2018dfc93072b5712d20ed676c8a30"/><dir name="Mysql4"><dir name="Emizenmob"><file name="Collection.php" hash="6b958aa1ddc5d96955dbdf4bdd7f6976"/></dir><file name="Emizenmob.php" hash="1285e93887bc67933f0bac32bed8b762"/></dir><file name="Observer.php" hash="4758f17b582bbb6d8745cf7b97fc0cc7"/></dir><dir name="controllers"><file name="CmsController.php" hash="88290b694e7cfb080aa58e9ec2046480"/><file name="ConfigurationController.php" hash="733600ecac25a8ce7a35183212aae417"/><file name="IndexController.php" hash="b46a458e5727429e24795273cd80a3c1"/><file name="ProductsController.php" hash="de16d71111c67cbb4ab356092e83bf89"/><file name="ReportController.php" hash="f42a6f20ee66fbeb5f07c4e4170675d4"/><file name=".ConfigurationController.php.swp" hash="d82018d3f6f213b76d62489a9e149345"/></dir><dir name="etc"><file name="adminhtml.xml" hash="53c7b1eb3b23e2cf8b899309517a1c14"/><file name="api.xml" hash="c81e576c36f189af6dffefca1a746622"/><file name="config.xml" hash="db18388e630425e786e71b73a61844d4"/><file name="system.xml" hash="6f7e1b090d771a29e5d2d4777d7e4304"/></dir><dir name="sql"><dir name="mobileadmin_setup"><file name="mysql4-install-0.1.0.php" hash="3faa6e0c9146571ac842f5aeeedf961c"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mobileadmin"><file name="index.phtml" hash="395b5512423d31a9526f94e3d7dcc13a"/></dir></dir><dir name="layout"><file name="mobileadmin.xml" hash="bf0ff6a1d30dfeb5b159c72eff4311ae"/></dir></dir></dir></dir></target><target name="mage"><dir name="lib"><dir name="EmizenMobileAdmin"><file name="PushNotificationAppCertificateKey.pem" hash="546f3a014aab15d6765f80a1133cbedd"/></dir></dir></target></contents>
|
34 |
<compatible/>
|
35 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
36 |
</package>
|