Version Notes
Initial Release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Click2Customer_QSRecs |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
app/code/community/Click2Customer/QSRecs/Block/Recs.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Click2Customer_QSRecs_Block_Recs extends Mage_Core_Block_Text {
|
3 |
+
protected function _loadCache() {
|
4 |
+
return false;
|
5 |
+
}
|
6 |
+
|
7 |
+
protected function _saveCache($data) {
|
8 |
+
return $this;
|
9 |
+
}
|
10 |
+
|
11 |
+
function _toHtml() {
|
12 |
+
$resp = Mage::helper('analytics/data')->getResponse();
|
13 |
+
$html = '';
|
14 |
+
if ( is_array( $resp ) ) {
|
15 |
+
if ( isset( $resp['content'] ) ) {
|
16 |
+
if ( isset( $resp['content']['QUICKSTART'] ) ) {
|
17 |
+
if ( !empty( $resp['content']['QUICKSTART'] ) ) {
|
18 |
+
$html .= '<div id="c2c_recs">';
|
19 |
+
$html .= $resp['content']['QUICKSTART'];
|
20 |
+
$html .= '</div>';
|
21 |
+
}
|
22 |
+
}
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
+
return $html;
|
27 |
+
}
|
28 |
+
}
|
app/code/community/Click2Customer/QSRecs/Helper/Data.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Click2Customer_QSRecs_Helper_Data extends Mage_Core_Helper_Abstract {
|
3 |
+
|
4 |
+
}
|
app/code/community/Click2Customer/QSRecs/etc/config.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Click2Customer_QSRecs>
|
5 |
+
<version>1.0</version>
|
6 |
+
</Click2Customer_QSRecs>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<blocks>
|
10 |
+
<click2customer_qsrecs>
|
11 |
+
<class>Click2Customer_QSRecs_Block</class>
|
12 |
+
</click2customer_qsrecs>
|
13 |
+
</blocks>
|
14 |
+
<helpers>
|
15 |
+
<click2customer_qsrecs>
|
16 |
+
<class>Click2Customer_QSRecs_Helper</class>
|
17 |
+
</click2customer_qsrecs>
|
18 |
+
</helpers>
|
19 |
+
</global>
|
20 |
+
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Click2Customer_QSRecs</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Click2Customer Quick Start Recommendations Package.</description>
|
11 |
<notes>Initial Release</notes>
|
12 |
<authors><author><name>Click2Customer</name><user>auto-converted</user><email>info@click-2-customer.com</email></author></authors>
|
13 |
-
<date>2011-08-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Click2Customer_QSRecs.xml" hash="3d9d216ebf640df4d597badc6b92e50e"/></dir></target><target name="magecommunity"><dir name="Click2Customer"><
|
16 |
<compatible/>
|
17 |
<dependencies><required><package><name>Click2Customer_Analytics</name><channel>community</channel><min>1.0.0</min><max>2.0.0</max></package></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Click2Customer_QSRecs</name>
|
4 |
+
<version>1.0.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Click2Customer Quick Start Recommendations Package.</description>
|
11 |
<notes>Initial Release</notes>
|
12 |
<authors><author><name>Click2Customer</name><user>auto-converted</user><email>info@click-2-customer.com</email></author></authors>
|
13 |
+
<date>2011-08-09</date>
|
14 |
+
<time>14:37:17</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Click2Customer_QSRecs.xml" hash="3d9d216ebf640df4d597badc6b92e50e"/></dir></target><target name="magecommunity"><dir name="Click2Customer"><dir name="QSRecs"><dir name="Block"><file name="Recs.php" hash="30160244e905f472d6bb3ab9aff325b7"/></dir><dir name="Helper"><file name="Data.php" hash="d989d3c737bdb050ceb434b89bb42d70"/></dir><dir name="etc"><file name="config.xml" hash="c428374bfb63880a43f03cafa32c4775"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><package><name>Click2Customer_Analytics</name><channel>community</channel><min>1.0.0</min><max>2.0.0</max></package></required></dependencies>
|
18 |
</package>
|