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.2.3 |
Comparing to | |
See all releases |
Code changes from version 0.2.2 to 0.2.3
app/code/local/Wigzo/AutoCode/Model/Observer.php
CHANGED
@@ -5,7 +5,6 @@ class Wigzo_AutoCode_Model_Observer
|
|
5 |
|
6 |
public function productUpdated(Varien_Event_Observer $observer)
|
7 |
{
|
8 |
-
|
9 |
$enabled = Mage::getStoreConfig('admin/wigzo/enabled');
|
10 |
if ($enabled == NULL || $enabled == "false") {
|
11 |
Mage::log("Wigzo Plugin is not Enabled! not writing updated.", null, "wigzo-updates.log");
|
@@ -49,7 +48,6 @@ class Wigzo_AutoCode_Model_Observer
|
|
49 |
|
50 |
public function productAddedToCart($observer)
|
51 |
{
|
52 |
-
|
53 |
$enabled = Mage::getStoreConfig('admin/wigzo/enabled');
|
54 |
if ($enabled == NULL || $enabled == "false") {
|
55 |
Mage::log("Wigzo Plugin is not Enabled! not writing updated.", null, "wigzo-updates.log");
|
@@ -77,7 +75,7 @@ class Wigzo_AutoCode_Model_Observer
|
|
77 |
|
78 |
//Post data to be sent in the request.
|
79 |
$postdata = array();
|
80 |
-
$postdata["canonical"] =
|
81 |
$postdata["name"] = $product->getName();
|
82 |
$postdata["productId"] = $product->getSku();
|
83 |
$postdata["title"] = $product->getTitle();
|
@@ -87,7 +85,7 @@ class Wigzo_AutoCode_Model_Observer
|
|
87 |
$postdata['_'] = $timestamp;
|
88 |
$postdata['e'] = "";
|
89 |
$postdata['pageuuid'] = $pageUuid;
|
90 |
-
$postdata['eventval'] =
|
91 |
$postdata['source'] = $source;
|
92 |
$postdata["price"] = Mage::helper('core')->currency($product != null ? $product->getFinalPrice() : "", true, false);
|
93 |
|
@@ -140,13 +138,15 @@ class Wigzo_AutoCode_Model_Observer
|
|
140 |
$i = 0;
|
141 |
foreach ($product_id as $temp) {
|
142 |
$product = $temp = Mage::getModel('catalog/product')->load($temp);
|
143 |
-
$
|
|
|
144 |
$i++;
|
145 |
}
|
146 |
|
147 |
//$currency = str_replace ("100.00", "", Mage::helper('core')->currency("100", true, false));
|
148 |
$orgToken = Mage::getStoreConfig('admin/wigzo/orgId');
|
149 |
|
|
|
150 |
$lang = substr(Mage::getStoreConfig('general/locale/code', Mage::app()->getStore()->getId()), 0, 2);
|
151 |
$timestamp = date('Y-m-d H:i:s');
|
152 |
$eventCategory = "EXTERNAL";
|
5 |
|
6 |
public function productUpdated(Varien_Event_Observer $observer)
|
7 |
{
|
|
|
8 |
$enabled = Mage::getStoreConfig('admin/wigzo/enabled');
|
9 |
if ($enabled == NULL || $enabled == "false") {
|
10 |
Mage::log("Wigzo Plugin is not Enabled! not writing updated.", null, "wigzo-updates.log");
|
48 |
|
49 |
public function productAddedToCart($observer)
|
50 |
{
|
|
|
51 |
$enabled = Mage::getStoreConfig('admin/wigzo/enabled');
|
52 |
if ($enabled == NULL || $enabled == "false") {
|
53 |
Mage::log("Wigzo Plugin is not Enabled! not writing updated.", null, "wigzo-updates.log");
|
75 |
|
76 |
//Post data to be sent in the request.
|
77 |
$postdata = array();
|
78 |
+
$postdata["canonical"] = explode("?",$product->getProductUrl())[0];
|
79 |
$postdata["name"] = $product->getName();
|
80 |
$postdata["productId"] = $product->getSku();
|
81 |
$postdata["title"] = $product->getTitle();
|
85 |
$postdata['_'] = $timestamp;
|
86 |
$postdata['e'] = "";
|
87 |
$postdata['pageuuid'] = $pageUuid;
|
88 |
+
$postdata['eventval'] = explode("?",$product->getProductUrl())[0];
|
89 |
$postdata['source'] = $source;
|
90 |
$postdata["price"] = Mage::helper('core')->currency($product != null ? $product->getFinalPrice() : "", true, false);
|
91 |
|
138 |
$i = 0;
|
139 |
foreach ($product_id as $temp) {
|
140 |
$product = $temp = Mage::getModel('catalog/product')->load($temp);
|
141 |
+
$url = explode("?",$product->getProductUrl());
|
142 |
+
$eventVal[$i] = $url[0];
|
143 |
$i++;
|
144 |
}
|
145 |
|
146 |
//$currency = str_replace ("100.00", "", Mage::helper('core')->currency("100", true, false));
|
147 |
$orgToken = Mage::getStoreConfig('admin/wigzo/orgId');
|
148 |
|
149 |
+
|
150 |
$lang = substr(Mage::getStoreConfig('general/locale/code', Mage::app()->getStore()->getId()), 0, 2);
|
151 |
$timestamp = date('Y-m-d H:i:s');
|
152 |
$eventCategory = "EXTERNAL";
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Wigzo_AutoCode</name>
|
4 |
-
<version>0.2.
|
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-05-
|
14 |
-
<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="70f7ca117ef7a3f39c7ef723e2477cc1"/></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="40efbeee0f1ea48d1d7e5be5968443a2"/><file name="system.xml" hash="92e358822c1457b0c170b8f61837d413"/></dir><dir name="Helper"><file name="Data.php" hash="43aff13a0e71fd995800fa1f9178c659"/></dir><dir name="Model"><file name="Observer.php" hash="
|
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.2.3</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-31</date>
|
14 |
+
<time>05:15:56</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="70f7ca117ef7a3f39c7ef723e2477cc1"/></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="40efbeee0f1ea48d1d7e5be5968443a2"/><file name="system.xml" hash="92e358822c1457b0c170b8f61837d413"/></dir><dir name="Helper"><file name="Data.php" hash="43aff13a0e71fd995800fa1f9178c659"/></dir><dir name="Model"><file name="Observer.php" hash="62042dc9adc2b29b9610ed3004a6efc1"/></dir><file name=".DS_Store" hash="e1cd85e1ad3e575f3343c82cbc563116"/></dir><dir name="ServiceWorker"><dir name="controllers"><file name="IndexController.php" hash="a3627ab1f94a5bfe1a8b9cc172867df2"/></dir><dir name="etc"><file name="config.xml" hash="7ff3615eb92a706dc4b2b19c9a1ccced"/></dir><dir name="Helper"><file name="Data.php" hash="43aff13a0e71fd995800fa1f9178c659"/></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="a88a28323413fc77c29c935a82715c9a"/></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="53b5755dbd79862e4579fb46e57a93ea"/><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>
|