magento_mobile_assistant_manager - Version 0.1.2

Version Notes

-Fixed minor bug with product details

Download this release

Release Info

Developer Biztech
Extension magento_mobile_assistant_manager
Version 0.1.2
Comparing to
See all releases


Code changes from version 0.1.1 to 0.1.2

app/code/local/Biztech/Mobileassistant/controllers/ProductController.php CHANGED
@@ -28,7 +28,7 @@
28
  {
29
  $product_data = Mage::getModel('catalog/product')->load($product->getId());
30
  $status = $product_data->getStatus();
31
- $qty = Mage::getModel('cataloginventory/stock_item')->load($product->getId())->getQty();
32
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
33
  if($qty == 0 || $product_data->getIsInStock() == 0){$qty = 'Out of Stock';}
34
  $product_list[] = array(
@@ -64,7 +64,7 @@
64
  $productId = $post_data['productid'];
65
  $product_data = Mage::getModel('catalog/product')->load($productId);
66
  $status = $product_data->getStatus();
67
- $qty = Mage::getModel('cataloginventory/stock_item')->load($product_data->getId())->getQty();
68
 
69
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
70
 
@@ -81,7 +81,7 @@
81
  foreach($associated_products as $associated_product)
82
  {
83
  $status = $associated_product->getStatus();
84
- $qty = Mage::getModel('cataloginventory/stock_item')->load($associated_product->getId())->getQty();
85
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
86
  if($qty == 0 || $associated_product->getIsInStock() == 0){$qty = 'Out of Stock';}
87
  $associated_products_details[] = array(
@@ -173,7 +173,7 @@
173
  {
174
  $product_data = Mage::getModel('catalog/product')->load($product->getId());
175
  $status = $product_data->getStatus();
176
- $qty = Mage::getModel('cataloginventory/stock_item')->load($product->getId())->getQty();
177
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
178
  if($qty == 0 || $product_data->getIsInStock() == 0){$qty = 'Out of Stock';}
179
  $product_list[] = array(
28
  {
29
  $product_data = Mage::getModel('catalog/product')->load($product->getId());
30
  $status = $product_data->getStatus();
31
+ $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product_data)->getQty();
32
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
33
  if($qty == 0 || $product_data->getIsInStock() == 0){$qty = 'Out of Stock';}
34
  $product_list[] = array(
64
  $productId = $post_data['productid'];
65
  $product_data = Mage::getModel('catalog/product')->load($productId);
66
  $status = $product_data->getStatus();
67
+ $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product_data)->getQty();
68
 
69
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
70
 
81
  foreach($associated_products as $associated_product)
82
  {
83
  $status = $associated_product->getStatus();
84
+ $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($associated_product)->getQty();
85
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
86
  if($qty == 0 || $associated_product->getIsInStock() == 0){$qty = 'Out of Stock';}
87
  $associated_products_details[] = array(
173
  {
174
  $product_data = Mage::getModel('catalog/product')->load($product->getId());
175
  $status = $product_data->getStatus();
176
+ $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product_data)->getQty();
177
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
178
  if($qty == 0 || $product_data->getIsInStock() == 0){$qty = 'Out of Stock';}
179
  $product_list[] = array(
app/code/local/Biztech/Mobileassistant/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Biztech_Mobileassistant>
13
- <version>0.1.1</version>
14
  </Biztech_Mobileassistant>
15
  </modules>
16
  <frontend>
10
  <config>
11
  <modules>
12
  <Biztech_Mobileassistant>
13
+ <version>0.1.2</version>
14
  </Biztech_Mobileassistant>
15
  </modules>
16
  <frontend>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>magento_mobile_assistant_manager</name>
4
- <version>0.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>
@@ -25,11 +25,11 @@ To ensure smooth working of this extension you need to download this extension i
25
  Application Download Link:&#xD;
26
  https://itunes.apple.com/us/app/magentomobilemanager/id695074519?mt=8&amp;ign-mpt=uo%3D4&#xD;
27
  </description>
28
- <notes>-Solve push notification bug</notes>
29
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
30
- <date>2013-10-30</date>
31
- <time>11:42:00</time>
32
- <contents><target name="mageetc"><dir name="modules"><file name="Biztech_Mobileassistant.xml" hash="14d6d04686f97fab6371920fdf3baf7e"/></dir></target><target name="magelocal"><dir name="Biztech"><dir name="Mobileassistant"><dir name="Helper"><file name="Data.php" hash="0d39e75ee4898ac28bb62a35f71066a2"/></dir><dir name="Model"><dir name="Mobileassistant"><file name="Api.php" hash="ef403d19cf7ca3245192539de4b21632"/></dir><file name="Mobileassistant.php" hash="3f221d0fa184e94ec3004bb0256abbf3"/><dir name="Mysql4"><dir name="Mobileassistant"><file name="Collection.php" hash="373ce57310145f3d007952e8c7beffbf"/></dir><file name="Mobileassistant.php" hash="3ef12554d281a2fa7ef47943763be76d"/></dir><file name="Observer.php" hash="ed728de9fa2dbac9dfe976b4821c3865"/></dir><dir name="controllers"><file name="CustomerController.php" hash="e64dea09069dc4a69c2981c5aad4c64c"/><file name="DashboardController.php" hash="d5c9f6c0686ae25966af73e51fcb4c04"/><file name="IndexController.php" hash="3cd73cb5c50dde854b2f6c18986df455"/><file name="OrderController.php" hash="60ee4ece453aa5cd57a15bd000c7478b"/><file name="ProductController.php" hash="8bc40724a410d1e2911ccde5b61f8e8f"/></dir><dir name="etc"><file name="api.xml" hash="f7d93508ce53982484f0d1f9ab3a17cd"/><file name="config.xml" hash="b454807c3c268f246b47560e94d103f6"/><file name="system.xml" hash="5aeda6044c3ae5e44c51db392f5e0ddc"/></dir><dir name="sql"><dir name="mobileassistant_setup"><file name="mysql4-install-0.1.0.php" hash="c25eff9c480cc82b6edfaef1e87e27a7"/></dir></dir></dir></dir></target><target name="mage"><dir name="lib"><dir name="mobileassistant"><file name="ck.pem" hash="100e9fb152a99cf2d2499e781d4a4b92"/></dir></dir></target></contents>
33
  <compatible/>
34
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
35
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>magento_mobile_assistant_manager</name>
4
+ <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
25
  Application Download Link:&#xD;
26
  https://itunes.apple.com/us/app/magentomobilemanager/id695074519?mt=8&amp;ign-mpt=uo%3D4&#xD;
27
  </description>
28
+ <notes>-Fixed minor bug with product details</notes>
29
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
30
+ <date>2013-11-06</date>
31
+ <time>11:28:13</time>
32
+ <contents><target name="mageetc"><dir name="modules"><file name="Biztech_Mobileassistant.xml" hash="14d6d04686f97fab6371920fdf3baf7e"/></dir></target><target name="magelocal"><dir name="Biztech"><dir name="Mobileassistant"><dir name="Helper"><file name="Data.php" hash="0d39e75ee4898ac28bb62a35f71066a2"/></dir><dir name="Model"><dir name="Mobileassistant"><file name="Api.php" hash="ef403d19cf7ca3245192539de4b21632"/></dir><file name="Mobileassistant.php" hash="3f221d0fa184e94ec3004bb0256abbf3"/><dir name="Mysql4"><dir name="Mobileassistant"><file name="Collection.php" hash="373ce57310145f3d007952e8c7beffbf"/></dir><file name="Mobileassistant.php" hash="3ef12554d281a2fa7ef47943763be76d"/></dir><file name="Observer.php" hash="ed728de9fa2dbac9dfe976b4821c3865"/></dir><dir name="controllers"><file name="CustomerController.php" hash="e64dea09069dc4a69c2981c5aad4c64c"/><file name="DashboardController.php" hash="d5c9f6c0686ae25966af73e51fcb4c04"/><file name="IndexController.php" hash="3cd73cb5c50dde854b2f6c18986df455"/><file name="OrderController.php" hash="60ee4ece453aa5cd57a15bd000c7478b"/><file name="ProductController.php" hash="2329a664abc377b0f496b467a32369a2"/></dir><dir name="etc"><file name="api.xml" hash="f7d93508ce53982484f0d1f9ab3a17cd"/><file name="config.xml" hash="598d641ea35c35c3aab47d400fc1cc43"/><file name="system.xml" hash="5aeda6044c3ae5e44c51db392f5e0ddc"/></dir><dir name="sql"><dir name="mobileassistant_setup"><file name="mysql4-install-0.1.0.php" hash="c25eff9c480cc82b6edfaef1e87e27a7"/></dir></dir></dir></dir></target><target name="mage"><dir name="lib"><dir name="mobileassistant"><file name="ck.pem" hash="100e9fb152a99cf2d2499e781d4a4b92"/></dir></dir></target></contents>
33
  <compatible/>
34
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
35
  </package>