Metrilo_Analytics - Version 1.2.4

Version Notes

Add _isAllowed method to comply with Magento standards.

Download this release

Release Info

Developer Murry Ivanoff
Extension Metrilo_Analytics
Version 1.2.4
Comparing to
See all releases


Code changes from version 1.2.3 to 1.2.4

app/code/community/Metrilo/Analytics/Helper/Data.php CHANGED
@@ -163,20 +163,20 @@ class Metrilo_Analytics_Helper_Data extends Mage_Core_Helper_Abstract
163
  * @param Array(Mage_Sales_Model_Order) $orders
164
  * @return void
165
  */
166
- public function callBatchApi($storeId, $orders)
167
  {
168
  try {
169
  $ordersForSubmition = $this->_buildOrdersForSubmition($orders);
170
  $call = $this->_buildCall($storeId, $ordersForSubmition);
171
 
172
- $this->_callMetriloApiAsync($storeId, $call);
173
  } catch (Exception $e) {
174
  Mage::log($e->getMessage(), null, 'Metrilo_Analytics.log');
175
  }
176
  }
177
 
178
  // Private functions start here
179
- private function _callMetriloApiAsync($storeId, $call) {
180
  ksort($call);
181
 
182
  $basedCall = base64_encode(Mage::helper('core')->jsonEncode($call));
@@ -189,7 +189,7 @@ class Metrilo_Analytics_Helper_Data extends Mage_Core_Helper_Abstract
189
 
190
  /** @var Metrilo_Analytics_Helper_Asynchttpclient $asyncHttpHelper */
191
  $asyncHttpHelper = Mage::helper('metrilo_analytics/asynchttpclient');
192
- $asyncHttpHelper->post('http://p.metrilo.com/bt', $requestBody, false);
193
  }
194
 
195
  /**
163
  * @param Array(Mage_Sales_Model_Order) $orders
164
  * @return void
165
  */
166
+ public function callBatchApi($storeId, $orders, $async = true)
167
  {
168
  try {
169
  $ordersForSubmition = $this->_buildOrdersForSubmition($orders);
170
  $call = $this->_buildCall($storeId, $ordersForSubmition);
171
 
172
+ $this->_callMetriloApi($storeId, $call, $async);
173
  } catch (Exception $e) {
174
  Mage::log($e->getMessage(), null, 'Metrilo_Analytics.log');
175
  }
176
  }
177
 
178
  // Private functions start here
179
+ private function _callMetriloApi($storeId, $call, $async = true) {
180
  ksort($call);
181
 
182
  $basedCall = base64_encode(Mage::helper('core')->jsonEncode($call));
189
 
190
  /** @var Metrilo_Analytics_Helper_Asynchttpclient $asyncHttpHelper */
191
  $asyncHttpHelper = Mage::helper('metrilo_analytics/asynchttpclient');
192
+ $asyncHttpHelper->post('http://p.metrilo.com/bt', $requestBody, $async);
193
  }
194
 
195
  /**
app/code/community/Metrilo/Analytics/controllers/Adminhtml/AjaxController.php CHANGED
@@ -30,4 +30,9 @@ class Metrilo_Analytics_Adminhtml_AjaxController extends Mage_Adminhtml_Controll
30
  }
31
  $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
32
  }
 
 
 
 
 
33
  }
30
  }
31
  $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
32
  }
33
+
34
+ protected function _isAllowed()
35
+ {
36
+ return true;
37
+ }
38
  }
app/code/community/Metrilo/Analytics/etc/config.xml CHANGED
@@ -8,7 +8,7 @@
8
  <config>
9
  <modules>
10
  <Metrilo_Analytics>
11
- <version>1.2.3</version>
12
  </Metrilo_Analytics>
13
  </modules>
14
  <frontend>
8
  <config>
9
  <modules>
10
  <Metrilo_Analytics>
11
+ <version>1.2.4</version>
12
  </Metrilo_Analytics>
13
  </modules>
14
  <frontend>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Metrilo_Analytics</name>
4
- <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license>Apache Software License (ASL)</license>
7
  <channel>community</channel>
@@ -18,12 +18,11 @@
18
  * Powerful intelligence for your sales team&amp;amp;#xD;&amp;#xD;&#xD;
19
  * With Metrilo, you have an amazing real-time overview of who's doing what on your eCommerce store.&amp;amp;#xD;&amp;#xD;&#xD;
20
  * Metrilo automatically collects and analyzes your eCommerce data to use for your email campaigns.</description>
21
- <notes>Change import process to be synchronized.&#xD;
22
- Code cleanup.</notes>
23
  <authors><author><name>Murry Ivanoff</name><user>Metrilo</user><email>murry@metrilo.com</email></author><author><name>Zhivko Draganov</name><user>zhivko</user><email>zhivko@metrilo.com</email></author><author><name>Miroslav Petrov</name><user>miro</user><email>miro91tn@gmail.com</email></author><author><name>Marush Denchev</name><user>marush</user><email>avreon@gmail.com</email></author></authors>
24
- <date>2017-05-25</date>
25
- <time>09:41:38</time>
26
- <contents><target name="magecommunity"><dir name="Metrilo"><dir name="Analytics"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="d080857c4ae4de4d9bb8bccae029a238"/></dir></dir></dir></dir><file name="Head.php" hash="e310a5a89fce3f08920790ad11e79af0"/></dir><dir name="Helper"><file name="Asynchttpclient.php" hash="91af14d00df28453aadcd88ebedc948a"/><file name="Data.php" hash="9f38e8acd85a0dc5a95448ffe05490d5"/></dir><dir name="Model"><file name="Import.php" hash="a85251d30dba509ccf3e8b742fdf4385"/><file name="Observer.php" hash="35b53b63d89a51bc8a58a2def76100aa"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AjaxController.php" hash="7f695800ee5f3be90f65c2be692f5655"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2fdab5ef85143c8c30f4c3bb15628f83"/><file name="config.xml" hash="2eaa2312944ce725515d36bd5f0a530f"/><file name="system.xml" hash="f9d4a7a38b56e4f167299cdb52a35230"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="metrilo"><file name="favicon-metrilo.png" hash="743558f1e49a730be9d515197a36567b"/><file name="loader.gif" hash="e05e6bb35d035cac4f3e0c8af213e9ab"/><file name="logo.png" hash="e9e54afd81384e12f77aca4eaebf5be8"/><file name="styles.css" hash="da0c07513d917e4ad08ff50814b536e1"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="metrilo"><dir name="system"><dir name="config"><file name="button.phtml" hash="ae861308ebc1460950edcac10bf8024f"/></dir></dir></dir></dir><dir name="layout"><file name="metrilo_analytics.xml" hash="0e6911e2e883992f2182969286d929b1"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="metrilo"><file name="head.phtml" hash="8bc0f1562031c7061110477cba3d662f"/></dir></dir><dir name="layout"><file name="metrilo_analytics.xml" hash="c7dcf4057bc31d906865e82159ac5eca"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Metrilo_Analytics.xml" hash="3a4dbecc4e093537f11dd4c8fa2756e7"/></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.2.1</min><max>5.6.30</max></php></required></dependencies>
29
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Metrilo_Analytics</name>
4
+ <version>1.2.4</version>
5
  <stability>stable</stability>
6
  <license>Apache Software License (ASL)</license>
7
  <channel>community</channel>
18
  * Powerful intelligence for your sales team&amp;amp;#xD;&amp;#xD;&#xD;
19
  * With Metrilo, you have an amazing real-time overview of who's doing what on your eCommerce store.&amp;amp;#xD;&amp;#xD;&#xD;
20
  * Metrilo automatically collects and analyzes your eCommerce data to use for your email campaigns.</description>
21
+ <notes>Add _isAllowed method to comply with Magento standards.</notes>
 
22
  <authors><author><name>Murry Ivanoff</name><user>Metrilo</user><email>murry@metrilo.com</email></author><author><name>Zhivko Draganov</name><user>zhivko</user><email>zhivko@metrilo.com</email></author><author><name>Miroslav Petrov</name><user>miro</user><email>miro91tn@gmail.com</email></author><author><name>Marush Denchev</name><user>marush</user><email>avreon@gmail.com</email></author></authors>
23
+ <date>2017-07-03</date>
24
+ <time>14:01:13</time>
25
+ <contents><target name="magecommunity"><dir name="Metrilo"><dir name="Analytics"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="d080857c4ae4de4d9bb8bccae029a238"/></dir></dir></dir></dir><file name="Head.php" hash="e310a5a89fce3f08920790ad11e79af0"/></dir><dir name="Helper"><file name="Asynchttpclient.php" hash="91af14d00df28453aadcd88ebedc948a"/><file name="Data.php" hash="dea3dd378601e212005a7ef06173d3de"/></dir><dir name="Model"><file name="Import.php" hash="a85251d30dba509ccf3e8b742fdf4385"/><file name="Observer.php" hash="35b53b63d89a51bc8a58a2def76100aa"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AjaxController.php" hash="17818655392951e904d59615eb2ead1e"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2fdab5ef85143c8c30f4c3bb15628f83"/><file name="config.xml" hash="fd722b2c1136d26720ec0136d25c0138"/><file name="system.xml" hash="f9d4a7a38b56e4f167299cdb52a35230"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="metrilo"><file name="favicon-metrilo.png" hash="743558f1e49a730be9d515197a36567b"/><file name="loader.gif" hash="e05e6bb35d035cac4f3e0c8af213e9ab"/><file name="logo.png" hash="e9e54afd81384e12f77aca4eaebf5be8"/><file name="styles.css" hash="da0c07513d917e4ad08ff50814b536e1"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="metrilo"><dir name="system"><dir name="config"><file name="button.phtml" hash="ae861308ebc1460950edcac10bf8024f"/></dir></dir></dir></dir><dir name="layout"><file name="metrilo_analytics.xml" hash="0e6911e2e883992f2182969286d929b1"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="metrilo"><file name="head.phtml" hash="8bc0f1562031c7061110477cba3d662f"/></dir></dir><dir name="layout"><file name="metrilo_analytics.xml" hash="c7dcf4057bc31d906865e82159ac5eca"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Metrilo_Analytics.xml" hash="3a4dbecc4e093537f11dd4c8fa2756e7"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.2.1</min><max>5.6.30</max></php></required></dependencies>
28
  </package>