Version Notes
Recommendation widget fetching final price
Download this release
Release Info
Developer | nToklo |
Extension | ntoklo_recommendations |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- app/code/community/Ntoklo/Recommendations/Model/Service.php +1 -2
- app/code/community/Ntoklo/Recommendations/etc/config.xml +1 -1
- app/design/frontend/base/default/template/ntoklo/recommendations/widget/chart_horisontal.phtml +2 -2
- app/design/frontend/base/default/template/ntoklo/recommendations/widget/chart_vertical.phtml +1 -1
- package.xml +5 -5
- skin/frontend/base/default/css/ntoklo/custom.css +4 -0
app/code/community/Ntoklo/Recommendations/Model/Service.php
CHANGED
@@ -142,8 +142,7 @@ class Ntoklo_Recommendations_Model_Service extends Mage_Core_Model_Abstract {
|
|
142 |
$response = $this->_apiCall($chart->getData('widget_type'), $this->getServiceParams($chart));
|
143 |
|
144 |
switch ($chart->getData('widget_type')) {
|
145 |
-
case self::CALL_METHOD_CHART:
|
146 |
-
|
147 |
foreach ($response['items'] as $item) {
|
148 |
Mage::helper('ntoklo_recommendations')->setTrackerId($response['tracker_id'], $chart->getData('widget_type'));
|
149 |
if (array_key_exists('product', $item) && array_key_exists('id', $item['product'])) {
|
142 |
$response = $this->_apiCall($chart->getData('widget_type'), $this->getServiceParams($chart));
|
143 |
|
144 |
switch ($chart->getData('widget_type')) {
|
145 |
+
case self::CALL_METHOD_CHART:
|
|
|
146 |
foreach ($response['items'] as $item) {
|
147 |
Mage::helper('ntoklo_recommendations')->setTrackerId($response['tracker_id'], $chart->getData('widget_type'));
|
148 |
if (array_key_exists('product', $item) && array_key_exists('id', $item['product'])) {
|
app/code/community/Ntoklo/Recommendations/etc/config.xml
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
<config>
|
21 |
<modules>
|
22 |
<Ntoklo_Recommendations>
|
23 |
-
<version>1.0.
|
24 |
</Ntoklo_Recommendations>
|
25 |
</modules>
|
26 |
<global>
|
20 |
<config>
|
21 |
<modules>
|
22 |
<Ntoklo_Recommendations>
|
23 |
+
<version>1.0.9</version>
|
24 |
</Ntoklo_Recommendations>
|
25 |
</modules>
|
26 |
<global>
|
app/design/frontend/base/default/template/ntoklo/recommendations/widget/chart_horisontal.phtml
CHANGED
@@ -27,7 +27,7 @@ $getTrackerId = Mage::helper('ntoklo_recommendations')->getWidgetType();
|
|
27 |
<div class="nt_wrapper nt_grid nt_orange nt_<?php echo $_columnCount ?>_column">
|
28 |
<p class="nt_header"><?php echo $this->getHeader() ?></p>
|
29 |
<div class="nt_widget clearfix">
|
30 |
-
<?php $i=0; foreach ($_products as $_product)
|
31 |
<?php if ($i++%$_columnCount==0): ?>
|
32 |
<div class="nt_row clearfix">
|
33 |
<?php endif ?>
|
@@ -36,7 +36,7 @@ $getTrackerId = Mage::helper('ntoklo_recommendations')->getWidgetType();
|
|
36 |
<a href="<?php echo Mage::getUrl($_product->getUrlPath(), array('_query'=>array($getTrackerId => Mage::helper('ntoklo_recommendations')->getTrackerId())))?>" class="ntoklo_conversion"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(100) ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>"></a>
|
37 |
</div>
|
38 |
<span class="nt_product_title"><?php echo $this->htmlEscape($_product->getName()) ?></span>
|
39 |
-
<span class="nt_product_price"><?php echo Mage::helper('core')->currency($_product->
|
40 |
<a href="<?php echo Mage::getUrl($_product->getUrlPath(), array('_query'=>array($getTrackerId => Mage::helper('ntoklo_recommendations')->getTrackerId())))?>" class="nt_btn">
|
41 |
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10.853px" height="11.229px" viewBox="0 0 10.853 11.229" enable-background="new 0 0 10.853 11.229" xml:space="preserve">
|
42 |
<g>
|
27 |
<div class="nt_wrapper nt_grid nt_orange nt_<?php echo $_columnCount ?>_column">
|
28 |
<p class="nt_header"><?php echo $this->getHeader() ?></p>
|
29 |
<div class="nt_widget clearfix">
|
30 |
+
<?php $i=0; foreach ($_products as $_product):?>
|
31 |
<?php if ($i++%$_columnCount==0): ?>
|
32 |
<div class="nt_row clearfix">
|
33 |
<?php endif ?>
|
36 |
<a href="<?php echo Mage::getUrl($_product->getUrlPath(), array('_query'=>array($getTrackerId => Mage::helper('ntoklo_recommendations')->getTrackerId())))?>" class="ntoklo_conversion"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(100) ?>" alt="<?php echo $this->htmlEscape($_product->getName()) ?>"></a>
|
37 |
</div>
|
38 |
<span class="nt_product_title"><?php echo $this->htmlEscape($_product->getName()) ?></span>
|
39 |
+
<span class="nt_product_price"><?php echo Mage::helper('core')->currency($_product->getFinalPrice()); ?></span>
|
40 |
<a href="<?php echo Mage::getUrl($_product->getUrlPath(), array('_query'=>array($getTrackerId => Mage::helper('ntoklo_recommendations')->getTrackerId())))?>" class="nt_btn">
|
41 |
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10.853px" height="11.229px" viewBox="0 0 10.853 11.229" enable-background="new 0 0 10.853 11.229" xml:space="preserve">
|
42 |
<g>
|
app/design/frontend/base/default/template/ntoklo/recommendations/widget/chart_vertical.phtml
CHANGED
@@ -33,7 +33,7 @@ $getTrackerId = Mage::helper('ntoklo_recommendations')->getWidgetType();
|
|
33 |
</div>
|
34 |
<div class="nt_info_wrap">
|
35 |
<span class="nt_product_title"><?php echo $this->htmlEscape($_item->getName()) ?></span>
|
36 |
-
<span class="nt_product_price"><?php echo Mage::helper('core')->currency($_item->
|
37 |
<a href="<?php echo Mage::getUrl($_item->getUrlPath(), array('_query'=>array($getTrackerId => Mage::helper('ntoklo_recommendations')->getTrackerId())))?>" class="ntoklo_conversion nt_btn"><?php echo $this->__('More details') ?></a>
|
38 |
</div>
|
39 |
</div>
|
33 |
</div>
|
34 |
<div class="nt_info_wrap">
|
35 |
<span class="nt_product_title"><?php echo $this->htmlEscape($_item->getName()) ?></span>
|
36 |
+
<span class="nt_product_price"><?php echo Mage::helper('core')->currency($_item->getFinalPrice()); ?></span>
|
37 |
<a href="<?php echo Mage::getUrl($_item->getUrlPath(), array('_query'=>array($getTrackerId => Mage::helper('ntoklo_recommendations')->getTrackerId())))?>" class="ntoklo_conversion nt_btn"><?php echo $this->__('More details') ?></a>
|
38 |
</div>
|
39 |
</div>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ntoklo_recommendations</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>open software license</license>
|
7 |
<channel>community</channel>
|
@@ -11,11 +11,11 @@
|
|
11 |
2. Uses the Open Data Alliance Universal Variable - Generats UniversalVariable JSON object and submits it to nToklo for processing to leverage user behaviour.
|
12 |
3. Utilises native widgets to render personalised product recommendations and trending product charts through nToklo API’s.
|
13 |
4. Integrates with your store CMS to account for product categories</description>
|
14 |
-
<notes>
|
15 |
<authors><author><name>Fu</name><user>ntoklo</user><email>fu.hoang@ntoklo.com</email></author></authors>
|
16 |
-
<date>2014-05-
|
17 |
-
<time>
|
18 |
-
<contents><target name="magecommunity"><dir name="Ntoklo"><dir name="Recommendations"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Registration.php" hash="6454d0327fb5881aba96beaed86005ac"/></dir></dir></dir></dir><dir name="Widget"><dir name="Date"><file name="Helper.php" hash="29592c951ce694efb69397141a679226"/></dir><dir name="Type"><file name="Helper.php" hash="7003dba7c2b54e7dd03013de2f41a4e1"/></dir></dir></dir><file name="Chart.php" hash="2f1f29ce21a7eaf2cda2f576225de839"/><file name="UniversalVariable.php" hash="5d152104f7b251062ce9827ad05945cc"/></dir><dir name="Helper"><file name="Data.php" hash="07443c67ce8b49310612bf819f2daab8"/></dir><dir name="Model"><dir name="Cache"><file name="UniversalVariable.php" hash="761f465d4fda0e3d48541fc67af5c4b1"/></dir><file name="Observer.php" hash="9a22bdcae4fc457372692b0488f30833"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="c76b856838d10860a74c2ec08d47bc87"/></dir></dir><file name="Service.php" hash="
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ntoklo_recommendations</name>
|
4 |
+
<version>1.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>open software license</license>
|
7 |
<channel>community</channel>
|
11 |
2. Uses the Open Data Alliance Universal Variable - Generats UniversalVariable JSON object and submits it to nToklo for processing to leverage user behaviour.
|
12 |
3. Utilises native widgets to render personalised product recommendations and trending product charts through nToklo API’s.
|
13 |
4. Integrates with your store CMS to account for product categories</description>
|
14 |
+
<notes>Recommendation widget fetching final price </notes>
|
15 |
<authors><author><name>Fu</name><user>ntoklo</user><email>fu.hoang@ntoklo.com</email></author></authors>
|
16 |
+
<date>2014-05-29</date>
|
17 |
+
<time>08:48:35</time>
|
18 |
+
<contents><target name="magecommunity"><dir name="Ntoklo"><dir name="Recommendations"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Registration.php" hash="6454d0327fb5881aba96beaed86005ac"/></dir></dir></dir></dir><dir name="Widget"><dir name="Date"><file name="Helper.php" hash="29592c951ce694efb69397141a679226"/></dir><dir name="Type"><file name="Helper.php" hash="7003dba7c2b54e7dd03013de2f41a4e1"/></dir></dir></dir><file name="Chart.php" hash="2f1f29ce21a7eaf2cda2f576225de839"/><file name="UniversalVariable.php" hash="5d152104f7b251062ce9827ad05945cc"/></dir><dir name="Helper"><file name="Data.php" hash="07443c67ce8b49310612bf819f2daab8"/></dir><dir name="Model"><dir name="Cache"><file name="UniversalVariable.php" hash="761f465d4fda0e3d48541fc67af5c4b1"/></dir><file name="Observer.php" hash="9a22bdcae4fc457372692b0488f30833"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="c76b856838d10860a74c2ec08d47bc87"/></dir></dir><file name="Service.php" hash="fcaba76a3674be482558e8aa62624ba7"/><file name="UniversalVariable.php" hash="7744caef59b5c3f056f89577c108e0f5"/><dir name="Widget"><file name="Type.php" hash="f399f8084a0c9c270c92e5fccd74e50f"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="aff0945a94da77aab01ef814d14309d5"/><file name="cache.xml" hash="9be6ef2826f8e880e0c2db016787cacf"/><file name="config.xml" hash="07a70f8aa122653049d23a20f0f83f53"/><file name="system.xml" hash="d90aad78d74273219bbeb6bd3b38e477"/><file name="widget.xml" hash="e94eaffd9ce677d742161bca542c069b"/></dir><dir name="sql"><dir name="ntoklo_setup"><file name="mysql4-install-1.0.7.php" hash="96c7c0734c5290210b09dbb96f5cfa34"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ntoklo_Recommendations.xml" hash="d809f1cc3329034ac5d3ffcc4fe40d4c"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ntoklo_recommendations.xml" hash="b6649abad9f507fdf0e7b48d11d9a594"/></dir><dir name="template"><dir name="ntoklo"><dir name="recommendations"><file name="universal_variable.phtml" hash="a825bae10ea9f4bd603fa233d2681f93"/><dir name="widget"><file name="chart_horisontal.phtml" hash="4f8e7258e80863431199b9b969d14363"/><file name="chart_review_short.phtml" hash="25a789e2e031e33e6e82fcd8fd73aa23"/><file name="chart_vertical.phtml" hash="1a2f19a8f6141d3cf7d32d4cbc3aa0a2"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="documentation"><file name="readme.html" hash="76a9aa7ea09fbb80af24ce340f498d13"/><dir name="skin"><dir><dir name="img"><file name="cc.png" hash="83f629e3f2c6e94df256a92a0d826079"/><file name="config.png" hash="a0f8540c37bbaa614a6e6818c52b9b1e"/><file name="disablec1.png" hash="3b7a509db5f2228c1187dd169c8a7c34"/><file name="disablec2.png" hash="ce25b484b08735a1890a4871eefd23ef"/><file name="logo.png" hash="5bbc2b3e56f571eb96923185485c3a27"/><file name="widgets_1.png" hash="61c6c6acc64e9bad49e2546d43032767"/><file name="widgets_2.png" hash="a357562e6cb535458c30f8a6c53bd44d"/><file name="widgets_3.png" hash="cc6ec6b496b03e516c29eb8ed63aa7a9"/><file name="widgets_4.png" hash="1feb96648e38c0e95629bf897baeb26b"/></dir></dir><file name="style.css" hash="f544a9e3edc200affa0a9be9af98e878"/></dir></dir><dir name="js"><dir name="ntoklo"><file name="util.js" hash="9cea20bac53b7f7890613e18fd4c5275"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="ntoklo"><file name="custom.css" hash="12162eb47db3f45433dd08c536f99182"/><file name="global.css" hash="fd2d2b773d3ce16d41488e9051bad8c8"/><file name="widget.css" hash="2d1a9869e0c5e857965d4158535237f2"/></dir></dir></dir></dir></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|
skin/frontend/base/default/css/ntoklo/custom.css
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
p{
|
2 |
+
|
3 |
+
color:red;
|
4 |
+
}
|