magento_mobile_assistant_manager - Version 0.1.3

Version Notes

-Fix url testing issue.

Download this release

Release Info

Developer Biztech
Extension magento_mobile_assistant_manager
Version 0.1.3
Comparing to
See all releases


Code changes from version 0.1.2 to 0.1.3

app/code/local/Biztech/Mobileassistant/Model/Observer.php CHANGED
@@ -1,46 +1,46 @@
1
- <?php
2
- class Biztech_Mobileassistant_Model_Observer
3
- {
4
- private static $_handleCustomerFirstOrderCounter = 1;
5
- public function sales_order_save_after(Varien_Event_Observer $observer)
6
- {
7
- if (Mage::app()->getRequest()->getControllerName()=='onepage'){
8
- if(Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled')){
9
- if (self::$_handleCustomerFirstOrderCounter > 1) {
10
- return $this;
11
- }
12
- self::$_handleCustomerFirstOrderCounter++;
13
- $collections = Mage::getModel("mobileassistant/mobileassistant")->getCollection()->addFieldToFilter('notification_flag',Array('eq'=>1));
14
- $passphrase = 'magento123';
15
- $message = Mage::getStoreConfig('mobileassistant/mobileassistant_general/notification_msg');
16
- if($message == null){
17
- $message = Mage::helper('mobileassistant')->__('Placed new order in your store..!');
18
- }
19
- $apnsCert = Mage::getBaseDir('lib'). DS. "mobileassistant/ck.pem";
20
- $ctx = stream_context_create();
21
- stream_context_set_option($ctx, 'ssl', 'local_cert', $apnsCert);
22
- stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
23
- $flags = STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT;
24
-
25
- $fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err,$errstr, 60, $flags, $ctx);
26
-
27
-
28
-
29
- if ($fp){
30
- foreach($collections as $collection){
31
- $deviceToken = $collection->getDeviceToken();
32
- $body['aps'] = array(
33
- 'alert' => $message,
34
- 'sound' => 'default'
35
- );
36
- $payload = json_encode($body);
37
- $msg = chr(0) . pack('n', 32) . pack('H*', $deviceToken) . pack('n', strlen($payload)) . $payload;
38
- $result = fwrite($fp, $msg, strlen($msg));
39
- }
40
- fclose($fp);
41
- }
42
- return true;
43
- }
44
- }
45
- }
46
- }
1
+ <?php
2
+ class Biztech_Mobileassistant_Model_Observer
3
+ {
4
+ private static $_handleCustomerFirstOrderCounter = 1;
5
+ public function sales_order_save_after(Varien_Event_Observer $observer)
6
+ {
7
+ if (Mage::app()->getRequest()->getControllerName()=='onepage'){
8
+ if(Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled')){
9
+ if (self::$_handleCustomerFirstOrderCounter > 1) {
10
+ return $this;
11
+ }
12
+ self::$_handleCustomerFirstOrderCounter++;
13
+ $collections = Mage::getModel("mobileassistant/mobileassistant")->getCollection()->addFieldToFilter('notification_flag',Array('eq'=>1));
14
+ $passphrase = 'magento123';
15
+ $message = Mage::getStoreConfig('mobileassistant/mobileassistant_general/notification_msg');
16
+ if($message == null){
17
+ $message = Mage::helper('mobileassistant')->__('A New order has been received on the Store.');
18
+ }
19
+ $apnsCert = Mage::getBaseDir('lib'). DS. "mobileassistant/ck.pem";
20
+ $ctx = stream_context_create();
21
+ stream_context_set_option($ctx, 'ssl', 'local_cert', $apnsCert);
22
+ stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
23
+ $flags = STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT;
24
+
25
+ $fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err,$errstr, 60, $flags, $ctx);
26
+
27
+
28
+
29
+ if ($fp){
30
+ foreach($collections as $collection){
31
+ $deviceToken = $collection->getDeviceToken();
32
+ $body['aps'] = array(
33
+ 'alert' => $message,
34
+ 'sound' => 'default'
35
+ );
36
+ $payload = json_encode($body);
37
+ $msg = chr(0) . pack('n', 32) . pack('H*', $deviceToken) . pack('n', strlen($payload)) . $payload;
38
+ $result = fwrite($fp, $msg, strlen($msg));
39
+ }
40
+ fclose($fp);
41
+ }
42
+ return true;
43
+ }
44
+ }
45
+ }
46
+ }
app/code/local/Biztech/Mobileassistant/controllers/CustomerController.php CHANGED
@@ -7,7 +7,7 @@
7
  $post_data = Mage::app()->getRequest()->getParams();
8
  $sessionId = $post_data['session'];
9
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
10
- echo $this->__("Session expired....Please Login again");
11
  return false;
12
  }
13
  $limit = $post_data['limit'];
@@ -46,7 +46,7 @@
46
  $post_data = Mage::app()->getRequest()->getParams();
47
  $sessionId = $post_data['session'];
48
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
49
- echo $this->__("Session expired....Please Login again");
50
  return false;
51
  }
52
  $customer_id = $post_data['customer_id'];
@@ -137,7 +137,7 @@
137
  $post_data = Mage::app()->getRequest()->getParams();
138
  $sessionId = $post_data['session'];
139
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
140
- echo $this->__("Session expired....Please Login again");
141
  return false;
142
  }
143
  $search = $post_data['search_content'];
7
  $post_data = Mage::app()->getRequest()->getParams();
8
  $sessionId = $post_data['session'];
9
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
10
+ echo $this->__("The Login has expired. Please try log in again.");
11
  return false;
12
  }
13
  $limit = $post_data['limit'];
46
  $post_data = Mage::app()->getRequest()->getParams();
47
  $sessionId = $post_data['session'];
48
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
49
+ echo $this->__("The Login has expired. Please try log in again.");
50
  return false;
51
  }
52
  $customer_id = $post_data['customer_id'];
137
  $post_data = Mage::app()->getRequest()->getParams();
138
  $sessionId = $post_data['session'];
139
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
140
+ echo $this->__("The Login has expired. Please try log in again.");
141
  return false;
142
  }
143
  $search = $post_data['search_content'];
app/code/local/Biztech/Mobileassistant/controllers/DashboardController.php CHANGED
@@ -7,7 +7,7 @@
7
  $post_data = Mage::app()->getRequest()->getParams();
8
  $sessionId = $post_data['session'];
9
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
10
- echo $this->__("Session expired....Please Login again");
11
  return false;
12
  }
13
 
7
  $post_data = Mage::app()->getRequest()->getParams();
8
  $sessionId = $post_data['session'];
9
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
10
+ echo $this->__("The Login has expired. Please try log in again.");
11
  return false;
12
  }
13
 
app/code/local/Biztech/Mobileassistant/controllers/IndexController.php CHANGED
@@ -4,39 +4,75 @@
4
  public function indexAction()
5
  {
6
  if(Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled')){
7
- $details = Mage::app()->getRequest()->getParams();
8
- $user = $details['userapi'];
9
- $api_key = $details['keyapi'];
10
- $deviceToken = $details['token'];
11
- $flag = $details['notification_flag'];
12
- $url = $details['magento_url'].'/api/soap?wsdl';
13
-
14
- try{
15
- $soap = new SoapClient($url);
16
- $session_id = $soap->login($user, $api_key);
 
 
17
  }
18
- catch(Exception $e){
19
- echo $e->getMessage();
20
- return false;
21
- }
22
- if($session_id){
23
- $data[] = array('user' => $user,'key' => $api_key,'devicetoken'=>$deviceToken,'session_id' => $session_id,'notification_flag'=> $flag);
24
- $result = $soap->call($session_id,'mobileassistant.create',$data);
25
- $jsonData = Mage::helper('core')->jsonEncode($result);
26
- return Mage::app()->getResponse()->setBody($jsonData);
27
- }
28
- }else{
29
- return Mage::app()->getResponse()->setBody("Please enable this feature");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
 
 
31
  }
32
 
33
  public function testModuleAction()
34
  {
35
  if(Mage::getConfig()->getModuleConfig('Biztech_Mobileassistant')->is('active', 'true') && Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled'))
36
- {
37
- $result['success'] = $this->__('Module is activated on this url');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }else{
39
- $result['error'] = $this->__('Please activate this module on this url.');
40
  }
41
  $jsonData = Mage::helper('core')->jsonEncode($result);
42
  return Mage::app()->getResponse()->setBody($jsonData);
@@ -68,7 +104,7 @@
68
  } catch (Exception $e){
69
  return $e->getMessage();
70
  }
71
- $successArr[] = array('success_msg' => 'Settings update sucessfully') ;
72
  $result = Mage::helper('core')->jsonEncode($successArr);
73
  return Mage::app()->getResponse()->setBody($result);
74
  }
4
  public function indexAction()
5
  {
6
  if(Mage::getStoreConfig('mobileassistant/mobileassistant_general/enabled')){
7
+ $isSecure = Mage::app()->getFrontController()->getRequest()->isSecure();
8
+ $validate_url = false;
9
+ if($isSecure)
10
+ {
11
+ if(Mage::getStoreConfig('web/secure/base_url') == Mage::getStoreConfig('web/secure/base_link_url')){
12
+ $validate_url = true;
13
+ }
14
+ }else
15
+ {
16
+ if(Mage::getStoreConfig('web/unsecure/base_url') == Mage::getStoreConfig('web/unsecure/base_link_url')){
17
+ $validate_url = true;
18
+ }
19
  }
20
+ if($validate_url){
21
+ $details = Mage::app()->getRequest()->getParams();
22
+ $user = $details['userapi'];
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);
30
+ $session_id = $soap->login($user, $api_key);
31
+ }
32
+ catch(SoapFault $fault){
33
+ $result['error'] = $fault->getMessage();
34
+ $jsonData = Mage::helper('core')->jsonEncode($result);
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);
42
+ }
43
+ }else{
44
+ $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.');
45
+ }
46
+ }else{
47
+ $result['error'] = $this->__('Please activate the Mobile Assistant Extension on the Magento Store.');
48
  }
49
+ $jsonData = Mage::helper('core')->jsonEncode($result);
50
+ return Mage::app()->getResponse()->setBody($jsonData);
51
  }
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();
58
+ $validate_url = false;
59
+ if($isSecure)
60
+ {
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.');
73
+ }
74
  }else{
75
+ $result['error'] = $this->__('Please activate the Mobile Assistant Extension on the Magento Store.');
76
  }
77
  $jsonData = Mage::helper('core')->jsonEncode($result);
78
  return Mage::app()->getResponse()->setBody($jsonData);
104
  } catch (Exception $e){
105
  return $e->getMessage();
106
  }
107
+ $successArr[] = array('success_msg' => 'Settings updated sucessfully') ;
108
  $result = Mage::helper('core')->jsonEncode($successArr);
109
  return Mage::app()->getResponse()->setBody($result);
110
  }
app/code/local/Biztech/Mobileassistant/controllers/OrderController.php CHANGED
@@ -7,7 +7,7 @@
7
  $post_data = Mage::app()->getRequest()->getParams();
8
  $sessionId = $post_data['session'];
9
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
10
- echo $this->__("Session expired....Please Login again");
11
  return false;
12
  }
13
 
@@ -61,7 +61,7 @@
61
  $sessionId = $post_data['session'];
62
 
63
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
64
- echo $this->__("Session expired....Please Login again");
65
  return false;
66
  }
67
  $filter_by_date = $post_data['filter_by_date'];
@@ -126,7 +126,7 @@
126
  $post_data = Mage::app()->getRequest()->getParams();
127
  $sessionId = $post_data['session'];
128
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
129
- echo $this->__("Session expired....Please Login again");
130
  return false;
131
  }
132
 
7
  $post_data = Mage::app()->getRequest()->getParams();
8
  $sessionId = $post_data['session'];
9
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
10
+ echo $this->__("The Login has expired. Please try log in again.");
11
  return false;
12
  }
13
 
61
  $sessionId = $post_data['session'];
62
 
63
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
64
+ echo $this->__("The Login has expired. Please try log in again.");
65
  return false;
66
  }
67
  $filter_by_date = $post_data['filter_by_date'];
126
  $post_data = Mage::app()->getRequest()->getParams();
127
  $sessionId = $post_data['session'];
128
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
129
+ echo $this->__("The Login has expired. Please try log in again.");
130
  return false;
131
  }
132
 
app/code/local/Biztech/Mobileassistant/controllers/ProductController.php CHANGED
@@ -7,7 +7,7 @@
7
  $post_data = Mage::app()->getRequest()->getParams();
8
  $sessionId = $post_data['session'];
9
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
10
- echo $this->__("Session expired....Please Login again");
11
  return false;
12
  }
13
 
@@ -57,7 +57,7 @@
57
  $post_data = Mage::app()->getRequest()->getParams();
58
  $sessionId = $post_data['session'];
59
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
60
- echo $this->__("Session expired....Please Login again");
61
  return false;
62
  }
63
  $storeId = $post_data['storeid'];
@@ -127,7 +127,7 @@
127
  $post_data = Mage::app()->getRequest()->getParams();
128
  $sessionId = $post_data['session'];
129
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
130
- echo $this->__("Session expired....Please Login again");
131
  return false;
132
  }
133
  $storeId = $post_data['storeid'];
7
  $post_data = Mage::app()->getRequest()->getParams();
8
  $sessionId = $post_data['session'];
9
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
10
+ echo $this->__("The Login has expired. Please try log in again.");
11
  return false;
12
  }
13
 
57
  $post_data = Mage::app()->getRequest()->getParams();
58
  $sessionId = $post_data['session'];
59
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
60
+ echo $this->__("The Login has expired. Please try log in again.");
61
  return false;
62
  }
63
  $storeId = $post_data['storeid'];
127
  $post_data = Mage::app()->getRequest()->getParams();
128
  $sessionId = $post_data['session'];
129
  if (!Mage::getSingleton('api/session')->isLoggedIn($sessionId)) {
130
+ echo $this->__("The Login has expired. Please try log in again.");
131
  return false;
132
  }
133
  $storeId = $post_data['storeid'];
app/code/local/Biztech/Mobileassistant/etc/config.xml CHANGED
@@ -1,136 +1,136 @@
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
- <version>0.1.2</version>
14
- </Biztech_Mobileassistant>
15
- </modules>
16
- <frontend>
17
- <routers>
18
- <mobileassistant>
19
- <use>standard</use>
20
- <args>
21
- <module>Biztech_Mobileassistant</module>
22
- <frontName>mobileassistant</frontName>
23
- </args>
24
- </mobileassistant>
25
- </routers>
26
- <layout>
27
- <updates>
28
- <mobileassistant>
29
- <file>mobileassistant.xml</file>
30
- </mobileassistant>
31
- </updates>
32
- </layout>
33
- </frontend>
34
- <admin>
35
- <routers>
36
- <mobileassistant>
37
- <use>admin</use>
38
- <args>
39
- <module>Biztech_Mobileassistant</module>
40
- <frontName>mobileassistant</frontName>
41
- </args>
42
- </mobileassistant>
43
- </routers>
44
- </admin>
45
- <adminhtml>
46
- <acl>
47
- <resources>
48
- <all>
49
- <title>Allow Everything</title>
50
- </all>
51
- <admin>
52
- <children>
53
- <Biztech_Mobileassistant>
54
- <title>Mobileassistant Module</title>
55
- <sort_order>10</sort_order>
56
- </Biztech_Mobileassistant>
57
- <system>
58
- <children>
59
- <config>
60
- <children>
61
- <mobileassistant>
62
- <title>Mobileassistant</title>
63
- </mobileassistant>
64
- </children>
65
- </config>
66
- </children>
67
- </system>
68
- </children>
69
- </admin>
70
- </resources>
71
- </acl>
72
- <layout>
73
- <updates>
74
- <mobileassistant>
75
- <file>mobileassistant.xml</file>
76
- </mobileassistant>
77
- </updates>
78
- </layout>
79
- </adminhtml>
80
- <global>
81
- <models>
82
- <mobileassistant>
83
- <class>Biztech_Mobileassistant_Model</class>
84
- <resourceModel>mobileassistant_mysql4</resourceModel>
85
- </mobileassistant>
86
- <mobileassistant_mysql4>
87
- <class>Biztech_Mobileassistant_Model_Mysql4</class>
88
- <entities>
89
- <mobileassistant>
90
- <table>mobileassistant</table>
91
- </mobileassistant>
92
- </entities>
93
- </mobileassistant_mysql4>
94
- </models>
95
- <resources>
96
- <mobileassistant_setup>
97
- <setup>
98
- <module>Biztech_Mobileassistant</module>
99
- </setup>
100
- <connection>
101
- <use>core_setup</use>
102
- </connection>
103
- </mobileassistant_setup>
104
- <mobileassistant_write>
105
- <connection>
106
- <use>core_write</use>
107
- </connection>
108
- </mobileassistant_write>
109
- <mobileassistant_read>
110
- <connection>
111
- <use>core_read</use>
112
- </connection>
113
- </mobileassistant_read>
114
- </resources>
115
- <blocks>
116
- <mobileassistant>
117
- <class>Biztech_Mobileassistant_Block</class>
118
- </mobileassistant>
119
- </blocks>
120
- <helpers>
121
- <mobileassistant>
122
- <class>Biztech_Mobileassistant_Helper</class>
123
- </mobileassistant>
124
- </helpers>
125
- <events>
126
- <sales_order_save_after>
127
- <observers>
128
- <mobileassistant>
129
- <class>mobileassistant/observer</class>
130
- <method>sales_order_save_after</method>
131
- </mobileassistant>
132
- </observers>
133
- </sales_order_save_after>
134
- </events>
135
- </global>
136
  </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
+ <version>0.1.3</version>
14
+ </Biztech_Mobileassistant>
15
+ </modules>
16
+ <frontend>
17
+ <routers>
18
+ <mobileassistant>
19
+ <use>standard</use>
20
+ <args>
21
+ <module>Biztech_Mobileassistant</module>
22
+ <frontName>mobileassistant</frontName>
23
+ </args>
24
+ </mobileassistant>
25
+ </routers>
26
+ <layout>
27
+ <updates>
28
+ <mobileassistant>
29
+ <file>mobileassistant.xml</file>
30
+ </mobileassistant>
31
+ </updates>
32
+ </layout>
33
+ </frontend>
34
+ <admin>
35
+ <routers>
36
+ <mobileassistant>
37
+ <use>admin</use>
38
+ <args>
39
+ <module>Biztech_Mobileassistant</module>
40
+ <frontName>mobileassistant</frontName>
41
+ </args>
42
+ </mobileassistant>
43
+ </routers>
44
+ </admin>
45
+ <adminhtml>
46
+ <acl>
47
+ <resources>
48
+ <all>
49
+ <title>Allow Everything</title>
50
+ </all>
51
+ <admin>
52
+ <children>
53
+ <Biztech_Mobileassistant>
54
+ <title>Mobileassistant Module</title>
55
+ <sort_order>10</sort_order>
56
+ </Biztech_Mobileassistant>
57
+ <system>
58
+ <children>
59
+ <config>
60
+ <children>
61
+ <mobileassistant>
62
+ <title>Mobileassistant</title>
63
+ </mobileassistant>
64
+ </children>
65
+ </config>
66
+ </children>
67
+ </system>
68
+ </children>
69
+ </admin>
70
+ </resources>
71
+ </acl>
72
+ <layout>
73
+ <updates>
74
+ <mobileassistant>
75
+ <file>mobileassistant.xml</file>
76
+ </mobileassistant>
77
+ </updates>
78
+ </layout>
79
+ </adminhtml>
80
+ <global>
81
+ <models>
82
+ <mobileassistant>
83
+ <class>Biztech_Mobileassistant_Model</class>
84
+ <resourceModel>mobileassistant_mysql4</resourceModel>
85
+ </mobileassistant>
86
+ <mobileassistant_mysql4>
87
+ <class>Biztech_Mobileassistant_Model_Mysql4</class>
88
+ <entities>
89
+ <mobileassistant>
90
+ <table>mobileassistant</table>
91
+ </mobileassistant>
92
+ </entities>
93
+ </mobileassistant_mysql4>
94
+ </models>
95
+ <resources>
96
+ <mobileassistant_setup>
97
+ <setup>
98
+ <module>Biztech_Mobileassistant</module>
99
+ </setup>
100
+ <connection>
101
+ <use>core_setup</use>
102
+ </connection>
103
+ </mobileassistant_setup>
104
+ <mobileassistant_write>
105
+ <connection>
106
+ <use>core_write</use>
107
+ </connection>
108
+ </mobileassistant_write>
109
+ <mobileassistant_read>
110
+ <connection>
111
+ <use>core_read</use>
112
+ </connection>
113
+ </mobileassistant_read>
114
+ </resources>
115
+ <blocks>
116
+ <mobileassistant>
117
+ <class>Biztech_Mobileassistant_Block</class>
118
+ </mobileassistant>
119
+ </blocks>
120
+ <helpers>
121
+ <mobileassistant>
122
+ <class>Biztech_Mobileassistant_Helper</class>
123
+ </mobileassistant>
124
+ </helpers>
125
+ <events>
126
+ <sales_order_save_after>
127
+ <observers>
128
+ <mobileassistant>
129
+ <class>mobileassistant/observer</class>
130
+ <method>sales_order_save_after</method>
131
+ </mobileassistant>
132
+ </observers>
133
+ </sales_order_save_after>
134
+ </events>
135
+ </global>
136
  </config>
app/code/local/Biztech/Mobileassistant/etc/system.xml CHANGED
@@ -35,13 +35,13 @@
35
  <comment>Select Yes to enable this feature.</comment>
36
  </enabled>
37
  <notification_msg translate="label">
38
- <label>Notification Message</label>
39
  <frontend_type>text</frontend_type>
40
  <sort_order>2</sort_order>
41
  <show_in_default>1</show_in_default>
42
  <show_in_website>1</show_in_website>
43
  <show_in_store>1</show_in_store>
44
- <comment>Enter your message for notification.</comment>
45
  </notification_msg>
46
 
47
  </fields>
35
  <comment>Select Yes to enable this feature.</comment>
36
  </enabled>
37
  <notification_msg translate="label">
38
+ <label>New Order Notification Message</label>
39
  <frontend_type>text</frontend_type>
40
  <sort_order>2</sort_order>
41
  <show_in_default>1</show_in_default>
42
  <show_in_website>1</show_in_website>
43
  <show_in_store>1</show_in_store>
44
+ <comment>Enter your message which will be received on the Mobile app whenever a New Order is received.</comment>
45
  </notification_msg>
46
 
47
  </fields>
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.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,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>-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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>magento_mobile_assistant_manager</name>
4
+ <version>0.1.3</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>-Fix url testing issue.</notes>
29
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
30
+ <date>2014-01-16</date>
31
+ <time>08:51:26</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="ce6676f3e7a08c04ff12a1e16ed5c084"/></dir><dir name="controllers"><file name="CustomerController.php" hash="682df3bf1d1dae6d69e6eea342d1e190"/><file name="DashboardController.php" hash="26cd8aab550a8606d3c1d28df9ba6938"/><file name="IndexController.php" hash="2f2c8bf469ee50e1313e3d8e495f6f08"/><file name="OrderController.php" hash="553fb25c4796f7507b511b6f8b89f133"/><file name="ProductController.php" hash="4f4d66aa9d2cd3db10a40ddb4577f61c"/></dir><dir name="etc"><file name="api.xml" hash="f7d93508ce53982484f0d1f9ab3a17cd"/><file name="config.xml" hash="cb53e2b5e877d5f635d48118c6ed688a"/><file name="system.xml" hash="07f2f1fd8f022e001fadc28f2a29e32f"/></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.3.0</min><max>6.0.0</max></php></required></dependencies>
35
  </package>