Version Notes
Support details statistic
Download this release
Release Info
Developer | Woomio |
Extension | Woo |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.12 to 1.1.0
- app/code/local/Woomio/Tracker/etc/config.xml +1 -1
- app/code/local/Woomio/Tracker/sql/tracker_setup/{install-1.0.12.php → install-1.1.0.php} +0 -12
- app/code/local/Woomio/Tracker/sql/tracker_setup/{upgrade-1.0.10-1.0.12.php → upgrade-1.0.10-1.1.0.php} +0 -12
- app/code/local/Woomio/Tracker/sql/tracker_setup/{upgrade-1.0.11-1.0.12.php → upgrade-1.0.11-1.1.0.php} +0 -12
- app/code/local/Woomio/Tracker/sql/tracker_setup/upgrade-1.0.12-1.1.0.php +39 -0
- app/design/frontend/base/default/layout/tracker.xml +1 -1
- app/etc/modules/Woomio_Tracker.xml +1 -1
- package.xml +3 -3
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.1.0</version>
|
6 |
</Woomio_Tracker>
|
7 |
</modules>
|
8 |
<frontend>
|
app/code/local/Woomio/Tracker/sql/tracker_setup/{install-1.0.12.php → install-1.1.0.php}
RENAMED
@@ -33,18 +33,6 @@ if($Response !== false) {
|
|
33 |
//Make sure cache gets updated with the new config
|
34 |
$configModel->reinit();
|
35 |
Mage::app()->reinitStores();
|
36 |
-
|
37 |
-
//DEBUG
|
38 |
-
$log_url = 'http://ec2-54-171-59-57.eu-west-1.compute.amazonaws.com/savelog?var=response-' . urlencode($Response) . '_script-install';
|
39 |
-
$context = stream_context_create(array(
|
40 |
-
'http' => array(
|
41 |
-
'ignore_errors' => true,
|
42 |
-
'timeout' => 10 //seconds
|
43 |
-
)
|
44 |
-
));
|
45 |
-
set_error_handler('w_error_handler');
|
46 |
-
$Response = @file_get_contents($log_url, false, $context);
|
47 |
-
restore_error_handler();
|
48 |
}
|
49 |
|
50 |
$installer->run($sql);
|
33 |
//Make sure cache gets updated with the new config
|
34 |
$configModel->reinit();
|
35 |
Mage::app()->reinitStores();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
|
38 |
$installer->run($sql);
|
app/code/local/Woomio/Tracker/sql/tracker_setup/{upgrade-1.0.10-1.0.12.php → upgrade-1.0.10-1.1.0.php}
RENAMED
@@ -33,18 +33,6 @@ if($Response !== false) {
|
|
33 |
//Make sure cache gets updated with the new config
|
34 |
$configModel->reinit();
|
35 |
Mage::app()->reinitStores();
|
36 |
-
|
37 |
-
//DEBUG
|
38 |
-
$log_url = 'http://ec2-54-171-59-57.eu-west-1.compute.amazonaws.com/savelog?var=response-' . urlencode($Response) . '_script-upgrade10';
|
39 |
-
$context = stream_context_create(array(
|
40 |
-
'http' => array(
|
41 |
-
'ignore_errors' => true,
|
42 |
-
'timeout' => 10 //seconds
|
43 |
-
)
|
44 |
-
));
|
45 |
-
set_error_handler('w_error_handler');
|
46 |
-
$Response = @file_get_contents($log_url, false, $context);
|
47 |
-
restore_error_handler();
|
48 |
}
|
49 |
|
50 |
$installer->run($sql);
|
33 |
//Make sure cache gets updated with the new config
|
34 |
$configModel->reinit();
|
35 |
Mage::app()->reinitStores();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
|
38 |
$installer->run($sql);
|
app/code/local/Woomio/Tracker/sql/tracker_setup/{upgrade-1.0.11-1.0.12.php → upgrade-1.0.11-1.1.0.php}
RENAMED
@@ -33,18 +33,6 @@ if($Response !== false) {
|
|
33 |
//Make sure cache gets updated with the new config
|
34 |
$configModel->reinit();
|
35 |
Mage::app()->reinitStores();
|
36 |
-
|
37 |
-
//DEBUG
|
38 |
-
$log_url = 'http://ec2-54-171-59-57.eu-west-1.compute.amazonaws.com/savelog?var=response-' . urlencode($Response) . '_script-upgrade11';
|
39 |
-
$context = stream_context_create(array(
|
40 |
-
'http' => array(
|
41 |
-
'ignore_errors' => true,
|
42 |
-
'timeout' => 10 //seconds
|
43 |
-
)
|
44 |
-
));
|
45 |
-
set_error_handler('w_error_handler');
|
46 |
-
$Response = @file_get_contents($log_url, false, $context);
|
47 |
-
restore_error_handler();
|
48 |
}
|
49 |
|
50 |
$installer->run($sql);
|
33 |
//Make sure cache gets updated with the new config
|
34 |
$configModel->reinit();
|
35 |
Mage::app()->reinitStores();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
|
38 |
$installer->run($sql);
|
app/code/local/Woomio/Tracker/sql/tracker_setup/upgrade-1.0.12-1.1.0.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
//Make sure cache gets updated with the new config
|
34 |
+
$configModel->reinit();
|
35 |
+
Mage::app()->reinitStores();
|
36 |
+
}
|
37 |
+
|
38 |
+
$installer->run($sql);
|
39 |
+
$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.1.0">
|
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.1.0</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>
|
@@ -24,8 +24,8 @@ 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-02</date>
|
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.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.woomio.com">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
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-02</date>
|
27 |
+
<time>14:10:56</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="8407d559b3d6cbdc48b9604cf472077f"/></dir><dir name="sql"><dir name="tracker_setup"><file name="install-1.1.0.php" hash="8b76d38967b102cad865329e012af067"/><file name="upgrade-1.0.10-1.1.0.php" hash="4f37882d0a266fa12af91ccc2f7d68b9"/><file name="upgrade-1.0.11-1.1.0.php" hash="4f37882d0a266fa12af91ccc2f7d68b9"/><file name="upgrade-1.0.12-1.1.0.php" hash="4f37882d0a266fa12af91ccc2f7d68b9"/></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="7264feaaa9740a17ae820f2cb63b8e1c"/></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="f82e2d7153dc0a02620acfffb5b41c8c"/></dir></target></contents>
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
31 |
</package>
|