Wigzo_AutoCode - Version 0.1.9

Version Notes

Wigzo Push is a plugin that allows you to Send and Track Web Push Notification through your Magento Store. It allows you to take Browser Opt in from people visiting your store and then Send and Track browser notifications to bring people back to your store, even when they are not browsing the site. It allows your store to re-engage your most loyal customers with targeted push notifications

Download this release

Release Info

Developer wigzo
Extension Wigzo_AutoCode
Version 0.1.9
Comparing to
See all releases


Code changes from version 0.1.8 to 0.1.9

app/code/local/Wigzo/AutoCode/CodeBlock/Myblock.php CHANGED
@@ -13,6 +13,7 @@ class Wigzo_AutoCode_CodeBlock_Myblock extends Mage_Core_Block_Template
13
  $wigzodata["tracker"] = trim (file_get_contents ("/tmp/wigzomode"));
14
  }
15
  $wigzodata["enabled"] = true;
 
16
  $wigzodata["userIdentifier"] = "";
17
  $wigzodata["onsite"] = "true";
18
  $wigzodata["browserpush"] = true;
@@ -31,6 +32,20 @@ class Wigzo_AutoCode_CodeBlock_Myblock extends Mage_Core_Block_Template
31
  return $wigzodata;
32
  }
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  $viahttps = Mage::getStoreConfig('admin/wigzo/viahttps');
35
  if (NULL == $viahttps || $viahttps == "false") {
36
  $wigzodata["viahttps"] = false;
13
  $wigzodata["tracker"] = trim (file_get_contents ("/tmp/wigzomode"));
14
  }
15
  $wigzodata["enabled"] = true;
16
+ $wigzodata["suppression"] = "";
17
  $wigzodata["userIdentifier"] = "";
18
  $wigzodata["onsite"] = "true";
19
  $wigzodata["browserpush"] = true;
32
  return $wigzodata;
33
  }
34
 
35
+ $suppression = Mage::getStoreConfig('admin/wigzo/suppression');
36
+ if (NULL != $suppression) {
37
+ $currentServerName = Mage::app()->getFrontController()->getRequest()->getServer('SERVER_NAME');
38
+ $blocked = explode (",", $suppression);
39
+
40
+ for ($i = 0 ; $i < count ($blocked) ; $i++) {
41
+ if ($blocked[$i] == $currentServerName) {
42
+ $wigzodata["enabled"] = false;
43
+ return $wigzodata;
44
+ }
45
+ }
46
+ $wigzodata["suppression"] = $suppression;
47
+ }
48
+
49
  $viahttps = Mage::getStoreConfig('admin/wigzo/viahttps');
50
  if (NULL == $viahttps || $viahttps == "false") {
51
  $wigzodata["viahttps"] = false;
app/design/adminhtml/default/default/template/autocode/autocodebackend.phtml CHANGED
@@ -62,6 +62,7 @@ if (window.location.port == "80" || window.location.port == "") {
62
  document.getElementById ("wigzoconfigframe").src = "<?php echo $this->getWigzoHost(); ?>/integration/magento/frame/" + iHost + "/" + "<?php echo $this->getAuthtoken(); ?>";
63
 
64
  window.addEventListener ('message', function (event) {
 
65
  var eventData = event.data;
66
  var aquired_token = eventData.key;
67
  if (! aquired_token) {
62
  document.getElementById ("wigzoconfigframe").src = "<?php echo $this->getWigzoHost(); ?>/integration/magento/frame/" + iHost + "/" + "<?php echo $this->getAuthtoken(); ?>";
63
 
64
  window.addEventListener ('message', function (event) {
65
+ debugger;
66
  var eventData = event.data;
67
  var aquired_token = eventData.key;
68
  if (! aquired_token) {
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wigzo_AutoCode</name>
4
- <version>0.1.8</version>
5
  <stability>stable</stability>
6
  <license>GNU</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Wigzo Push is a plugin that allows you to Send and Track Web Push Notification through your Magento Store. It allows you to take Browser Opt in from people visiting your store and then Send and Track browser notifications to bring people back to your store, even when they are not browsing the site. It allows your store to re-engage your most loyal customers with targeted push notifications</description>
11
  <notes>Wigzo Push is a plugin that allows you to Send and Track Web Push Notification through your Magento Store. It allows you to take Browser Opt in from people visiting your store and then Send and Track browser notifications to bring people back to your store, even when they are not browsing the site. It allows your store to re-engage your most loyal customers with targeted push notifications</notes>
12
  <authors><author><name>wigzo</name><user>wigzo</user><email>info@wigo.com</email></author><author><name>shamail</name><user>shamail</user><email>shamail@wigzo.com</email></author></authors>
13
- <date>2017-04-17</date>
14
- <time>07:36:40</time>
15
- <contents><target name="magelocal"><dir name="Wigzo"><dir name="AutoCode"><dir name="Block"><dir name="Adminhtml"><file name="Autocodebackend.php" hash="da50f2305de5c4e7163f7dfb7459be32"/></dir><file name="Index.php" hash="88b27827847cb37a5ab250ad7b0b6fd5"/><file name=".DS_Store" hash="b0fd28d4d518e950dd364c245b6cc36c"/></dir><dir name="CodeBlock"><file name="Myblock.php" hash="1b953a0cf9d7c9cfbf220a1994395acb"/></dir><dir name="Helper"><file name="Data.php" hash="43aff13a0e71fd995800fa1f9178c659"/></dir><dir name="Model"><file name="Observer.php" hash="ff8c027877d2e4457f9275b8dd78fe52"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AutocodebackendController.php" hash="5a0d87a3ce03fe5875da16540453ce0d"/></dir><file name="IndexController.php" hash="75f185ff119fa5c6ed7c67dfe2a090c7"/><file name=".DS_Store" hash="b0fd28d4d518e950dd364c245b6cc36c"/></dir><dir name="etc"><file name="config.xml" hash="29003cefdb50cce1fcfe18a6c0b51ac9"/><file name="system.xml" hash="92e358822c1457b0c170b8f61837d413"/></dir><file name=".DS_Store" hash="e1cd85e1ad3e575f3343c82cbc563116"/></dir><dir name="ServiceWorker"><dir name="Helper"><file name="Data.php" hash="43aff13a0e71fd995800fa1f9178c659"/></dir><dir name="controllers"><file name="IndexController.php" hash="4f3519caf41cd23c1dda6068f5960992"/></dir><dir name="etc"><file name="config.xml" hash="7ff3615eb92a706dc4b2b19c9a1ccced"/></dir></dir><file name=".DS_Store" hash="d20f5483213a4800451c37408874a2dd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="autocode.xml" hash="2aa2dbb52397cc65a59ac67e4e3afd66"/></dir><dir name="template"><dir name="autocode"><file name="autocodebackend.phtml" hash="076e647e590f1842100f18d0c761e2c4"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="scriptblock.xml" hash="51512b2845d56dafa3028e8892702a76"/></dir><dir name="template"><dir name="scriptblock"><file name="foot.phtml" hash="2ded2491adf32d8157b8c6d5ec0b7726"/><file name="head.phtml" hash="0b9fa65fbf65b7efbf6fba7eda02ab3f"/><file name="index.phtml" hash="da91307168404679f859274c2bb878b9"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wigzo_AutoCode.xml" hash="fba2c2a20f4dad9b72a67f8876465906"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>5.9.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wigzo_AutoCode</name>
4
+ <version>0.1.9</version>
5
  <stability>stable</stability>
6
  <license>GNU</license>
7
  <channel>community</channel>
10
  <description>Wigzo Push is a plugin that allows you to Send and Track Web Push Notification through your Magento Store. It allows you to take Browser Opt in from people visiting your store and then Send and Track browser notifications to bring people back to your store, even when they are not browsing the site. It allows your store to re-engage your most loyal customers with targeted push notifications</description>
11
  <notes>Wigzo Push is a plugin that allows you to Send and Track Web Push Notification through your Magento Store. It allows you to take Browser Opt in from people visiting your store and then Send and Track browser notifications to bring people back to your store, even when they are not browsing the site. It allows your store to re-engage your most loyal customers with targeted push notifications</notes>
12
  <authors><author><name>wigzo</name><user>wigzo</user><email>info@wigo.com</email></author><author><name>shamail</name><user>shamail</user><email>shamail@wigzo.com</email></author></authors>
13
+ <date>2017-05-08</date>
14
+ <time>10:52:02</time>
15
+ <contents><target name="magelocal"><dir name="Wigzo"><dir name="AutoCode"><dir name="Block"><dir name="Adminhtml"><file name="Autocodebackend.php" hash="da50f2305de5c4e7163f7dfb7459be32"/></dir><file name="Index.php" hash="88b27827847cb37a5ab250ad7b0b6fd5"/><file name=".DS_Store" hash="b0fd28d4d518e950dd364c245b6cc36c"/></dir><dir name="CodeBlock"><file name="Myblock.php" hash="3c5f3ef2956dfa70e7f1fa96fdc20322"/></dir><dir name="Helper"><file name="Data.php" hash="43aff13a0e71fd995800fa1f9178c659"/></dir><dir name="Model"><file name="Observer.php" hash="ff8c027877d2e4457f9275b8dd78fe52"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AutocodebackendController.php" hash="5a0d87a3ce03fe5875da16540453ce0d"/></dir><file name="IndexController.php" hash="75f185ff119fa5c6ed7c67dfe2a090c7"/><file name=".DS_Store" hash="b0fd28d4d518e950dd364c245b6cc36c"/></dir><dir name="etc"><file name="config.xml" hash="29003cefdb50cce1fcfe18a6c0b51ac9"/><file name="system.xml" hash="92e358822c1457b0c170b8f61837d413"/></dir><file name=".DS_Store" hash="e1cd85e1ad3e575f3343c82cbc563116"/></dir><dir name="ServiceWorker"><dir name="Helper"><file name="Data.php" hash="43aff13a0e71fd995800fa1f9178c659"/></dir><dir name="controllers"><file name="IndexController.php" hash="4f3519caf41cd23c1dda6068f5960992"/></dir><dir name="etc"><file name="config.xml" hash="7ff3615eb92a706dc4b2b19c9a1ccced"/></dir></dir><file name=".DS_Store" hash="d20f5483213a4800451c37408874a2dd"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="autocode.xml" hash="2aa2dbb52397cc65a59ac67e4e3afd66"/></dir><dir name="template"><dir name="autocode"><file name="autocodebackend.phtml" hash="8f97de1bbc67ca5f11b5b172ef5b5342"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="scriptblock.xml" hash="51512b2845d56dafa3028e8892702a76"/></dir><dir name="template"><dir name="scriptblock"><file name="foot.phtml" hash="2ded2491adf32d8157b8c6d5ec0b7726"/><file name="head.phtml" hash="0b9fa65fbf65b7efbf6fba7eda02ab3f"/><file name="index.phtml" hash="da91307168404679f859274c2bb878b9"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wigzo_AutoCode.xml" hash="fba2c2a20f4dad9b72a67f8876465906"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.4.0</min><max>5.9.0</max></php></required></dependencies>
18
  </package>