Version Notes
Support details statistic
Download this release
Release Info
Developer | Woomio |
Extension | Woo |
Version | 1.0.11 |
Comparing to | |
See all releases |
Code changes from version 1.0.10 to 1.0.11
- app/code/local/Woomio/Tracker/etc/config.xml +1 -1
- app/code/local/Woomio/Tracker/sql/tracker_setup/{mysql4-install-1.0.6.php → install-1.0.11.php} +0 -0
- app/code/local/Woomio/Tracker/sql/tracker_setup/upgrade-1.0.10-1.0.11.php +36 -0
- app/design/frontend/base/default/layout/tracker.xml +1 -1
- app/etc/modules/Woomio_Tracker.xml +1 -1
- package.xml +4 -4
app/code/local/Woomio/Tracker/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Woomio_Tracker>
|
5 |
-
<version>1.0.
|
6 |
</Woomio_Tracker>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Woomio_Tracker>
|
5 |
+
<version>1.0.11</version>
|
6 |
</Woomio_Tracker>
|
7 |
</modules>
|
8 |
<frontend>
|
app/code/local/Woomio/Tracker/sql/tracker_setup/{mysql4-install-1.0.6.php → install-1.0.11.php}
RENAMED
File without changes
|
app/code/local/Woomio/Tracker/sql/tracker_setup/upgrade-1.0.10-1.0.11.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function w_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
|
3 |
+
error_log('An error occurred registering with woomio backend, and was bypassed. ' . $errno . ': ' . $errstr);
|
4 |
+
return true;
|
5 |
+
}
|
6 |
+
|
7 |
+
$installer = $this;
|
8 |
+
$installer->startSetup();
|
9 |
+
|
10 |
+
$sql = 'DROP TABLE IF EXISTS `'.$this->getTable('woomio').'`;';
|
11 |
+
$sql .= 'CREATE TABLE '.$this->getTable('woomio').'(orderid int not null auto_increment, wacsid varchar(100), primary key(orderid));';
|
12 |
+
|
13 |
+
$Email = Mage::getStoreConfig('trans_email/ident_general/email');
|
14 |
+
$Domain = Mage::getStoreConfig('web/unsecure/base_url');
|
15 |
+
$Lang = substr(Mage::getStoreConfig('general/locale/code'),0,2);
|
16 |
+
$Name = Mage::getStoreConfig('trans_email/ident_general/name');
|
17 |
+
|
18 |
+
$SetupCallbackUrl = 'https://www.woomio.com/endpoints/RetailerSignup?name=' . urlencode($Name) . '&domain=' . urlencode($Domain) . '&country=' . urlencode($Lang) . '&email=' . urlencode($Email) . '&platform=1';
|
19 |
+
|
20 |
+
//Ignore errors returned by the server
|
21 |
+
$context = stream_context_create(array(
|
22 |
+
'http' => array('ignore_errors' => true)
|
23 |
+
));
|
24 |
+
|
25 |
+
set_error_handler('w_error_handler');
|
26 |
+
$Response = @file_get_contents($SetupCallbackUrl, false, $context);
|
27 |
+
restore_error_handler();
|
28 |
+
|
29 |
+
if($Response !== false) {
|
30 |
+
$configModel = new Mage_Core_Model_Config();
|
31 |
+
//We save to default since the plugin can only be one in a multistore setup anyhow
|
32 |
+
$configModel->saveConfig('tracker/general/data_key', $Response, 'default', 0);
|
33 |
+
}
|
34 |
+
|
35 |
+
$installer->run($sql);
|
36 |
+
$installer->endSetup();
|
app/design/frontend/base/default/layout/tracker.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="1.0.
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<block type="tracker/tracking" name="tracking" as="tracker_tracking_head" template="woomio_tracker/tracking.phtml" />
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="1.0.11">
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<block type="tracker/tracking" name="tracking" as="tracker_tracking_head" template="woomio_tracker/tracking.phtml" />
|
app/etc/modules/Woomio_Tracker.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<Woomio_Tracker>
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
-
<version>1.0.
|
8 |
</Woomio_Tracker>
|
9 |
</modules>
|
10 |
</config>
|
4 |
<Woomio_Tracker>
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
+
<version>1.0.11</version>
|
8 |
</Woomio_Tracker>
|
9 |
</modules>
|
10 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Woo</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.woomio.com">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -23,9 +23,9 @@ Compatibility
|
|
23 |
Woomio is fully compatible with all Magento versions and modules.</description>
|
24 |
<notes>Support details statistic </notes>
|
25 |
<authors><author><name>Woomio</name><user>Woomio</user><email>developer@woomio.com</email></author></authors>
|
26 |
-
<date>2015-
|
27 |
-
<time>
|
28 |
-
<contents><target name="magelocal"><dir name="Woomio"><dir name="Tracker"><dir name="Block"><file name="Index.php" hash="949b7c689724a7eeeba5168a9cf03507"/><file name="Tracking.php" hash="1e3cb6eb08e18f13913b3a172571603d"/></dir><dir name="Helper"><file name="Data.php" hash="53a3a643e1eea3a72e02b5c64daa9edd"/></dir><dir name="Model"><file name="Observer.php" hash="6cfacdde5c3aa358c889ef1f842a61f3"/></dir><dir name="controllers"><file name="IndexController.php" hash="23096ef9a4af36032fe9098f87b057db"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f4f46675a9901fece5c8b74bb44f7d27"/><file name="config.xml" hash="
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
31 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Woo</name>
|
4 |
+
<version>1.0.11</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.woomio.com">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
23 |
Woomio is fully compatible with all Magento versions and modules.</description>
|
24 |
<notes>Support details statistic </notes>
|
25 |
<authors><author><name>Woomio</name><user>Woomio</user><email>developer@woomio.com</email></author></authors>
|
26 |
+
<date>2015-07-01</date>
|
27 |
+
<time>12:21:03</time>
|
28 |
+
<contents><target name="magelocal"><dir name="Woomio"><dir name="Tracker"><dir name="Block"><file name="Index.php" hash="949b7c689724a7eeeba5168a9cf03507"/><file name="Tracking.php" hash="1e3cb6eb08e18f13913b3a172571603d"/></dir><dir name="Helper"><file name="Data.php" hash="53a3a643e1eea3a72e02b5c64daa9edd"/></dir><dir name="Model"><file name="Observer.php" hash="6cfacdde5c3aa358c889ef1f842a61f3"/></dir><dir name="controllers"><file name="IndexController.php" hash="23096ef9a4af36032fe9098f87b057db"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f4f46675a9901fece5c8b74bb44f7d27"/><file name="config.xml" hash="9023b6796d7c3f80a8cb9e441525ffd4"/></dir><dir name="sql"><dir name="tracker_setup"><file name="install-1.0.11.php" hash="d2962e2e16a5f24e8854cb7bc36a792a"/><file name="upgrade-1.0.10-1.0.11.php" hash="d2962e2e16a5f24e8854cb7bc36a792a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tracker.xml" hash="10b61803cf3870f201f50a267a6f87dd"/></dir><dir name="template"><dir name="woomio_tracker"><file name="tracking.phtml" hash="0e015827b7beea57e8254f25e6ec1f5e"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Woomio_Tracker.xml" hash="70c9018b7340f29168bedc7daef41e62"/></dir></target></contents>
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
31 |
</package>
|