magento_mobile_assistant_manager - Version 0.1.5

Version Notes

-Design changes and enhancements
- Minor bug fixing

Download this release

Release Info

Developer Biztech
Extension magento_mobile_assistant_manager
Version 0.1.5
Comparing to
See all releases


Code changes from version 0.1.4 to 0.1.5

Files changed (24) hide show
  1. app/code/local/Biztech/All/Helper/Data.php +6 -0
  2. app/code/local/Biztech/All/Model/All.php +10 -0
  3. app/code/local/Biztech/All/Model/Mysql4/All.php +10 -0
  4. app/code/local/Biztech/All/Model/Mysql4/All/Collection.php +10 -0
  5. app/code/local/Biztech/All/Model/Source/Updates/Type.php +50 -0
  6. app/code/local/Biztech/All/Model/Status.php +15 -0
  7. app/code/local/Biztech/All/Model/Update.php +86 -0
  8. app/code/local/Biztech/All/etc/config.xml +147 -0
  9. app/code/local/Biztech/All/etc/system.xml +46 -0
  10. app/code/local/Biztech/Mobileassistant/Helper/Data.php +69 -12
  11. app/code/local/Biztech/Mobileassistant/Model/Mobileassistant/Api.php +5 -2
  12. app/code/local/Biztech/Mobileassistant/controllers/CustomerController.php +58 -51
  13. app/code/local/Biztech/Mobileassistant/controllers/IndexController.php +68 -2
  14. app/code/local/Biztech/Mobileassistant/controllers/OrderController.php +74 -18
  15. app/code/local/Biztech/Mobileassistant/controllers/ProductController.php +119 -104
  16. app/code/local/Biztech/Mobileassistant/etc/config.xml +1 -1
  17. app/code/local/Biztech/Mobileassistant/sql/mobileassistant_setup/mysql4-install-0.1.0.php +2 -0
  18. app/code/local/Biztech/Mobileassistant/sql/mobileassistant_setup/mysql4-upgrade-0.1.0-0.1.4.php +8 -0
  19. app/code/local/Biztech/Mobileassistant/sql/mobileassistant_setup/mysql4-upgrade-0.1.4-0.1.5.php +16 -0
  20. app/etc/modules/Biztech_All.xml +52 -0
  21. app/etc/modules/Biztech_Mobileassistant.xml +17 -17
  22. lib/mobileassistant/magentoPushDst.pem +0 -69
  23. lib/mobileassistant/pushcert.pem +138 -0
  24. package.xml +6 -5
app/code/local/Biztech/All/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Biztech_All_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/local/Biztech/All/Model/All.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Biztech_All_Model_All extends Mage_Core_Model_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('all/all');
9
+ }
10
+ }
app/code/local/Biztech/All/Model/Mysql4/All.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Biztech_All_Model_Mysql4_All extends Mage_Core_Model_Mysql4_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ // Note that the all_id refers to the key field in your database table.
8
+ $this->_init('all/all', 'all_id');
9
+ }
10
+ }
app/code/local/Biztech/All/Model/Mysql4/All/Collection.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Biztech_All_Model_Mysql4_All_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('all/all');
9
+ }
10
+ }
app/code/local/Biztech/All/Model/Source/Updates/Type.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the EULA
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ */
11
+
12
+ class Biztech_All_Model_Source_Updates_Type extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
13
+ {
14
+ const TYPE_UPDATE_RELEASE = 'UPDATE_RELEASE';
15
+ const TYPE_INSTALLED_UPDATE = 'INSTALLED_UPDATE';
16
+ public function toOptionArray()
17
+ {
18
+ return array(
19
+ array('value' => self::TYPE_INSTALLED_UPDATE, 'label' => Mage::helper('all')->__('My extensions updates')),
20
+ array('value' => self::TYPE_UPDATE_RELEASE, 'label' => Mage::helper('all')->__('All extensions updates')),
21
+ );
22
+ }
23
+
24
+ public function getAllOptions()
25
+ {
26
+ return $this->toOptionArray();
27
+ }
28
+
29
+
30
+ public function getLabel($value)
31
+ {
32
+ $options = $this->toOptionArray();
33
+ foreach ($options as $v) {
34
+ if ($v['value'] == $value) {
35
+ return $v['label'];
36
+ }
37
+ }
38
+ return '';
39
+ }
40
+
41
+ public function getGridOptions()
42
+ {
43
+ $items = $this->getAllOptions();
44
+ $out = array();
45
+ foreach ($items as $item) {
46
+ $out[$item['value']] = $item['label'];
47
+ }
48
+ return $out;
49
+ }
50
+ }
app/code/local/Biztech/All/Model/Status.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Biztech_All_Model_Status extends Varien_Object
4
+ {
5
+ const STATUS_ENABLED = 1;
6
+ const STATUS_DISABLED = 2;
7
+
8
+ static public function getOptionArray()
9
+ {
10
+ return array(
11
+ self::STATUS_ENABLED => Mage::helper('all')->__('Enabled'),
12
+ self::STATUS_DISABLED => Mage::helper('all')->__('Disabled')
13
+ );
14
+ }
15
+ }
app/code/local/Biztech/All/Model/Update.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Biztech_All_Model_Update extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ const UPDATE_NOTIFICATION_FEED_URL = 'http://store.biztechconsultancy.com/rss/catalog/new/store_id/1/';
7
+ public function getInterests()
8
+ {
9
+ $types = @explode(',', Mage::getStoreConfig('all/all_general/interests'));
10
+ return $types;
11
+ }
12
+ public function isExtensionInstalled($code)
13
+ {
14
+
15
+ $modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
16
+ foreach ($modules as $moduleName) {
17
+ if ($moduleName == $code) {
18
+ return true;
19
+ }
20
+ }
21
+ return false;
22
+ }
23
+
24
+ public function check()
25
+ {
26
+ if ((time() - Mage::app()->loadCache('biztech_all_updates_feed_lastcheck')) > Mage::getStoreConfig('all/all_general/check_frequency')) {
27
+ $this->refresh();
28
+ }
29
+ }
30
+
31
+ public function refresh()
32
+ {
33
+ $types = array();
34
+ $feedData = array();
35
+ $extensio_module = array();
36
+ try{
37
+ $xml = file_get_contents(self::UPDATE_NOTIFICATION_FEED_URL);
38
+ $xml = simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA);//LIBXML_NOCDATA LIBXML_NOWARNING
39
+
40
+ $interests = $this->getInterests();
41
+ if(!empty($interests[0])){
42
+ $isInterestedInSelfUpgrades = in_array(Biztech_All_Model_Source_Updates_Type::TYPE_INSTALLED_UPDATE, $interests);
43
+ $isInterestedInAllUpgrades = in_array(Biztech_All_Model_Source_Updates_Type::TYPE_UPDATE_RELEASE, $interests);
44
+ $modules = Mage::getConfig()->getNode('modules')->children();
45
+ $modulesArray = (array)$modules;
46
+ foreach($xml->channel->item as $keys=>$extensions) {
47
+ $types[] = (string) $extensions->update_notifications->type;
48
+ $extensions_name = (string)$extensions->update_notifications->extensions;
49
+
50
+ if((string)$extensions->update_notifications->date!=""&&(string)$extensions->update_notifications->extension_title!=""&&(string)$extensions->update_notifications->extension_content!=""&&(string)$extensions->update_notifications->product_url!=""){
51
+ if(!$isInterestedInAllUpgrades){
52
+ if ($this->isExtensionInstalled($extensions_name)) {
53
+ $feedData[] = array(
54
+ 'severity' => 4,
55
+ 'date_added' => (string) $extensions->update_notifications->date,
56
+ 'title' => (string)$extensions->update_notifications->extension_title,
57
+ 'description' => (string)$extensions->update_notifications->extension_content,
58
+ 'url' => (string)$extensions->update_notifications->product_url,
59
+ );
60
+ }
61
+ } else{
62
+ $feedData[] = array(
63
+ 'severity' => 4,
64
+ 'date_added' => (string)$extensions->update_notifications->date,
65
+ 'title' => (string)$extensions->update_notifications->extension_title,
66
+ 'description' => (string)$extensions->update_notifications->extension_content,
67
+ 'url' => (string)$extensions->update_notifications->product_url,
68
+ );
69
+ }
70
+ }
71
+ }
72
+ if ($feedData) {
73
+ foreach($feedData as $data){
74
+ if ((array_intersect($types,$interests) && $isInterestedInSelfUpgrades)) {
75
+ Mage::getModel('adminnotification/inbox')->parse(array_reverse(array($data)));
76
+ }
77
+ }
78
+ }
79
+ Mage::app()->saveCache(time(), 'biztech_all_updates_feed_lastcheck');
80
+ return true;
81
+ }
82
+ }catch (Exception $e) {
83
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
84
+ }
85
+ }
86
+ }
app/code/local/Biztech/All/etc/config.xml ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Biztech
5
+ * @package Biztech_All
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Biztech_All>
13
+ <version>0.1.0</version>
14
+ </Biztech_All>
15
+ </modules>
16
+ <frontend>
17
+ <routers>
18
+ <all>
19
+ <use>standard</use>
20
+ <args>
21
+ <module>Biztech_All</module>
22
+ <frontName>all</frontName>
23
+ </args>
24
+ </all>
25
+ </routers>
26
+ <!--<layout>
27
+ <updates>
28
+ <all>
29
+ <file>all.xml</file>
30
+ </all>
31
+ </updates>
32
+ </layout>-->
33
+ </frontend>
34
+ <admin>
35
+ <routers>
36
+ <all>
37
+ <use>admin</use>
38
+ <args>
39
+ <module>Biztech_All</module>
40
+ <frontName>all</frontName>
41
+ </args>
42
+ </all>
43
+ </routers>
44
+ </admin>
45
+ <adminhtml>
46
+ <!--<menu>
47
+ <all module="all">
48
+ <title>All</title>
49
+ <sort_order>71</sort_order>
50
+ <children>
51
+ <items module="all">
52
+ <title>Manage Items</title>
53
+ <sort_order>0</sort_order>
54
+ <action>all/adminhtml_all</action>
55
+ </items>
56
+ </children>
57
+ </all>
58
+ </menu> -->
59
+ <acl>
60
+ <resources>
61
+ <all>
62
+ <title>Allow Everything</title>
63
+ </all>
64
+ <admin>
65
+ <children>
66
+ <Biztech_All>
67
+ <title>All Module</title>
68
+ <sort_order>10</sort_order>
69
+ </Biztech_All>
70
+ </children>
71
+ </admin>
72
+ </resources>
73
+ </acl>
74
+ <events>
75
+ <controller_action_predispatch>
76
+ <observers>
77
+
78
+ <bzall_upds>
79
+ <type>singleton</type>
80
+ <class>all/update</class>
81
+ <method>check</method>
82
+ </bzall_upds>
83
+ </observers>
84
+ </controller_action_predispatch>
85
+ </events>
86
+ <!--<layout>
87
+ <updates>
88
+ <all>
89
+ <file>all.xml</file>
90
+ </all>
91
+ </updates>
92
+ </layout> -->
93
+ </adminhtml>
94
+ <global>
95
+ <models>
96
+ <all>
97
+ <class>Biztech_All_Model</class>
98
+ <resourceModel>all_mysql4</resourceModel>
99
+ </all>
100
+ <all_mysql4>
101
+ <class>Biztech_All_Model_Mysql4</class>
102
+ <entities>
103
+ <all>
104
+ <table>all</table>
105
+ </all>
106
+ </entities>
107
+ </all_mysql4>
108
+ </models>
109
+ <resources>
110
+ <all_setup>
111
+ <setup>
112
+ <module>Biztech_All</module>
113
+ </setup>
114
+ <connection>
115
+ <use>core_setup</use>
116
+ </connection>
117
+ </all_setup>
118
+ <all_write>
119
+ <connection>
120
+ <use>core_write</use>
121
+ </connection>
122
+ </all_write>
123
+ <all_read>
124
+ <connection>
125
+ <use>core_read</use>
126
+ </connection>
127
+ </all_read>
128
+ </resources>
129
+ <blocks>
130
+ <all>
131
+ <class>Biztech_All_Block</class>
132
+ </all>
133
+ </blocks>
134
+ <helpers>
135
+ <all>
136
+ <class>Biztech_All_Helper</class>
137
+ </all>
138
+ </helpers>
139
+ </global>
140
+ <default>
141
+ <all>
142
+ <all_general>
143
+ <check_frequency>86400</check_frequency>
144
+ </all_general>
145
+ </all>
146
+ </default>
147
+ </config>
app/code/local/Biztech/All/etc/system.xml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <config>
3
+ <tabs>
4
+ <biztech translate="label" module="all">
5
+ <label>Biztech Extensions</label>
6
+ <sort_order>400</sort_order>
7
+ </biztech>
8
+ </tabs>
9
+ <sections>
10
+ <all translate="label" module="all">
11
+ <label>Info</label>
12
+ <tab>biztech</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>10</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+
20
+ <all_general translate="label">
21
+ <label>General</label>
22
+ <frontend_type>text</frontend_type>
23
+ <sort_order>10</sort_order>
24
+ <show_in_default>1</show_in_default>
25
+ <show_in_website>1</show_in_website>
26
+ <show_in_store>1</show_in_store>
27
+ <fields>
28
+
29
+ <interests translate="label">
30
+ <label>I'd like to be informed by Biztech about:</label>
31
+ <comment></comment>
32
+ <frontend_type>multiselect</frontend_type>
33
+ <sort_order>100</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ <can_be_empty>1</can_be_empty>
38
+ <source_model>all/source_updates_type</source_model>
39
+ </interests>
40
+
41
+ </fields>
42
+ </all_general>
43
+ </groups>
44
+ </all>
45
+ </sections>
46
+ </config>
app/code/local/Biztech/Mobileassistant/Helper/Data.php CHANGED
@@ -2,6 +2,11 @@
2
 
3
  class Biztech_Mobileassistant_Helper_Data extends Mage_Core_Helper_Abstract
4
  {
 
 
 
 
 
5
 
6
  public function getPriceFormat($price)
7
  {
@@ -9,14 +14,24 @@
9
  return $price;
10
  }
11
 
 
 
 
 
 
 
 
 
 
12
  public function isEnable()
13
  {
14
  return Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled');
15
  }
16
 
17
  public function pushNotification($notification_type,$entity_id){
 
18
  $passphrase = 'push2magento';
19
- $collections = Mage::getModel("mobileassistant/mobileassistant")->getCollection()->addFieldToFilter('notification_flag',Array('eq'=>1));
20
 
21
  if ($notification_type=='customer'){
22
  $message = Mage::getStoreConfig('mobileassistant/mobileassistant_general/customer_register_notification_msg');
@@ -30,27 +45,69 @@
30
  }
31
  }
32
 
33
- $apnsCert = Mage::getBaseDir('lib'). DS. "mobileassistant".DS."magentoPushDst.pem";
34
  $ctx = stream_context_create();
35
  stream_context_set_option($ctx, 'ssl', 'local_cert', $apnsCert);
36
  stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
37
  $flags = STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT;
38
  $fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err,$errstr, 60, $flags, $ctx);
39
- if ($fp){
40
- foreach($collections as $collection){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  $deviceToken = $collection->getDeviceToken();
42
- $body['aps'] = array(
43
- 'alert' => $message,
44
- 'sound' => 'default',
45
- 'entity_id'=>$entity_id,
 
46
  'type' => $notification_type
47
  );
48
- $payload = json_encode($body);
49
- $msg = chr(0) . pack('n', 32) . pack('H*', $deviceToken) . pack('n', strlen($payload)) . $payload;
50
- $result = fwrite($fp, $msg, strlen($msg));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  }
52
- fclose($fp);
53
  }
 
 
54
  return true;
55
  }
56
  }
2
 
3
  class Biztech_Mobileassistant_Helper_Data extends Mage_Core_Helper_Abstract
4
  {
5
+ public function getPrice($price)
6
+ {
7
+ $price = strip_tags(Mage::helper('core')->currency($this->getPriceFormat($price)));
8
+ return $price;
9
+ }
10
 
11
  public function getPriceFormat($price)
12
  {
14
  return $price;
15
  }
16
 
17
+ public function getActualDate($updated_date)
18
+ {
19
+ $date = Mage::app()->getLocale()->date(strtotime($updated_date));
20
+ $timestamp = $date->get(Zend_Date::TIMESTAMP) - $date->get(Zend_Date::TIMEZONE_SECS);
21
+ $updated_date = date("Y-m-d H:i:s", $timestamp);
22
+ return $updated_date;
23
+
24
+ }
25
+
26
  public function isEnable()
27
  {
28
  return Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled');
29
  }
30
 
31
  public function pushNotification($notification_type,$entity_id){
32
+ $google_api_key = 'AIzaSyAZPkT165oPcjfhUmgJnt5Lcs2OInBFJmE';
33
  $passphrase = 'push2magento';
34
+ $collections = Mage::getModel("mobileassistant/mobileassistant")->getCollection()->addFieldToFilter('notification_flag',Array('eq'=>1))->addFieldToFilter('is_logout',Array('eq'=>0));
35
 
36
  if ($notification_type=='customer'){
37
  $message = Mage::getStoreConfig('mobileassistant/mobileassistant_general/customer_register_notification_msg');
45
  }
46
  }
47
 
48
+ $apnsCert = Mage::getBaseDir('lib'). DS. "mobileassistant".DS."pushcert.pem";
49
  $ctx = stream_context_create();
50
  stream_context_set_option($ctx, 'ssl', 'local_cert', $apnsCert);
51
  stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
52
  $flags = STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT;
53
  $fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err,$errstr, 60, $flags, $ctx);
54
+
55
+ foreach($collections as $collection){
56
+ $deviceType = $collection->getDeviceType();
57
+
58
+ if($deviceType == 'ios'){
59
+
60
+ if ($fp){
61
+
62
+ $deviceToken = $collection->getDeviceToken();
63
+ $body['aps'] = array(
64
+ 'alert' => $message,
65
+ 'sound' => 'default',
66
+ 'entity_id' => $entity_id,
67
+ 'type' => $notification_type
68
+ );
69
+ $payload = json_encode($body);
70
+ $msg = chr(0) . pack('n', 32) . pack('H*', $deviceToken) . pack('n', strlen($payload)) . $payload;
71
+ $result = fwrite($fp, $msg, strlen($msg));
72
+
73
+ }
74
+
75
+ }elseif($deviceType == 'android')
76
+ {
77
  $deviceToken = $collection->getDeviceToken();
78
+ $registrationIds = array($deviceToken);
79
+
80
+ $msg_a = array(
81
+ 'message' => $message,
82
+ 'entity_id' => $entity_id,
83
  'type' => $notification_type
84
  );
85
+
86
+ $fields = array(
87
+ 'registration_ids' => $registrationIds,
88
+ 'data' => $msg_a
89
+ );
90
+
91
+ $headers = array(
92
+ 'Authorization: key=' . $google_api_key,
93
+ 'Content-Type: application/json'
94
+ );
95
+
96
+ $ch = curl_init();
97
+ curl_setopt( $ch,CURLOPT_URL, 'https://android.googleapis.com/gcm/send' );
98
+ curl_setopt( $ch,CURLOPT_POST, true );
99
+ curl_setopt( $ch,CURLOPT_HTTPHEADER, $headers );
100
+ curl_setopt( $ch,CURLOPT_RETURNTRANSFER, true );
101
+ curl_setopt( $ch,CURLOPT_SSL_VERIFYPEER, false );
102
+ curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fields ) );
103
+ $result = curl_exec($ch );
104
+ curl_close( $ch );
105
+
106
+
107
  }
 
108
  }
109
+ fclose($fp);
110
+
111
  return true;
112
  }
113
  }
app/code/local/Biztech/Mobileassistant/Model/Mobileassistant/Api.php CHANGED
@@ -10,6 +10,7 @@
10
  ->setUsername($data['user'])
11
  ->setApikey($data['key'])
12
  ->setDeviceToken($data['devicetoken'])
 
13
  ->setNotificationFlag($data['notification_flag'])
14
  ->save();
15
  }
@@ -19,12 +20,13 @@
19
  $user_id = $user->getUserId();
20
  $flag = $user->getNotificationFlag();
21
  }
22
- if($flag != $data['notification_flag']){
23
  try {
24
  $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
25
  $connection->beginTransaction();
26
  $fields = array();
27
  $fields['notification_flag'] = $data['notification_flag'];
 
28
  $where = $connection->quoteInto('user_id =?', $user_id);
29
  $connection->update('mobileassistant', $fields, $where);
30
  $connection->commit();
@@ -46,7 +48,8 @@
46
  }
47
  }
48
  }
49
- $result = array('success' => $successArr,'stores' => $storeArr);
 
50
  return $result;
51
  }
52
  }
10
  ->setUsername($data['user'])
11
  ->setApikey($data['key'])
12
  ->setDeviceToken($data['devicetoken'])
13
+ ->setDeviceType($data['device_type'])
14
  ->setNotificationFlag($data['notification_flag'])
15
  ->save();
16
  }
20
  $user_id = $user->getUserId();
21
  $flag = $user->getNotificationFlag();
22
  }
23
+ if($flag != $data['notification_flag'] || $data['is_logout'] != 1){
24
  try {
25
  $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
26
  $connection->beginTransaction();
27
  $fields = array();
28
  $fields['notification_flag'] = $data['notification_flag'];
29
+ $fields['is_logout'] = $data['is_logout'];
30
  $where = $connection->quoteInto('user_id =?', $user_id);
31
  $connection->update('mobileassistant', $fields, $where);
32
  $connection->commit();
48
  }
49
  }
50
  }
51
+ $isPos = 0;
52
+ $result = array('success' => $successArr,'stores' => $storeArr,'is_pos' => $isPos);
53
  return $result;
54
  }
55
  }
app/code/local/Biztech/Mobileassistant/controllers/CustomerController.php CHANGED
@@ -14,31 +14,32 @@
14
  $offset = $post_data['offset'];
15
  $new_customers = $post_data['last_fetch_customer'];
16
  $is_refresh = $post_data['is_refresh'];
17
-
18
  $customers = Mage::getModel('customer/customer')->getCollection()->addAttributeToSelect('*')->setOrder('entity_id', 'desc');
19
 
20
  if($offset != null){
21
  $customers->addAttributeToFilter('entity_id', array('lt' => $offset));
22
  }
23
-
24
 
25
  if($is_refresh == 1){
26
- $last_fetch_customer = $post_data['last_fetch_customer'];
27
- $min_fetch_customer = $post_data['min_fetch_customer'];
28
- $last_updated = $post_data['last_updated'];
29
-
30
- $customers->getSelect()->where("(entity_id BETWEEN '".$min_fetch_customer."'AND '".$last_fetch_customer ."' AND updated_at > '".$last_updated."') OR entity_id >'".$last_fetch_customer."'");
31
  }
32
 
33
-
34
  $customers->getSelect()->limit($limit);
35
- foreach($customers as $customer){
36
- $website_name = Mage::app()->getWebsite($customer->getWebsiteId())->getName();
 
 
37
  $customer_list[] = array(
38
  'entity_id' => $customer->getEntityId(),
39
- 'customer_name' => $customer->getFirstname()." ".$customer->getLastname(),
 
40
  'email_id' => $customer->getEmail(),
41
- 'website_name' => $website_name
 
 
42
  );
43
  }
44
  $updated_time = date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time()));
@@ -64,49 +65,48 @@
64
  $customerData = Mage::getModel('customer/customer')->load($customer_id);
65
 
66
 
67
- $basic_detail = array(
68
  'entity_id' => $customerData->getEntityId(),
69
- 'name' => $customerData->getFirstname()." ".$customerData->getLastname(),
 
70
  'email' => $customerData->getEmail(),
71
  );
72
 
73
- $billing_address = Mage::getModel('customer/address')->load($customerData->getDefaultBilling());
74
- $shipping_address = Mage::getModel('customer/address')->load($customerData->getDefaultShipping());
75
-
76
- $billing_country_name = null;
77
- $shipping_country_name = null;
78
-
79
- if($billing_address->getCountryId()){
80
- $billing_country_name = Mage::getModel('directory/country')->loadByCode($billing_address->getCountryId())->getName();
81
- }
82
- if($shipping_address->getCountryId()){
83
- $shipping_country_name = Mage::getModel('directory/country')->loadByCode($shipping_address->getCountryId())->getName();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  }
85
 
86
- $billing_address_detail = array(
87
- 'name' => $billing_address->getFirstname()." ".$billing_address->getLastname(),
88
- 'street' => $billing_address->getData('street'),
89
- 'city' => $billing_address->getCity(),
90
- 'region' => $billing_address->getRegion(),
91
- 'postcode' => $billing_address->getPostcode(),
92
- 'country' => $billing_country_name,
93
- 'telephone' => $billing_address->getTelephone()
94
- );
95
-
96
- $shipping_address_detail = array(
97
- 'name' => $shipping_address->getFirstname()." ".$shipping_address->getLastname(),
98
- 'street' => $shipping_address->getData('street'),
99
- 'city' => $shipping_address->getCity(),
100
- 'region' => $shipping_address->getRegion(),
101
- 'postcode' => $shipping_address->getPostcode(),
102
- 'country' => $shipping_country_name,
103
- 'telephone' => $shipping_address->getTelephone()
104
- );
105
-
106
  $customer_detail = array(
107
  'basic_details' => $basic_detail,
108
- 'billing_address' => $billing_address_detail,
109
- 'shipping_address' => $shipping_address_detail
110
  );
111
  $order_detail = $this->_getCustomerOrderList($customer_id);
112
 
@@ -134,7 +134,7 @@
134
  'customer_name' => $order->getBillingName(),
135
  'status' => $order->getStatus(),
136
  'order_date' => date('Y-m-d H:i:s', strtotime($order->getCreatedAt())),
137
- 'grand_total' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($order->getGrandTotal()))),
138
  'toal_qty' => Mage::getModel('sales/order')->load($order->getEntityId())->getTotalQtyOrdered()
139
  );
140
  }
@@ -173,11 +173,18 @@
173
  }
174
 
175
 
176
- foreach($customers as $customer){
 
 
 
177
  $customer_list[] = array(
178
  'entity_id' => $customer->getEntityId(),
179
- 'customer_name' => $customer->getFirstname()." ".$customer->getLastname(),
180
- 'email_id' => $customer->getEmail()
 
 
 
 
181
  );
182
  }
183
  $customerListResultArr = array('customerlistdata' => $customer_list);
14
  $offset = $post_data['offset'];
15
  $new_customers = $post_data['last_fetch_customer'];
16
  $is_refresh = $post_data['is_refresh'];
 
17
  $customers = Mage::getModel('customer/customer')->getCollection()->addAttributeToSelect('*')->setOrder('entity_id', 'desc');
18
 
19
  if($offset != null){
20
  $customers->addAttributeToFilter('entity_id', array('lt' => $offset));
21
  }
 
22
 
23
  if($is_refresh == 1){
24
+ $last_fetch_customer = $post_data['last_fetch_customer'];
25
+ $min_fetch_customer = $post_data['min_fetch_customer'];
26
+ $last_updated = Mage::helper('mobileassistant')->getActualDate($post_data['last_updated']);
27
+ $customers->getSelect()->where("(e.entity_id BETWEEN '".$min_fetch_customer."'AND '".$last_fetch_customer ."' AND updated_at > '".$last_updated."') OR e.entity_id >'".$last_fetch_customer."'");
 
28
  }
29
 
 
30
  $customers->getSelect()->limit($limit);
31
+ foreach($customers as $customer){
32
+ $billing_address = Mage::getModel('customer/address')->load($customer->getDefaultBilling());
33
+ $shipping_address = Mage::getModel('customer/address')->load($customer->getDefaultShipping());
34
+
35
  $customer_list[] = array(
36
  'entity_id' => $customer->getEntityId(),
37
+ 'firstname' => $customer->getFirstname(),
38
+ 'lastname' => $customer->getLastname(),
39
  'email_id' => $customer->getEmail(),
40
+ 'telephone' => $billing_address->getData('telephone'),
41
+ 'billing_address_id' => $billing_address->getId(),
42
+ 'shipping_address_id' => $shipping_address->getId()
43
  );
44
  }
45
  $updated_time = date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time()));
65
  $customerData = Mage::getModel('customer/customer')->load($customer_id);
66
 
67
 
68
+ $basic_detail = array(
69
  'entity_id' => $customerData->getEntityId(),
70
+ 'firstname' => $customerData->getFirstname(),
71
+ 'lastname' => $customerData->getLastname(),
72
  'email' => $customerData->getEmail(),
73
  );
74
 
75
+ foreach ($customerData->getAddresses() as $address) {
76
+ $billing_type = 0;
77
+ $shipping_type = 0;
78
+ $billing_country_name = null;
79
+
80
+ if($address->getCountryId()){
81
+ $billing_country_name = Mage::getModel('directory/country')->loadByCode($address->getCountryId())->getName();
82
+ }
83
+
84
+ if ($address->getId()==$customerData->getDefaultBilling())
85
+ $billing_type=1;
86
+
87
+ if ($address->getId()==$customerData->getDefaultShipping())
88
+ $shipping_type=1;
89
+
90
+ $billing_address_detail[] = array(
91
+ 'firstname' => $address->getFirstname(),
92
+ 'lastname' => $address->getLastname(),
93
+ 'street' => $address->getData('street'),
94
+ 'city' => $address->getCity(),
95
+ 'region_id' => $address->getRegionId() ? $address->getRegionId() : '',
96
+ 'region' => $address->getRegion(),
97
+ 'postcode' => $address->getPostcode(),
98
+ 'country' => $billing_country_name,
99
+ 'country_id' => $address->getCountryId(),
100
+ 'telephone' => $address->getTelephone(),
101
+ 'address_id' => $address->getId(),
102
+ 'billing_type' => $billing_type,
103
+ 'shipping_type' => $shipping_type
104
+ );
105
  }
106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  $customer_detail = array(
108
  'basic_details' => $basic_detail,
109
+ 'address' => $billing_address_detail,
 
110
  );
111
  $order_detail = $this->_getCustomerOrderList($customer_id);
112
 
134
  'customer_name' => $order->getBillingName(),
135
  'status' => $order->getStatus(),
136
  'order_date' => date('Y-m-d H:i:s', strtotime($order->getCreatedAt())),
137
+ 'grand_total' => Mage::helper('mobileassistant')->getPrice($order->getGrandTotal()),
138
  'toal_qty' => Mage::getModel('sales/order')->load($order->getEntityId())->getTotalQtyOrdered()
139
  );
140
  }
173
  }
174
 
175
 
176
+ foreach($customers as $customer){
177
+ $billing_address = Mage::getModel('customer/address')->load($customer->getDefaultBilling());
178
+ $shipping_address = Mage::getModel('customer/address')->load($customer->getDefaultShipping());
179
+
180
  $customer_list[] = array(
181
  'entity_id' => $customer->getEntityId(),
182
+ 'firstname' => $customer->getFirstname(),
183
+ 'lastname' => $customer->getLastname(),
184
+ 'email_id' => $customer->getEmail(),
185
+ 'telephone' => $billing_address->getData('telephone'),
186
+ 'billing_address_id' => $billing_address->getId(),
187
+ 'shipping_address_id' => $shipping_address->getId(),
188
  );
189
  }
190
  $customerListResultArr = array('customerlistdata' => $customer_list);
app/code/local/Biztech/Mobileassistant/controllers/IndexController.php CHANGED
@@ -23,7 +23,8 @@
23
  $api_key = $details['keyapi'];
24
  $deviceToken = $details['token'];
25
  $flag = $details['notification_flag'];
26
- $url = $details['magento_url'].'/api/soap?wsdl';
 
27
 
28
  try{
29
  $soap = new SoapClient($url);
@@ -35,7 +36,7 @@
35
  return Mage::app()->getResponse()->setBody($jsonData);
36
  }
37
  if($session_id){
38
- $data[] = array('user' => $user,'key' => $api_key,'devicetoken'=>$deviceToken,'session_id' => $session_id,'notification_flag'=> $flag);
39
  $result = $soap->call($session_id,'mobileassistant.create',$data);
40
  $jsonData = Mage::helper('core')->jsonEncode($result);
41
  return Mage::app()->getResponse()->setBody($jsonData);
@@ -52,6 +53,10 @@
52
 
53
  public function testModuleAction()
54
  {
 
 
 
 
55
  if(Mage::getConfig()->getModuleConfig('Biztech_Mobileassistant')->is('active', 'true') && Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled'))
56
  {
57
  $isSecure = Mage::app()->getFrontController()->getRequest()->isSecure();
@@ -61,12 +66,29 @@
61
  if(Mage::getStoreConfig('web/secure/base_url') == Mage::getStoreConfig('web/secure/base_link_url')){
62
  $validate_url = true;
63
  }
 
 
 
 
 
 
 
 
64
  }else{
65
  if(Mage::getStoreConfig('web/unsecure/base_url') == Mage::getStoreConfig('web/unsecure/base_link_url')){
66
  $validate_url = true;
67
  }
68
  }
69
  if($validate_url){
 
 
 
 
 
 
 
 
 
70
  $result['success'] = $this->__('Hurray! The connection with the Magento Site worked out fine & you can start using the App.');
71
  }else{
72
  $result['error'] = $this->__('There seems some difference between the Based URL & Magento Based URL(on the store). Please check & if issue persists, Contact our Support Team.');
@@ -109,4 +131,48 @@
109
  return Mage::app()->getResponse()->setBody($result);
110
  }
111
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
23
  $api_key = $details['keyapi'];
24
  $deviceToken = $details['token'];
25
  $flag = $details['notification_flag'];
26
+ $device_type = $details['device_type'];
27
+ $url = $details['magento_url'].'api/soap?wsdl';
28
 
29
  try{
30
  $soap = new SoapClient($url);
36
  return Mage::app()->getResponse()->setBody($jsonData);
37
  }
38
  if($session_id){
39
+ $data[] = array('user' => $user,'key' => $api_key,'devicetoken'=>$deviceToken,'session_id' => $session_id,'notification_flag'=> $flag,'device_type'=> $device_type,'is_logout'=> 0);
40
  $result = $soap->call($session_id,'mobileassistant.create',$data);
41
  $jsonData = Mage::helper('core')->jsonEncode($result);
42
  return Mage::app()->getResponse()->setBody($jsonData);
53
 
54
  public function testModuleAction()
55
  {
56
+ $post_data = Mage::app()->getRequest()->getParams();
57
+ $url = $post_data['magento_url'];
58
+ $url_info = parse_url($url);
59
+
60
  if(Mage::getConfig()->getModuleConfig('Biztech_Mobileassistant')->is('active', 'true') && Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled'))
61
  {
62
  $isSecure = Mage::app()->getFrontController()->getRequest()->isSecure();
66
  if(Mage::getStoreConfig('web/secure/base_url') == Mage::getStoreConfig('web/secure/base_link_url')){
67
  $validate_url = true;
68
  }
69
+
70
+ if($url_info['scheme'] == 'http')
71
+ {
72
+ $result['error'] = $this->__('It seems you use secure url for your store. So please use "https". ');
73
+ $jsonData = Mage::helper('core')->jsonEncode($result);
74
+ return Mage::app()->getResponse()->setBody($jsonData);
75
+ }
76
+
77
  }else{
78
  if(Mage::getStoreConfig('web/unsecure/base_url') == Mage::getStoreConfig('web/unsecure/base_link_url')){
79
  $validate_url = true;
80
  }
81
  }
82
  if($validate_url){
83
+
84
+ $is_index = Mage::getStoreConfig('web/seo/use_rewrites');
85
+ if(!$is_index && basename($url) != 'index.php')
86
+ {
87
+ $result['error'] = $this->__('Please add "index.php" after your url.');
88
+ $jsonData = Mage::helper('core')->jsonEncode($result);
89
+ return Mage::app()->getResponse()->setBody($jsonData);
90
+ }
91
+
92
  $result['success'] = $this->__('Hurray! The connection with the Magento Site worked out fine & you can start using the App.');
93
  }else{
94
  $result['error'] = $this->__('There seems some difference between the Based URL & Magento Based URL(on the store). Please check & if issue persists, Contact our Support Team.');
131
  return Mage::app()->getResponse()->setBody($result);
132
  }
133
  }
134
+
135
+ public function getLogoAndCurrencyAction()
136
+ {
137
+ $post_data = Mage::app()->getRequest()->getParams();
138
+ $storeId = $post_data['storeid'];
139
+ $block = new Mage_Page_Block_Html_Header();
140
+ $logo = $block->getLogoSrc();
141
+
142
+ $currency_code = Mage::getModel('core/store')->load($storeId)->getCurrentCurrencyCode();
143
+
144
+ $isPos = 0;
145
+ $resultArr = array('logo' => $logo,'currency_symbol' => Mage::app()->getLocale()->currency($currency_code)->getSymbol(),'is_pos' => $isPos);
146
+ $result = Mage::helper('core')->jsonEncode($resultArr);
147
+ return Mage::app()->getResponse()->setBody($result);
148
+ }
149
+
150
+ public function logoutAction()
151
+ {
152
+ $post_data = Mage::app()->getRequest()->getParams();
153
+ $user = $post_data['userapi'];
154
+ $deviceToken = $post_data['token'];
155
+ $collections = Mage::getModel("mobileassistant/mobileassistant")->getCollection()->addFieldToFilter('device_token',Array('eq'=>$deviceToken));
156
+ $count = count($collections);
157
+
158
+ foreach($collections as $user)
159
+ {
160
+ $device_token = $user->getDeviceToken();
161
+
162
+ try {
163
+ $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
164
+ $connection->beginTransaction();
165
+ $fields = array();
166
+ $fields['is_logout'] = 1;
167
+ $where = $connection->quoteInto('device_token =?', $device_token);
168
+ $connection->update('mobileassistant', $fields, $where);
169
+ $connection->commit();
170
+ } catch (Exception $e){
171
+ return $e->getMessage();
172
+ }
173
+ $successArr[] = array('success_msg' => 'User logout successfully.') ;
174
+ $result = Mage::helper('core')->jsonEncode($successArr);
175
+ return Mage::app()->getResponse()->setBody($result);
176
+ }
177
+ }
178
  }
app/code/local/Biztech/Mobileassistant/controllers/OrderController.php CHANGED
@@ -23,7 +23,7 @@
23
  if($is_refresh == 1){
24
  $last_fetch_order = $post_data['last_fetch_order'];
25
  $min_fetch_order = $post_data['min_fetch_order'];
26
- $last_updated = $post_data['last_updated'];
27
 
28
  $orderCollection->getSelect()->where("(entity_id BETWEEN '".$min_fetch_order."'AND '".$last_fetch_order ."' AND updated_at > '".$last_updated."') OR entity_id >'".$last_fetch_order."'");
29
  }
@@ -38,7 +38,7 @@
38
  'customer_name' => $order->getBillingName(),
39
  'status' => $order->getStatus(),
40
  'order_date' => date('Y-m-d H:i:s', strtotime($order->getCreatedAt())),
41
- 'grand_total' => strip_tags(Mage::helper('core')->currency($order->getGrandTotal())),
42
  'toal_qty' => Mage::getModel('sales/order')->load($order->getEntityId())->getTotalQtyOrdered()
43
  );
44
  }
@@ -107,7 +107,7 @@
107
  'customer_name' => $order->getBillingName(),
108
  'status' => $order->getStatus(),
109
  'order_date' => date('Y-m-d H:i:s', strtotime($order->getCreatedAt())),
110
- 'grand_total' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($order->getGrandTotal()))),
111
  'toal_qty' => Mage::getModel('sales/order')->load($order->getEntityId())->getTotalQtyOrdered()
112
  );
113
  }
@@ -139,7 +139,10 @@
139
  'status' => $order->getStatus(),
140
  'order_date' => date('Y-m-d H:i:s', strtotime($order->getCreatedAt())),
141
  'total_qty' => $order->getTotalQtyOrdered(),
142
- 'grand_total' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($order->getGrandTotal())))
 
 
 
143
  );
144
 
145
  $customer_id = $order->getCustomerId();
@@ -162,15 +165,17 @@
162
  'telephone' => $billing_address->getTelephone()
163
  );
164
  $shipping_address = $order->getShippingAddress();
165
- $shipping_address_data = array(
166
- 'name' => $shipping_address->getFirstname().' '.$shipping_address->getLastname(),
167
- 'street' => $shipping_address->getData('street'),
168
- 'city' => $shipping_address->getCity(),
169
- 'region' => $shipping_address->getRegion(),
170
- 'postcode' => $shipping_address->getPostcode(),
171
- 'country' => Mage::getModel('directory/country')->loadByCode($shipping_address->getCountryId())->getName(),
172
- 'telephone' => $shipping_address->getTelephone()
173
- );
 
 
174
 
175
  $payment_info = array(
176
  'payment_method' => $order->getPayment()->getMethodInstance()->getTitle()
@@ -178,7 +183,7 @@
178
 
179
  $shipping_info = array(
180
  'shipping_method' => $order->getShippingDescription(),
181
- 'shipping_charge' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($order->getShippingAmount())))
182
  );
183
 
184
  $products_detail = $this->_orderedProductDetails($order_id);
@@ -205,7 +210,56 @@
205
  {
206
  $order = Mage::getModel('sales/order')->load($order_id);
207
  foreach ($order->getItemsCollection() as $item) {
208
- $product = null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  if ($item->getParentItem()) continue;
210
  if ($_options = $this->_getItemOptions($item)) {
211
  $skus = $_options;
@@ -214,10 +268,12 @@
214
  'product_id' => $item->getProductId(),
215
  'name' => $item->getName(),
216
  'sku' => $item->getSku(),
217
- 'unit_price' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($item->getOriginalPrice()))),
218
  'ordered_qty' => round($item->getQtyOrdered(), 2),
219
- 'row_total' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($item->getRowTotal()))),
220
- 'options' => $skus
 
 
221
  );
222
  }
223
  return $products_detail;
23
  if($is_refresh == 1){
24
  $last_fetch_order = $post_data['last_fetch_order'];
25
  $min_fetch_order = $post_data['min_fetch_order'];
26
+ $last_updated = Mage::helper('mobileassistant')->getActualDate($post_data['last_updated']);
27
 
28
  $orderCollection->getSelect()->where("(entity_id BETWEEN '".$min_fetch_order."'AND '".$last_fetch_order ."' AND updated_at > '".$last_updated."') OR entity_id >'".$last_fetch_order."'");
29
  }
38
  'customer_name' => $order->getBillingName(),
39
  'status' => $order->getStatus(),
40
  'order_date' => date('Y-m-d H:i:s', strtotime($order->getCreatedAt())),
41
+ 'grand_total' => Mage::helper('mobileassistant')->getPrice($order->getGrandTotal()),
42
  'toal_qty' => Mage::getModel('sales/order')->load($order->getEntityId())->getTotalQtyOrdered()
43
  );
44
  }
107
  'customer_name' => $order->getBillingName(),
108
  'status' => $order->getStatus(),
109
  'order_date' => date('Y-m-d H:i:s', strtotime($order->getCreatedAt())),
110
+ 'grand_total' => Mage::helper('mobileassistant')->getPrice($order->getGrandTotal()),
111
  'toal_qty' => Mage::getModel('sales/order')->load($order->getEntityId())->getTotalQtyOrdered()
112
  );
113
  }
139
  'status' => $order->getStatus(),
140
  'order_date' => date('Y-m-d H:i:s', strtotime($order->getCreatedAt())),
141
  'total_qty' => $order->getTotalQtyOrdered(),
142
+ 'grand_total' => Mage::helper('mobileassistant')->getPrice($order->getGrandTotal()),
143
+ 'sub_total' => Mage::helper('mobileassistant')->getPrice($order->getSubtotal()),
144
+ 'discount' => Mage::helper('mobileassistant')->getPrice($order->getDiscountAmount()),
145
+ 'tax' => Mage::helper('mobileassistant')->getPrice($order->getTax())
146
  );
147
 
148
  $customer_id = $order->getCustomerId();
165
  'telephone' => $billing_address->getTelephone()
166
  );
167
  $shipping_address = $order->getShippingAddress();
168
+ if($shipping_address){
169
+ $shipping_address_data = array(
170
+ 'name' => $shipping_address->getFirstname().' '.$shipping_address->getLastname(),
171
+ 'street' => $shipping_address->getData('street'),
172
+ 'city' => $shipping_address->getCity(),
173
+ 'region' => $shipping_address->getRegion(),
174
+ 'postcode' => $shipping_address->getPostcode(),
175
+ 'country' => Mage::getModel('directory/country')->loadByCode($shipping_address->getCountryId())->getName(),
176
+ 'telephone' => $shipping_address->getTelephone()
177
+ );
178
+ }
179
 
180
  $payment_info = array(
181
  'payment_method' => $order->getPayment()->getMethodInstance()->getTitle()
183
 
184
  $shipping_info = array(
185
  'shipping_method' => $order->getShippingDescription(),
186
+ 'shipping_charge' => Mage::helper('mobileassistant')->getPrice($order->getShippingAmount())
187
  );
188
 
189
  $products_detail = $this->_orderedProductDetails($order_id);
210
  {
211
  $order = Mage::getModel('sales/order')->load($order_id);
212
  foreach ($order->getItemsCollection() as $item) {
213
+ $options = $item->getProductOptions();
214
+ if($item->getProductType() == "downloadable"){
215
+ $obj = new Mage_Downloadable_Block_Adminhtml_Sales_Items_Column_Downloadable_Name();
216
+ foreach($options['links'] as $links)
217
+ {
218
+
219
+ $this->_purchased = Mage::getModel('downloadable/link_purchased')
220
+ ->load($order_id, 'order_id');
221
+ $purchasedItem = Mage::getModel('downloadable/link_purchased_item')->getCollection()
222
+ ->addFieldToFilter('order_item_id', $item->getId());
223
+ $this->_purchased->setPurchasedItems($purchasedItem);
224
+
225
+ foreach ($this->_purchased->getPurchasedItems() as $_link){
226
+ $links_value[] = $_link->getLinkTitle().'('. $_link->getNumberOfDownloadsUsed() . ' / ' . ($_link->getNumberOfDownloadsBought() ? $_link->getNumberOfDownloadsBought() : Mage::helper('downloadable')->__('U')) .')';
227
+ }
228
+
229
+ $info = array(array(
230
+ 'label' => $obj->getLinksTitle(),
231
+ 'value' => implode(',',$links_value)
232
+ ));
233
+ }
234
+
235
+ }else{
236
+
237
+ $result = array();
238
+ if ($options = $item->getProductOptions()) {
239
+ if (isset($options['options'])) {
240
+ $result = array_merge($result, $options['options']);
241
+ }
242
+ if (isset($options['additional_options'])) {
243
+ $result = array_merge($result, $options['additional_options']);
244
+ }
245
+ if (!empty($options['attributes_info'])) {
246
+ $result = array_merge($options['attributes_info'], $result);
247
+ }
248
+ }
249
+
250
+ $info = array();
251
+ if($result)
252
+ {
253
+ foreach ($result as $_option){
254
+ $info[] = array(
255
+ 'label' => $_option['label'],
256
+ 'value' => $_option['value']
257
+ );
258
+ }
259
+ }
260
+ }
261
+ $skus = '';
262
+ $product = Mage::getModel('catalog/product')->load($item->getProductId());
263
  if ($item->getParentItem()) continue;
264
  if ($_options = $this->_getItemOptions($item)) {
265
  $skus = $_options;
268
  'product_id' => $item->getProductId(),
269
  'name' => $item->getName(),
270
  'sku' => $item->getSku(),
271
+ 'unit_price' => Mage::helper('mobileassistant')->getPrice($item->getOriginalPrice()),
272
  'ordered_qty' => round($item->getQtyOrdered(), 2),
273
+ 'row_total' => Mage::helper('mobileassistant')->getPrice($item->getRowTotal()),
274
+ 'options' => $skus ? $skus : '',
275
+ 'image' => ($product->getImage())?Mage::helper('catalog/image')->init($product, 'image',$product->getImage())->resize(300,330)->keepAspectRatio(true)->constrainOnly(true)->__toString():'N/A',
276
+ 'attribute_info' => $info ? $info : ''
277
  );
278
  }
279
  return $products_detail;
app/code/local/Biztech/Mobileassistant/controllers/ProductController.php CHANGED
@@ -10,7 +10,6 @@
10
  echo $this->__("The Login has expired. Please try log in again.");
11
  return false;
12
  }
13
-
14
  $storeId = $post_data['storeid'];
15
  $limit = $post_data['limit'];
16
  $offset = $post_data['offset'];
@@ -21,7 +20,7 @@
21
  if($offset != null){
22
  $products->addAttributeToFilter('entity_id', array('lt' => $offset));
23
  }
24
-
25
 
26
  if($is_refresh == 1){
27
  $last_fetch_product = $post_data['last_fetch_product'];
@@ -45,7 +44,8 @@
45
  'name' => $product_data->getName(),
46
  'status' => $status,
47
  'qty' => $qty,
48
- 'price' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($product_data->getPrice()))),
 
49
  'type' => $product->getTypeId()
50
  );
51
  }
@@ -68,61 +68,67 @@
68
  echo $this->__("The Login has expired. Please try log in again.");
69
  return false;
70
  }
71
- $storeId = $post_data['storeid'];
72
- $productId = $post_data['productid'];
73
- $product_data = Mage::getModel('catalog/product')->load($productId);
74
- $status = $product_data->getStatus();
75
- $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product_data)->getQty();
76
-
77
- if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
78
-
79
- if(!$product_data->isSaleable()){$qty = 'Out of Stock';}
80
-
81
 
82
- if($product_data->getTypeId() == 'grouped'){
83
- $associated_products = $product_data->getTypeInstance(true)->getAssociatedProducts($product_data);
84
- }elseif($product_data->getTypeId() == 'configurable'){
85
- $associated_products = $product_data->getTypeInstance()->getUsedProducts();
86
- } elseif($product_data->getTypeId() == 'bundle'){
87
- $associated_products = $product_data->getTypeInstance(true)->getSelectionsCollection($product_data->getTypeInstance(true)->getOptionsIds($product_data), $product_data);
88
- }
89
- foreach($associated_products as $associated_product)
90
- {
91
- $status = $associated_product->getStatus();
92
- $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($associated_product)->getQty();
93
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
94
- if($qty == 0 || $associated_product->getIsInStock() == 0){$qty = 'Out of Stock';}
95
- $associated_products_details[] = array(
96
- 'id' => $associated_product->getId(),
97
- 'sku' => $associated_product->getSku()
98
- );
99
 
100
- $associated_products_list[] = array(
101
- 'id' => $associated_product->getId(),
102
- 'sku' => $associated_product->getSku(),
103
- 'name' => $associated_product->getName(),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  'status' => $status,
105
  'qty' => $qty,
106
- 'price' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($associated_product->getPrice())))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  );
 
108
  }
109
- $product_details[] = array(
110
- 'id' => $product_data->getId(),
111
- 'sku' => $product_data->getSku(),
112
- 'name' => $product_data->getName(),
113
- 'status' => $status,
114
- 'qty' => $qty,
115
- 'price' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($product_data->getPrice()))),
116
- 'desc' => $product_data->getDescription(),
117
- 'type' => $product_data->getTypeId(),
118
- 'image' => Mage::getModel('catalog/product_media_config')->getMediaUrl($product_data->getImage()),
119
- 'special_price' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($product_data->getSpecialPrice()))),
120
- 'associated_skus' => $associated_products_details
121
- );
122
-
123
- $productResultArr = array('productdata' => $product_details , 'associated_products_list' =>$associated_products_list);
124
- $productDetailResult = Mage::helper('core')->jsonEncode($productResultArr);
125
- return Mage::app()->getResponse()->setBody($productDetailResult);
126
  }else{
127
  $isEnable = Mage::helper('core')->jsonEncode(array('enable' => false));
128
  return Mage::app()->getResponse()->setBody($isEnable);
@@ -138,66 +144,75 @@
138
  echo $this->__("The Login has expired. Please try log in again.");
139
  return false;
140
  }
141
- $storeId = $post_data['storeid'];
142
- $filter_by_name = $post_data['filter_by_name'];
143
- $filter_by_type = $post_data['product_type'];
144
- $filter_by_qty = $post_data['filter_by_qty'];
145
-
146
- $products = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($storeId)->setOrder('entity_id', 'desc');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
 
148
- if($filter_by_name != null){
149
- $products->addAttributeToFilter(array(
150
- array(
151
- 'attribute' => 'name',
152
- 'like' => '%'.$filter_by_name.'%'
153
- ),
154
- array(
155
- 'attribute' => 'sku',
156
- 'like' => '%'.$filter_by_name.'%'
157
- )
158
- ));
159
- }
160
 
161
- if($filter_by_type != null){
162
- $products->addFieldToFilter('type_id',Array('eq'=>$filter_by_type));
163
- }
 
 
 
 
 
 
 
 
 
 
 
164
 
165
- if($filter_by_qty != null){
166
- $products->joinField('qty','cataloginventory/stock_item','qty','product_id=entity_id','{{table}}.stock_id=1','left');
167
- if($filter_by_qty == 'gteq'){
168
- $qty = $post_data['qty'];
169
- $products->addFieldToFilter('qty',Array('gteq'=>$qty));
170
- }elseif($filter_by_qty == 'lteq'){
171
- $qty = $post_data['qty'];
172
- $products->addFieldToFilter('qty',Array('lteq'=>$qty));
173
- }elseif($filter_by_qty == 'btwn'){
174
- $from_qty = $post_data['from_qty'];
175
- $to_qty = $post_data['to_qty'];
176
- $products->addFieldToFilter('qty',array('from'=>$from_qty, 'to'=>$to_qty));
 
 
 
 
 
177
  }
178
- }
179
 
180
- foreach($products as $product)
181
- {
182
- $product_data = Mage::getModel('catalog/product')->load($product->getId());
183
- $status = $product_data->getStatus();
184
- $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product_data)->getQty();
185
- if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
186
- if($qty == 0 || $product_data->getIsInStock() == 0){$qty = 'Out of Stock';}
187
- $product_list[] = array(
188
- 'id' => $product->getId(),
189
- 'sku' => $product_data->getSku(),
190
- 'name' => $product_data->getName(),
191
- 'status' => $status,
192
- 'qty' => $qty,
193
- 'price' => strip_tags(Mage::helper('core')->currency(Mage::helper('mobileassistant')->getPriceFormat($product_data->getPrice()))),
194
- 'type' => $product->getTypeId()
195
  );
 
196
  }
197
-
198
- $productListResultArr = array('productlistdata' => $product_list);
199
- $productListResult = Mage::helper('core')->jsonEncode($productListResultArr);
200
- return Mage::app()->getResponse()->setBody($productListResult);
201
  }else{
202
  $isEnable = Mage::helper('core')->jsonEncode(array('enable' => false));
203
  return Mage::app()->getResponse()->setBody($isEnable);
10
  echo $this->__("The Login has expired. Please try log in again.");
11
  return false;
12
  }
 
13
  $storeId = $post_data['storeid'];
14
  $limit = $post_data['limit'];
15
  $offset = $post_data['offset'];
20
  if($offset != null){
21
  $products->addAttributeToFilter('entity_id', array('lt' => $offset));
22
  }
23
+
24
 
25
  if($is_refresh == 1){
26
  $last_fetch_product = $post_data['last_fetch_product'];
44
  'name' => $product_data->getName(),
45
  'status' => $status,
46
  'qty' => $qty,
47
+ 'price' => Mage::helper('mobileassistant')->getPrice($product_data->getPrice()),
48
+ 'image' => ($product_data->getImage())?Mage::helper('catalog/image')->init($product, 'image',$product_data->getImage())->resize(300,330)->keepAspectRatio(true)->constrainOnly(true)->__toString():'N/A',
49
  'type' => $product->getTypeId()
50
  );
51
  }
68
  echo $this->__("The Login has expired. Please try log in again.");
69
  return false;
70
  }
71
+ try{
72
+ $storeId = $post_data['storeid'];
73
+ $productId = $post_data['productid'];
74
+ $product_data = Mage::getModel('catalog/product')->load($productId);
75
+ $status = $product_data->getStatus();
76
+ $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product_data)->getQty();
 
 
 
 
77
 
 
 
 
 
 
 
 
 
 
 
 
78
  if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
 
 
 
 
 
79
 
80
+ if($product_data->getTypeId() == 'grouped'){
81
+ $associated_products = $product_data->getTypeInstance(true)->getAssociatedProducts($product_data);
82
+ }elseif($product_data->getTypeId() == 'configurable'){
83
+ $associated_products = $product_data->getTypeInstance()->getUsedProducts();
84
+ } elseif($product_data->getTypeId() == 'bundle'){
85
+ $associated_products = $product_data->getTypeInstance(true)->getSelectionsCollection($product_data->getTypeInstance(true)->getOptionsIds($product_data), $product_data);
86
+ }
87
+ foreach($associated_products as $associated_product)
88
+ {
89
+ $status = $associated_product->getStatus();
90
+ $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($associated_product)->getQty();
91
+ if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
92
+ if($qty == 0 || $associated_product->getIsInStock() == 0){$qty = 'Out of Stock';}
93
+ $associated_products_details[] = array(
94
+ 'id' => $associated_product->getId(),
95
+ 'sku' => $associated_product->getSku()
96
+ );
97
+
98
+ $associated_products_list[] = array(
99
+ 'id' => $associated_product->getId(),
100
+ 'sku' => $associated_product->getSku(),
101
+ 'name' => $associated_product->getName(),
102
+ 'status' => $status,
103
+ 'qty' => $qty,
104
+ 'price' => Mage::helper('mobileassistant')->getPrice($associated_product->getPrice())
105
+ );
106
+ }
107
+ $product_details[] = array(
108
+ 'id' => $product_data->getId(),
109
+ 'sku' => $product_data->getSku(),
110
+ 'name' => $product_data->getName(),
111
  'status' => $status,
112
  'qty' => $qty,
113
+ 'price' => Mage::helper('mobileassistant')->getPrice($product_data->getPrice()),
114
+ 'desc' => $product_data->getDescription(),
115
+ 'type' => $product_data->getTypeId(),
116
+ 'image' => Mage::getModel('catalog/product_media_config')->getMediaUrl($product_data->getImage()),
117
+ 'special_price' => Mage::helper('mobileassistant')->getPrice($product_data->getSpecialPrice()),
118
+ 'image' => ($product_data->getImage())?Mage::helper('catalog/image')->init($product_data, 'image',$product_data->getImage())->resize(300,330)->keepAspectRatio(true)->constrainOnly(true)->__toString():'N/A',
119
+ 'associated_skus' => $associated_products_details
120
+ );
121
+
122
+ $productResultArr = array('productdata' => $product_details , 'associated_products_list' =>$associated_products_list);
123
+ $productDetailResult = Mage::helper('core')->jsonEncode($productResultArr);
124
+ return Mage::app()->getResponse()->setBody($productDetailResult);
125
+ }catch (Exception $e){
126
+ $product_details = array (
127
+ 'status' => 'error',
128
+ 'message' => $e->getMessage()
129
  );
130
+ return Mage::app()->getResponse()->setBody(Mage::helper('core')->jsonEncode($product_details));
131
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  }else{
133
  $isEnable = Mage::helper('core')->jsonEncode(array('enable' => false));
134
  return Mage::app()->getResponse()->setBody($isEnable);
144
  echo $this->__("The Login has expired. Please try log in again.");
145
  return false;
146
  }
147
+ try{
148
+ $storeId = $post_data['storeid'];
149
+ $filter_by_name = $post_data['filter_by_name'];
150
+ $filter_by_type = $post_data['product_type'];
151
+ $filter_by_qty = $post_data['filter_by_qty'];
152
+
153
+ $products = Mage::getModel('catalog/product')->getCollection()->addStoreFilter($storeId)->setOrder('entity_id', 'desc');
154
+
155
+ if($filter_by_name != null){
156
+ $products->addAttributeToFilter(array(
157
+ array(
158
+ 'attribute' => 'name',
159
+ 'like' => '%'.$filter_by_name.'%'
160
+ ),
161
+ array(
162
+ 'attribute' => 'sku',
163
+ 'like' => '%'.$filter_by_name.'%'
164
+ )
165
+ ));
166
+ }
167
 
168
+ if($filter_by_type != null){
169
+ $products->addFieldToFilter('type_id',Array('eq'=>$filter_by_type));
170
+ }
 
 
 
 
 
 
 
 
 
171
 
172
+ if($filter_by_qty != null){
173
+ $products->joinField('qty','cataloginventory/stock_item','qty','product_id=entity_id','{{table}}.stock_id=1','left');
174
+ if($filter_by_qty == 'gteq'){
175
+ $qty = $post_data['qty'];
176
+ $products->addFieldToFilter('qty',Array('gteq'=>$qty));
177
+ }elseif($filter_by_qty == 'lteq'){
178
+ $qty = $post_data['qty'];
179
+ $products->addFieldToFilter('qty',Array('lteq'=>$qty));
180
+ }elseif($filter_by_qty == 'btwn'){
181
+ $from_qty = $post_data['from_qty'];
182
+ $to_qty = $post_data['to_qty'];
183
+ $products->addFieldToFilter('qty',array('from'=>$from_qty, 'to'=>$to_qty));
184
+ }
185
+ }
186
 
187
+ foreach($products as $product)
188
+ {
189
+ $product_data = Mage::getModel('catalog/product')->load($product->getId());
190
+ $status = $product_data->getStatus();
191
+ $qty = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product_data)->getQty();
192
+ if($status == 1){$status = 'Enabled';}else{$status = 'Disabled';}
193
+ if($qty == 0 || $product_data->getIsInStock() == 0){$qty = 'Out of Stock';}
194
+ $product_list[] = array(
195
+ 'id' => $product->getId(),
196
+ 'sku' => $product_data->getSku(),
197
+ 'name' => $product_data->getName(),
198
+ 'status' => $status,
199
+ 'qty' => $qty,
200
+ 'price' => Mage::helper('mobileassistant')->getPrice($product_data->getPrice()),
201
+ 'type' => $product->getTypeId(),
202
+ 'image' => ($product_data->getImage())?Mage::helper('catalog/image')->init($product, 'image',$product_data->getImage())->resize(300,330)->keepAspectRatio(true)->constrainOnly(true)->__toString():'N/A',
203
+ );
204
  }
 
205
 
206
+ $productListResultArr = array('productlistdata' => $product_list);
207
+ $productListResult = Mage::helper('core')->jsonEncode($productListResultArr);
208
+ return Mage::app()->getResponse()->setBody($productListResult);
209
+ }catch (Exception $e){
210
+ $product_list = array (
211
+ 'status' => 'error',
212
+ 'message' => $e->getMessage()
 
 
 
 
 
 
 
 
213
  );
214
+ return Mage::app()->getResponse()->setBody(Mage::helper('core')->jsonEncode($product_list));
215
  }
 
 
 
 
216
  }else{
217
  $isEnable = Mage::helper('core')->jsonEncode(array('enable' => false));
218
  return Mage::app()->getResponse()->setBody($isEnable);
app/code/local/Biztech/Mobileassistant/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Biztech_Mobileassistant>
13
- <version>0.1.4</version>
14
  </Biztech_Mobileassistant>
15
  </modules>
16
  <frontend>
10
  <config>
11
  <modules>
12
  <Biztech_Mobileassistant>
13
+ <version>0.1.5</version>
14
  </Biztech_Mobileassistant>
15
  </modules>
16
  <frontend>
app/code/local/Biztech/Mobileassistant/sql/mobileassistant_setup/mysql4-install-0.1.0.php CHANGED
@@ -12,7 +12,9 @@
12
  `username` varchar(255) NOT NULL default '',
13
  `apikey` varchar(40) NOT NULL default '',
14
  `device_token` varchar(255) NOT NULL default '',
 
15
  `notification_flag` smallint(11) NOT NULL default '1',
 
16
  PRIMARY KEY (`user_id`)
17
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
18
 
12
  `username` varchar(255) NOT NULL default '',
13
  `apikey` varchar(40) NOT NULL default '',
14
  `device_token` varchar(255) NOT NULL default '',
15
+ `device_type` varchar(255) NOT NULL default '',
16
  `notification_flag` smallint(11) NOT NULL default '1',
17
+ `is_logout` smallint(11) NOT NULL default '0',
18
  PRIMARY KEY (`user_id`)
19
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
20
 
app/code/local/Biztech/Mobileassistant/sql/mobileassistant_setup/mysql4-upgrade-0.1.0-0.1.4.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+
8
+ $installer->endSetup();
app/code/local/Biztech/Mobileassistant/sql/mobileassistant_setup/mysql4-upgrade-0.1.4-0.1.5.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ $installer->run("
8
+
9
+
10
+ ALTER TABLE `{$this->getTable('mobileassistant')}` ADD `device_type` VARCHAR( 255 ) NOT NULL DEFAULT '',
11
+ ADD `is_logout` SMALLINT( 11 ) NOT NULL DEFAULT '0';
12
+
13
+ ");
14
+
15
+
16
+ $installer->endSetup();
app/etc/modules/Biztech_All.xml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Biztech
5
+ * @package Biztech_All
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Biztech_All>
13
+ <active>true</active>
14
+ <codePool>local</codePool>
15
+ </Biztech_All>
16
+ </modules>
17
+ <adminhtml>
18
+ <acl>
19
+ <resources>
20
+ <all>
21
+ <title>Allow Everything</title>
22
+ </all>
23
+ <admin>
24
+ <children>
25
+ <Biztech_All>
26
+ <title>All</title>
27
+ <sort_order>10</sort_order>
28
+ </Biztech_All>
29
+ <system>
30
+ <children>
31
+ <config>
32
+ <children>
33
+ <all>
34
+ <title>All</title>
35
+ </all>
36
+ </children>
37
+ </config>
38
+ </children>
39
+ </system>
40
+ </children>
41
+ </admin>
42
+ </resources>
43
+ </acl>
44
+ <layout>
45
+ <updates>
46
+ <all>
47
+ <file>all.xml</file>
48
+ </all>
49
+ </updates>
50
+ </layout>
51
+ </adminhtml>
52
+ </config>
app/etc/modules/Biztech_Mobileassistant.xml CHANGED
@@ -1,17 +1,17 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @category Biztech
5
- * @package Biztech_Mobileassistant
6
- * @author ModuleCreator
7
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
- */
9
- -->
10
- <config>
11
- <modules>
12
- <Biztech_Mobileassistant>
13
- <active>true</active>
14
- <codePool>local</codePool>
15
- </Biztech_Mobileassistant>
16
- </modules>
17
- </config>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Biztech
5
+ * @package Biztech_Mobileassistant
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Biztech_Mobileassistant>
13
+ <active>true</active>
14
+ <codePool>local</codePool>
15
+ </Biztech_Mobileassistant>
16
+ </modules>
17
+ </config>
lib/mobileassistant/magentoPushDst.pem DELETED
@@ -1,69 +0,0 @@
1
- Bag Attributes
2
- friendlyName: Apple Production IOS Push Services: com.biztech.magentoMobileManager
3
- localKeyID: 4B 0C D6 48 EA 0C AA FB 86 C2 3B 84 90 27 E1 D7 01 33 0F C8
4
- subject=/UID=com.biztech.magentoMobileManager/CN=Apple Production IOS Push Services: com.biztech.magentoMobileManager/OU=94B9E2W92T/C=IN
5
- issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
6
- -----BEGIN CERTIFICATE-----
7
- MIIFpDCCBIygAwIBAgIIPEeH22/5WAAwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV
8
- BAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3Js
9
- ZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3
10
- aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkw
11
- HhcNMTQwNDIxMDk0OTIwWhcNMTUwNDIxMDk0OTIwWjCBozEwMC4GCgmSJomT8ixk
12
- AQEMIGNvbS5iaXp0ZWNoLm1hZ2VudG9Nb2JpbGVNYW5hZ2VyMU0wSwYDVQQDDERB
13
- cHBsZSBQcm9kdWN0aW9uIElPUyBQdXNoIFNlcnZpY2VzOiBjb20uYml6dGVjaC5t
14
- YWdlbnRvTW9iaWxlTWFuYWdlcjETMBEGA1UECwwKOTRCOUUyVzkyVDELMAkGA1UE
15
- BhMCSU4wggEiMA0GCSqGSIb3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YIKwYBBQUH
31
- AwIwEAYKKoZIhvdjZAYDAgQCBQAwDQYJKoZIhvcNAQEFBQADggEBACK/NarzSdwm
32
- m3pJt1R3JsVsH3Psr+stOGSEuaGOoiGf9Rp8VxgHPJMPbSMcRw6C23wak/yCrXRU
33
- 0I/4u2baQl2dMq+WQGBLLPkdrGwMIOLwDN8BOak5d7kGiOkZp5qfCkGl3zKBI3wf
34
- 4TUc+6xh09HZY5cd/rc3mAQkhQaNiZjkGTddXdQZ+fYqWyMPk+4qQ0/TOC9dz3sx
35
- Oyni58v5yDR40hcu0NDYYbHEEUsh/NNIBtUoNO9KjZbO4RyIw5VaIEOrKqiQ8BB0
36
- 2kiQXqmL/gcZp/lieIQX+YNEKrFita+3JwZqjrGPvsTCg7JA7ZjJsEdZCMlT9wKX
37
- qe7zoMyJqh0=
38
- -----END CERTIFICATE-----
39
- Bag Attributes
40
- friendlyName: MMMDst
41
- localKeyID: 4B 0C D6 48 EA 0C AA FB 86 C2 3B 84 90 27 E1 D7 01 33 0F C8
42
- Key Attributes: <No Attributes>
43
- -----BEGIN RSA PRIVATE KEY-----
44
- MIIEpAIBAAKCAQEAnPAokvYyBvrqTK3us/Oc2ypZQpI5xKU2oCR2pq6SsHv6xGY6
45
- lnkN//bgyVb9obdrv5c4rn3+2jkKkPVjObamx+yHZBmF5qc4Cnwsblcci0OUawHI
46
- P2C7PL8KwdqbZSo1Yd0LPRp7EQ1RrTn44WGeoaQm4tvyTPn44V7EcxKm8u5gJqPn
47
- OKKfHoLU2mYcNv7U9NWjgbqW7mulTeJyxtnGQoVCnG+aG8z1sVZuZN3oUhkT1fYF
48
- pOE/hXRBwS+53tc0dTu07eMEpJH2nXGAWhuFVQbGEFH3gpTjB223UYTj0dNneoCZ
49
- fSEcO3ZpSQHkAjdk6Ho/INrYzFIHp9z23QUYHwIDAQABAoIBAQCCXCL34DUyAx64
50
- TwomxEcY7hZy68+8fpffcip0zjHfEzz8AwbLkwaEBeg2lmHcAOYpoU1d9B7L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82ZMp1uv1fFUqdZoVbkO
67
- rvXlLLjMpoG6i27jIgfuCpTb91UWqTdBpnSf9w9SEeOl4Y+07hpjuwDJP3ZL0Ute
68
- lSizjx1cSfpNL9ZiF6g2u0NXHxpV3z3+HWDUOIX+SA+SarjzATT/qw==
69
- -----END RSA PRIVATE KEY-----
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/mobileassistant/pushcert.pem ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Bag Attributes
2
+ friendlyName: Apple Production IOS Push Services: com.biztech.magentoMobileManager
3
+ localKeyID: 4B 0C D6 48 EA 0C AA FB 86 C2 3B 84 90 27 E1 D7 01 33 0F C8
4
+ subject=/UID=com.biztech.magentoMobileManager/CN=Apple Production IOS Push Services: com.biztech.magentoMobileManager/OU=94B9E2W92T/C=IN
5
+ issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
6
+ -----BEGIN CERTIFICATE-----
7
+ MIIFpDCCBIygAwIBAgIIVkC9X94CuccwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV
8
+ BAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3Js
9
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24gdGhpcyBjZXJ0aWZpY2F0ZSBieSBhbnkgcGFydHkgYXNz
25
+ dW1lcyBhY2NlcHRhbmNlIG9mIHRoZSB0aGVuIGFwcGxpY2FibGUgc3RhbmRhcmQg
26
+ dGVybXMgYW5kIGNvbmRpdGlvbnMgb2YgdXNlLCBjZXJ0aWZpY2F0ZSBwb2xpY3kg
27
+ YW5kIGNlcnRpZmljYXRpb24gcHJhY3RpY2Ugc3RhdGVtZW50cy4wKQYIKwYBBQUH
28
+ AgEWHWh0dHA6Ly93d3cuYXBwbGUuY29tL2FwcGxlY2EvME0GA1UdHwRGMEQwQqBA
29
+ oD6GPGh0dHA6Ly9kZXZlbG9wZXIuYXBwbGUuY29tL2NlcnRpZmljYXRpb25hdXRo
30
+ b3JpdHkvd3dkcmNhLmNybDALBgNVHQ8EBAMCB4AwEwYDVR0lBAwwCgYIKwYBBQUH
31
+ AwIwEAYKKoZIhvdjZAYDAgQCBQAwDQYJKoZIhvcNAQEFBQADggEBADD/6ctjMDMQ
32
+ 3WCsvKYBIZlcd5fvuuPsK+J7QeE6NTFwRE+K/cgsuDmcXBcWSA5+j8B/lpy5eerJ
33
+ U7R+SnsqGxYulVMhcqaa47ctfvctfSqdsQ6JFliVFRPnxceTz9DeuJwC1owWZ8Rk
34
+ rC33LogM7z7wSU9KOxmRKestVEDMIieZyNcOTPqkOMXUg70oPPFDdaV3V+oN3iBi
35
+ SuKySD9onFdgQ11Aatbwf6uEX2ijhG1VnfAEJ/7BnULEY25FowPgvUyFj/9cusko
36
+ /wcrReGsbiYHsRDa9D8d3OaSeCAeYgl0azZ96ejE/NZfXN1jqM2eQAMK5qdZCj1R
37
+ NuAlS9wEReY=
38
+ -----END CERTIFICATE-----
39
+ Bag Attributes
40
+ friendlyName: Apple Production IOS Push Services: com.biztech.magentoMobileManager
41
+ localKeyID: 4B 0C D6 48 EA 0C AA FB 86 C2 3B 84 90 27 E1 D7 01 33 0F C8
42
+ subject=/UID=com.biztech.magentoMobileManager/CN=Apple Production IOS Push Services: com.biztech.magentoMobileManager/OU=94B9E2W92T/C=IN
43
+ issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority
44
+ -----BEGIN CERTIFICATE-----
45
+ MIIFpDCCBIygAwIBAgIIVkC9X94CuccwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV
46
+ BAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3Js
47
+ ZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3
48
+ aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkw
49
+ HhcNMTQxMjA0MTA0NTAwWhcNMTUxMjA0MTA0NTAwWjCBozEwMC4GCgmSJomT8ixk
50
+ AQEMIGNvbS5iaXp0ZWNoLm1hZ2VudG9Nb2JpbGVNYW5hZ2VyMU0wSwYDVQQDDERB
51
+ cHBsZSBQcm9kdWN0aW9uIElPUyBQdXNoIFNlcnZpY2VzOiBjb20uYml6dGVjaC5t
52
+ YWdlbnRvTW9iaWxlTWFuYWdlcjETMBEGA1UECwwKOTRCOUUyVzkyVDELMAkGA1UE
53
+ BhMCSU4wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCc8CiS9jIG+upM
54
+ re6z85zbKllCkjnEpTagJHamrpKwe/rEZjqWeQ3/9uDJVv2ht2u/lziuff7aOQqQ
55
+ 9WM5tqbH7IdkGYXmpzgKfCxuVxyLQ5RrAcg/YLs8vwrB2ptlKjVh3Qs9GnsRDVGt
56
+ OfjhYZ6hpCbi2/JM+fjhXsRzEqby7mAmo+c4op8egtTaZhw2/tT01aOBupbua6VN
57
+ 4nLG2cZChUKcb5obzPWxVm5k3ehSGRPV9gWk4T+FdEHBL7ne1zR1O7Tt4wSkkfad
58
+ cYBaG4VVBsYQUfeClOMH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J/7BnULEY25FowPgvUyFj/9cusko
74
+ /wcrReGsbiYHsRDa9D8d3OaSeCAeYgl0azZ96ejE/NZfXN1jqM2eQAMK5qdZCj1R
75
+ NuAlS9wEReY=
76
+ -----END CERTIFICATE-----
77
+ Bag Attributes
78
+ friendlyName: MMMDst
79
+ localKeyID: 4B 0C D6 48 EA 0C AA FB 86 C2 3B 84 90 27 E1 D7 01 33 0F C8
80
+ Key Attributes: <No Attributes>
81
+ -----BEGIN RSA PRIVATE KEY-----
82
+ MIIEpAIBAAKCAQEAnPAokvYyBvrqTK3us/Oc2ypZQpI5xKU2oCR2pq6SsHv6xGY6
83
+ lnkN//bgyVb9obdrv5c4rn3+2jkKkPVjObamx+yHZBmF5qc4Cnwsblcci0OUawHI
84
+ P2C7PL8KwdqbZSo1Yd0LPRp7EQ1RrTn44WGeoaQm4tvyTPn44V7EcxKm8u5gJqPn
85
+ OKKfHoLU2mYcNv7U9NWjgbqW7mulTeJyxtnGQoVCnG+aG8z1sVZuZN3oUhkT1fYF
86
+ pOE/hXRBwS+53tc0dTu07eMEpJH2nXGAWhuFVQbGEFH3gpTjB223UYTj0dNneoCZ
87
+ fSEcO3ZpSQHkAjdk6Ho/INrYzFIHp9z23QUYHwIDAQABAoIBAQCCXCL34DUyAx64
88
+ TwomxEcY7hZy68+8fpffcip0zjHfEzz8AwbLkwaEBeg2lmHcAOYpoU1d9B7L2fHi
89
+ 81JW0Fe9XcYg6eqF64TrgLXPeeCl9Z7FPBfAPXOKRA6FdDb8U5FAF0KMoQB066Fa
90
+ yPrpDBOepSH/8z9TnZiUbAm2pFm1E+vvi/XSZuYx9wgef2UYuFmgDaNtq6PSD/mN
91
+ YCX7L43hDFpDZXPQ02l5BpOOMwAaVh1HR8Fdb2JRjlhvDuf97ibdWHSsex5Wvms2
92
+ HfPtTuFtfTV6o9X+7pzmPIg9H1ItHbZxLfNfgvjpdVHi1Um982qGEnZupXPcFyC/
93
+ Qk0wu34BAoGBAM9PTBslj1n/NHhRqJFasYuwJNwQw6v3PJDDCwptq2MjpSts8AQ/
94
+ lBsZtt8AzXwaA84sN4b+MDxGkgdRZwlrEiIZ0hATVB6MOTvUaVxl8AEN0CWJhLcw
95
+ UU9lfX60KeWLSHw0FPircdXSLXQ15DI/D0FU58DhG/86tyy4KVqz4gWBAoGBAMHM
96
+ N5PztwfL3emdQWLoIHgFB73vlOY3o3/jC3V//T1zMRwzHudYdXzeEWXamF+XTN43
97
+ 2gyF3SIz/691eikNFU2+bKJ9FyETYvGiRHvlVY3x6iiEWaiONbbXdON7ABYAuBDp
98
+ FNgHtNwXybLe68mntP0rBPrwF+yRxQFfoL22rC2fAoGAcAxuGCYe6wey9m08bQPV
99
+ /qg/4+nzuJiy1ZN1/jb0cWsstOH2gHVUuakWXEX0ymTNNbxUbtQogguqleX7iO2k
100
+ KWZHUYUA7Fnh/WJ7aAN4yzkKDZ/caZ7l88HpKHh8RKMZlHgZ9aXEq0skYjFWm4nV
101
+ 1vvrHycMmNDFfJg1Ud70BQECgYBUL1cxURyAKYJDukkuIvH/0QeU7Z88Bo1iv4k5
102
+ yJiEeiaqPla9XoLi9ECQg03PsJT2r0JsUDZIZlg6qwifDozjkcX1K+vBNX+0wa2I
103
+ OI5as+zpHt0nyGby/1NKgiL+a9+JkQa59VcOiNLYfdflaJHJrEdkjqmF3ai7uQPF
104
+ hbXztwKBgQCIQo5tlpgCeZm15C+BJtjz/G98sAFF1YSl82ZMp1uv1fFUqdZoVbkO
105
+ rvXlLLjMpoG6i27jIgfuCpTb91UWqTdBpnSf9w9SEeOl4Y+07hpjuwDJP3ZL0Ute
106
+ lSizjx1cSfpNL9ZiF6g2u0NXHxpV3z3+HWDUOIX+SA+SarjzATT/qw==
107
+ -----END RSA PRIVATE KEY-----
108
+ Bag Attributes
109
+ friendlyName: MMMDst
110
+ localKeyID: 4B 0C D6 48 EA 0C AA FB 86 C2 3B 84 90 27 E1 D7 01 33 0F C8
111
+ Key Attributes: <No Attributes>
112
+ -----BEGIN RSA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U2+bKJ9FyETYvGiRHvlVY3x6iiEWaiONbbXdON7ABYAuBDp
129
+ FNgHtNwXybLe68mntP0rBPrwF+yRxQFfoL22rC2fAoGAcAxuGCYe6wey9m08bQPV
130
+ /qg/4+nzuJiy1ZN1/jb0cWsstOH2gHVUuakWXEX0ymTNNbxUbtQogguqleX7iO2k
131
+ KWZHUYUA7Fnh/WJ7aAN4yzkKDZ/caZ7l88HpKHh8RKMZlHgZ9aXEq0skYjFWm4nV
132
+ 1vvrHycMmNDFfJg1Ud70BQECgYBUL1cxURyAKYJDukkuIvH/0QeU7Z88Bo1iv4k5
133
+ yJiEeiaqPla9XoLi9ECQg03PsJT2r0JsUDZIZlg6qwifDozjkcX1K+vBNX+0wa2I
134
+ OI5as+zpHt0nyGby/1NKgiL+a9+JkQa59VcOiNLYfdflaJHJrEdkjqmF3ai7uQPF
135
+ hbXztwKBgQCIQo5tlpgCeZm15C+BJtjz/G98sAFF1YSl82ZMp1uv1fFUqdZoVbkO
136
+ rvXlLLjMpoG6i27jIgfuCpTb91UWqTdBpnSf9w9SEeOl4Y+07hpjuwDJP3ZL0Ute
137
+ lSizjx1cSfpNL9ZiF6g2u0NXHxpV3z3+HWDUOIX+SA+SarjzATT/qw==
138
+ -----END RSA PRIVATE KEY-----
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.4</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,12 @@ 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>-Enhancements : Create customer notification,sales order graph enhancement</notes>
 
29
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
30
- <date>2014-04-28</date>
31
- <time>09:25:17</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="30fb03678f0002999f42d7bede494028"/></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="a2c62e8cb6f419ee3d95f329198c9764"/></dir><dir name="controllers"><file name="CustomerController.php" hash="6cf059f33f1e9e83c71bed7c908ec5a8"/><file name="DashboardController.php" hash="54bd48f6fe2c6ce6182543db3c2d29d1"/><file name="IndexController.php" hash="2f2c8bf469ee50e1313e3d8e495f6f08"/><file name="OrderController.php" hash="553fb25c4796f7507b511b6f8b89f133"/><file name="ProductController.php" hash="d28477a89fe9d2e6411ef9150e9475c6"/></dir><dir name="etc"><file name="api.xml" hash="f7d93508ce53982484f0d1f9ab3a17cd"/><file name="config.xml" hash="ec55e3aeff0c233337c77917b15c6af3"/><file name="system.xml" hash="b062295645d20f789202dbded88392af"/></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="magentoPushDst.pem" hash="2c693d7a536bcac3e609a8ee0e232dd2"/></dir></dir></target></contents>
33
  <compatible/>
34
  <dependencies><required><php><min>5.3.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.5</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>-Design changes and enhancements&#xD;
29
+ - Minor bug fixing</notes>
30
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
31
+ <date>2014-12-04</date>
32
+ <time>12:49:46</time>
33
+ <contents><target name="mageetc"><dir name="modules"><file name="Biztech_Mobileassistant.xml" hash="18d9cf7b8e516db899336adfd8210621"/><file name="Biztech_All.xml" hash="f4c3b9c029e56da8f09d7d71336c00f7"/></dir></target><target name="magelocal"><dir name="Biztech"><dir name="Mobileassistant"><dir name="Helper"><file name="Data.php" hash="cbfc923836438785a34195a1faa99987"/></dir><dir name="Model"><dir name="Mobileassistant"><file name="Api.php" hash="57926db8e2acff7b284088500ed7302d"/></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="a2c62e8cb6f419ee3d95f329198c9764"/></dir><dir name="controllers"><file name="CustomerController.php" hash="aaf24e12476bd8e91d19b0f68faf9ea4"/><file name="DashboardController.php" hash="54bd48f6fe2c6ce6182543db3c2d29d1"/><file name="IndexController.php" hash="36864c2030911b40a39aed1302517b33"/><file name="OrderController.php" hash="914b25055db435b6f4b49d68d15ea3ed"/><file name="ProductController.php" hash="d061880b478856434353fda608e8e0c9"/></dir><dir name="etc"><file name="api.xml" hash="f7d93508ce53982484f0d1f9ab3a17cd"/><file name="config.xml" hash="0354134054f1fd02f7934745605b4490"/><file name="system.xml" hash="b062295645d20f789202dbded88392af"/></dir><dir name="sql"><dir name="mobileassistant_setup"><file name="mysql4-install-0.1.0.php" hash="52378729626b54add03e0f74687211c9"/><file name="mysql4-upgrade-0.1.0-0.1.4.php" hash="9b2df01d956af38e26546bdb8e64d389"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="fc505b6c69fbd4d9070ce2a0e6f331f5"/></dir></dir></dir><dir name="All"><dir name="Helper"><file name="Data.php" hash="e856726fd089e7f73ca7de450b696419"/></dir><dir name="Model"><file name="All.php" hash="a9aeeb9c6d7be9cf20414f405efc878d"/><dir name="Mysql4"><dir name="All"><file name="Collection.php" hash="a1909236183d126f38e628b85bb57e81"/></dir><file name="All.php" hash="f02542393eb26eadfb9b92d901d2ac12"/></dir><dir name="Source"><dir name="Updates"><file name="Type.php" hash="fa695bf4764c2d93c7436ed54bde89ba"/></dir></dir><file name="Status.php" hash="30a6f0da7d9d45e1082da532d5f8dabc"/><file name="Update.php" hash="83ceddbab4d621545b9c7c4bccdec7c0"/></dir><dir name="etc"><file name="config.xml" hash="27e403cedb861da03753d28527d9c664"/><file name="system.xml" hash="17262087dc933d934e09ac04cafb4c51"/></dir></dir></dir></target><target name="mage"><dir name="lib"><dir name="mobileassistant"><file name="pushcert.pem" hash="37a517e3bdd6ee2e4c61af6699f7f21b"/></dir></dir></target></contents>
34
  <compatible/>
35
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
36
  </package>