Shoppimon_Monitor - Version 1.0.1

Version Notes

Various improvements and bugfixes

Download this release

Release Info

Developer Wladyslaw Brodsky
Extension Shoppimon_Monitor
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Shoppimon/Monitor/Model/Observer.php CHANGED
@@ -12,9 +12,11 @@
12
  class Shoppimon_Monitor_Model_Observer
13
  {
14
 
15
- public function analyzeData(Varien_Event_Observer $observer)
16
  {
 
17
  $pushUrl = Mage::getStoreConfig('shoppimon/settings/push_url');
 
18
  if (strlen($pushUrl) > 0) {
19
  $resultData = [];
20
  $analyzeModel = Mage::getModel('Shoppimon_Monitor/Analyzer');
@@ -27,6 +29,8 @@ class Shoppimon_Monitor_Model_Observer
27
  $resultData['techs'] = $analyzeModel->getTechnicalData();
28
 
29
  $websiteId = Mage::getStoreConfig('shoppimon/settings/website_id'); //default config option chosen
 
 
30
  $data = [
31
  'website_id' => $websiteId,
32
  'base_url' => Mage::getBaseUrl(),
@@ -37,17 +41,18 @@ class Shoppimon_Monitor_Model_Observer
37
  curl_setopt(
38
  $ch,
39
  CURLOPT_URL,
40
- Shoppimon_Monitor_Model_Analyzer::SHOPPIMON_BASE_URL . $pushUrl
41
  );
42
  curl_setopt($ch, CURLOPT_POST, 1);
43
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
 
44
  curl_setopt(
45
  $ch,
46
  CURLOPT_HEADER,
47
  'Content-type: application/shoppimon-magento-ver' . $resultData['techs']['shoppimon_ext_version'] . '+json'
48
  );
49
  $result = curl_exec($ch);
50
-
51
  if (!$result) {
52
  $e = new Exception('We were unable to push data to Shoppimon. Please contact Shoppimon support');
53
  Mage::logException($e);
12
  class Shoppimon_Monitor_Model_Observer
13
  {
14
 
15
+ public function analyzeData($observer)
16
  {
17
+
18
  $pushUrl = Mage::getStoreConfig('shoppimon/settings/push_url');
19
+ Mage::log('url: ' . $pushUrl, 7, '');
20
  if (strlen($pushUrl) > 0) {
21
  $resultData = [];
22
  $analyzeModel = Mage::getModel('Shoppimon_Monitor/Analyzer');
29
  $resultData['techs'] = $analyzeModel->getTechnicalData();
30
 
31
  $websiteId = Mage::getStoreConfig('shoppimon/settings/website_id'); //default config option chosen
32
+ Mage::log('website: ' . $websiteId, 7, '');
33
+
34
  $data = [
35
  'website_id' => $websiteId,
36
  'base_url' => Mage::getBaseUrl(),
41
  curl_setopt(
42
  $ch,
43
  CURLOPT_URL,
44
+ $pushUrl
45
  );
46
  curl_setopt($ch, CURLOPT_POST, 1);
47
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
48
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
49
  curl_setopt(
50
  $ch,
51
  CURLOPT_HEADER,
52
  'Content-type: application/shoppimon-magento-ver' . $resultData['techs']['shoppimon_ext_version'] . '+json'
53
  );
54
  $result = curl_exec($ch);
55
+ Mage::log('result:' . print_r($result, 1), 7, '');
56
  if (!$result) {
57
  $e = new Exception('We were unable to push data to Shoppimon. Please contact Shoppimon support');
58
  Mage::logException($e);
app/code/community/Shoppimon/Monitor/etc/config.xml CHANGED
@@ -50,7 +50,7 @@
50
  <cron_expr>0 2 * * *</cron_expr>
51
  </schedule>
52
  <run>
53
- <model>shoppimon_monitor/observer::analyzeData</model>
54
  </run>
55
  </shoppimon_data_processor>
56
  </jobs>
50
  <cron_expr>0 2 * * *</cron_expr>
51
  </schedule>
52
  <run>
53
+ <model>Shoppimon_Monitor/Observer::analyzeData</model>
54
  </run>
55
  </shoppimon_data_processor>
56
  </jobs>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shoppimon_Monitor</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="https://www.shoppimon.com/terms-of-use.html">Shoppimon's Terms Of Use</license>
7
  <channel>community</channel>
@@ -20,11 +20,11 @@ Monitoring by Shoppimon gives you all the necessary performance insights into yo
20
  &lt;li&gt;Understand how your store is performing, compared to the competition&lt;/li&gt;&#xD;
21
  &lt;li&gt;Get straight to the root cause of store issues to fix them immediately&lt;/li&gt;&#xD;
22
  &lt;/ul&gt;</description>
23
- <notes>--</notes>
24
  <authors><author><name>Wladyslaw Brodsky</name><user>wladyslaw</user><email>wladyslaw@shoppimon.com</email></author><author><name>Danny Berger</name><user>danny</user><email>danny@shoppimon.com</email></author></authors>
25
- <date>2016-05-05</date>
26
- <time>11:44:06</time>
27
- <contents><target name="magecommunity"><dir name="Shoppimon"><dir name="Monitor"><dir name="Helper"><file name="Data.php" hash="c09df032388b57260d16101d2570bfe7"/></dir><dir name="Model"><file name="Analyzer.php" hash="e1cb0309cb0ca988138a91228e4a3678"/><file name="Observer.php" hash="2a7a6fdb85c17061c8097d9dd9b3ec52"/></dir><dir name="controllers"><file name="MonitorController.php" hash="276f3510c4aa2a2210bf9aff3964dc99"/></dir><dir name="etc"><file name="adminhtml.xml" hash="186d3dfd6eb04ea6d4ddca27b518aef8"/><file name="config.xml" hash="e26e045aa7038e4915afa7539ddb78ea"/><file name="system.xml" hash="bf62b70683cf1975eebd8feb9db509df"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Shoppimon_Monitor.xml" hash="e8101cd81eb5684ab28cda50aea3da67"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="shoppimon.xml" hash="241e0b3addafc769d880893507af8371"/></dir><dir name="template"><dir name="shoppimon"><file name="dashboard.phtml" hash="aa97c7aec006f79f274e54b93a778f35"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="readme_shoppimon.txt" hash="40efbfb7b7741dbbe37eeea28275a133"/></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
30
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shoppimon_Monitor</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="https://www.shoppimon.com/terms-of-use.html">Shoppimon's Terms Of Use</license>
7
  <channel>community</channel>
20
  &lt;li&gt;Understand how your store is performing, compared to the competition&lt;/li&gt;&#xD;
21
  &lt;li&gt;Get straight to the root cause of store issues to fix them immediately&lt;/li&gt;&#xD;
22
  &lt;/ul&gt;</description>
23
+ <notes>Various improvements and bugfixes</notes>
24
  <authors><author><name>Wladyslaw Brodsky</name><user>wladyslaw</user><email>wladyslaw@shoppimon.com</email></author><author><name>Danny Berger</name><user>danny</user><email>danny@shoppimon.com</email></author></authors>
25
+ <date>2016-05-31</date>
26
+ <time>13:13:24</time>
27
+ <contents><target name="magecommunity"><dir name="Shoppimon"><dir name="Monitor"><dir name="Helper"><file name="Data.php" hash="c09df032388b57260d16101d2570bfe7"/></dir><dir name="Model"><file name="Analyzer.php" hash="e1cb0309cb0ca988138a91228e4a3678"/><file name="Observer.php" hash="ba16077e81b0f25254f691abb831cab7"/></dir><dir name="controllers"><file name="MonitorController.php" hash="276f3510c4aa2a2210bf9aff3964dc99"/></dir><dir name="etc"><file name="adminhtml.xml" hash="186d3dfd6eb04ea6d4ddca27b518aef8"/><file name="config.xml" hash="6ee4f1b3ec7f57d8372e7ea69babf775"/><file name="system.xml" hash="bf62b70683cf1975eebd8feb9db509df"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Shoppimon_Monitor.xml" hash="e8101cd81eb5684ab28cda50aea3da67"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="shoppimon.xml" hash="241e0b3addafc769d880893507af8371"/></dir><dir name="template"><dir name="shoppimon"><file name="dashboard.phtml" hash="aa97c7aec006f79f274e54b93a778f35"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="readme_shoppimon.txt" hash="40efbfb7b7741dbbe37eeea28275a133"/></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
30
  </package>