Version Notes
Conversion tracking update Url encode to API Key
Download this release
Release Info
Developer | NanoRep |
Extension | NanoRep_Widgets_1_1_0 |
Version | 2.0.6 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.0.6
app/code/local/NanoRep/Widgets/Helper/Data.php~
DELETED
@@ -1,114 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NanoRep Widgets Extension
|
4 |
-
*
|
5 |
-
* @package NanoRep_Widgets
|
6 |
-
* @company nanoRep.
|
7 |
-
* @website http://www.nanorep.com
|
8 |
-
* @author Dan Aharon-Shalom
|
9 |
-
*/
|
10 |
-
|
11 |
-
|
12 |
-
class NanoRep_Widgets_Helper_Data extends Mage_Core_Helper_Abstract
|
13 |
-
{
|
14 |
-
public function getAccountName(){
|
15 |
-
return Mage::getStoreConfig("nanorepwidgets/account_settings/account_name");
|
16 |
-
}
|
17 |
-
|
18 |
-
public function isFloatWidgetActiveForCurrentPage(){
|
19 |
-
if(Mage::getStoreConfigFlag("nanorepwidgets/float_widget/active_pages")){
|
20 |
-
$module = Mage::app()->getRequest()->getModuleName();
|
21 |
-
$controller = Mage::app()->getRequest()->getControllerName();
|
22 |
-
return($module == 'catalog' && $controller == 'product');
|
23 |
-
}
|
24 |
-
else{
|
25 |
-
return true;
|
26 |
-
}
|
27 |
-
|
28 |
-
}
|
29 |
-
|
30 |
-
public function getUsername(){
|
31 |
-
return Mage::getStoreConfig("nanorepwidgets/account_settings/username") . '@'. Mage::getStoreConfig("nanorepwidgets/account_settings/account_name");
|
32 |
-
}
|
33 |
-
|
34 |
-
public function getPassword(){
|
35 |
-
return Mage::getStoreConfig("nanorepwidgets/account_settings/password");
|
36 |
-
}
|
37 |
-
|
38 |
-
public function getAttributes(){
|
39 |
-
return (is_null(Mage::getStoreConfig("nanorepwidgets/account_settings/attribute_select"))) ? array(): explode(',', Mage::getStoreConfig("nanorepwidgets/account_settings/attribute_select"));
|
40 |
-
}
|
41 |
-
|
42 |
-
public function isEmbededWidgetEnabled(){
|
43 |
-
return Mage::getStoreConfigFlag("nanorepwidgets/embed_widget/active");
|
44 |
-
}
|
45 |
-
|
46 |
-
public function isEmbededWidgetQuestionsHidden(){
|
47 |
-
return Mage::getStoreConfigFlag("nanorepwidgets/embed_widget/question_hidden");
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
public function getEmbededWidgetWidth(){
|
52 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/width");
|
53 |
-
}
|
54 |
-
|
55 |
-
public function getEmbededWidgetMaxHeight(){
|
56 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/max_height");
|
57 |
-
}
|
58 |
-
|
59 |
-
public function getEmbededWidgetDivCss(){
|
60 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/div_css");
|
61 |
-
}
|
62 |
-
|
63 |
-
public function getEmbededWidgetFaqNum(){
|
64 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/faq_num");
|
65 |
-
}
|
66 |
-
|
67 |
-
public function getEmbededWidgetKb(){
|
68 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/kb");
|
69 |
-
}
|
70 |
-
|
71 |
-
public function getEmbededWidgetSkip(){
|
72 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/skip");
|
73 |
-
}
|
74 |
-
|
75 |
-
public function getEmbededWidgetByPopularity(){
|
76 |
-
return Mage::getStoreConfigFlag("nanorepwidgets/embed_widget/by_popularity");
|
77 |
-
}
|
78 |
-
|
79 |
-
public function getEmbededWidgetDays(){
|
80 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/days");
|
81 |
-
}
|
82 |
-
|
83 |
-
public function getEmbededWidgetLabelId(){
|
84 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/label_id");
|
85 |
-
}
|
86 |
-
|
87 |
-
public function getEmbededWidgetTextFilter(){
|
88 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/text_filter");
|
89 |
-
}
|
90 |
-
|
91 |
-
public function getEmbededWidgetProductFaqHeadline(){
|
92 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/product_faq_headline");
|
93 |
-
}
|
94 |
-
|
95 |
-
// public function getEmbededWidgetGeneralFaqHeadline(){
|
96 |
-
// return Mage::getStoreConfig("nanorepwidgets/embed_widget/general_faq_headline");
|
97 |
-
// }
|
98 |
-
|
99 |
-
public function getEmbededWidgetMaxItems(){
|
100 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/max_items");
|
101 |
-
}
|
102 |
-
|
103 |
-
public function getEmbededWidgetCacheTimeout(){
|
104 |
-
return Mage::getStoreConfig("nanorepwidgets/embed_widget/cache_timeout");
|
105 |
-
}
|
106 |
-
|
107 |
-
public function getStoreQueryInCookieUrl(){
|
108 |
-
return Mage::getBaseUrl() . 'nanorep/query/storeQuery';
|
109 |
-
}
|
110 |
-
|
111 |
-
public function getSession(){
|
112 |
-
return Mage::getSingleton('nanorepwidgets/session');
|
113 |
-
}
|
114 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/NanoRep/Widgets/Model/System/Config/Backend/ConversionTracking.php
CHANGED
@@ -19,7 +19,7 @@ class Nanorep_Widgets_Model_System_Config_Backend_ConversionTracking extends Mag
|
|
19 |
$request = Mage::getModel('nanorepwidgets/request');
|
20 |
$request->setData('account', $this->getFieldsetDataValue("account_name"));
|
21 |
$request->setData('url', rtrim(Mage::getBaseUrl(),"/"));
|
22 |
-
$request->setData('apikey', $this->getFieldsetDataValue("account_api_key"));
|
23 |
$request->setData('ab', '5');
|
24 |
$request->setData('name', 'Conversion');
|
25 |
$currencyCode = Mage::app()->getStore()->getBaseCurrencyCode();
|
19 |
$request = Mage::getModel('nanorepwidgets/request');
|
20 |
$request->setData('account', $this->getFieldsetDataValue("account_name"));
|
21 |
$request->setData('url', rtrim(Mage::getBaseUrl(),"/"));
|
22 |
+
$request->setData('apikey', urlencode($this->getFieldsetDataValue("account_api_key")));
|
23 |
$request->setData('ab', '5');
|
24 |
$request->setData('name', 'Conversion');
|
25 |
$currencyCode = Mage::app()->getStore()->getBaseCurrencyCode();
|
app/code/local/NanoRep/Widgets/etc/config.xml
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<NanoRep_Widgets>
|
15 |
-
<version>2.0.
|
16 |
</NanoRep_Widgets>
|
17 |
</modules>
|
18 |
<global>
|
12 |
<config>
|
13 |
<modules>
|
14 |
<NanoRep_Widgets>
|
15 |
+
<version>2.0.6</version>
|
16 |
</NanoRep_Widgets>
|
17 |
</modules>
|
18 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>NanoRep_Widgets_1_1_0</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -45,11 +45,11 @@ Agents get a 360
|
|
45 |
degree view of customers’ activity before
|
46 |
working on cases.
|
47 |
</description>
|
48 |
-
<notes>Conversion tracking update</notes>
|
49 |
<authors><author><name>NanoRep</name><user>avivnanore</user><email>aviv@nanorep.com</email></author></authors>
|
50 |
-
<date>2014-11-
|
51 |
-
<time>
|
52 |
-
<contents><target name="magelocal"><dir name="NanoRep"><dir name="Widgets"><dir name="Block"><dir name="Adminhtml"><dir name="Answer"><dir name="Grid"><file name="Export.php" hash="98bed6330628da0056b9281cd0044ab1"/></dir><file name="Grid.php" hash="bda00ac3e4e1d85327eac227949e7bb5"/></dir><file name="Answer.php" hash="2c1b7c5dfdd1485b6c3cd8eb2c134bcd"/><file name="Mynanorep.php" hash="a7aea34f919bc75ca9a2d374a115b3fa"/><dir name="Order"><dir name="Grid"><file name="Export.php" hash="13bc156b3331c9b2dacde70e8483a909"/></dir><file name="Grid.php" hash="a78d4a0d35b0f1575763af33bb7c03e4"/><dir name="View"><file name="Queries.php" hash="7c1c21f3cc8abc848fdf091c8b05d4cf"/></dir></dir><file name="Order.php" hash="39ebfd2fe23db490046ae8e324901b72"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><dir name="Answer"><dir name="Body"><file name="Pretty.php" hash="0a7d01f7ff96b9bace44256e82ab047e"/></dir><file name="Body.php" hash="89f497faa6a03cac040834804439a8d2"/><dir name="Title"><file name="Pretty.php" hash="b47a584daaed1c1e55545877b097f75b"/></dir><file name="Title.php" hash="115ee0a85937406fa07e8d439f1e3dbb"/></dir><dir name="Questions"><file name="Pretty.php" hash="3ffd9f82f2c5c2696eed0f35f7109b9e"/></dir><file name="Questions.php" hash="1a979d2272acde87c1e907aa29816c6c"/><dir name="Results"><file name="Pretty.php" hash="f0c8ba45e792f4cfee6ce4a22a3898fa"/></dir><file name="Results.php" hash="d08aa0325398bc23b335df26ca48c53c"/></dir></dir></dir></dir></dir><file name="Customerhistoryjson.php" hash="2e6a8dc4c0e5c49639ff088ac3910009"/><file name="Embed.php" hash="c228d0d8d1dce3a975147434ef8f38ea"/><file name="Events.php" hash="5f5f965d626c8b73c072db1fca506d4c"/><file name="Float.php" hash="e51c028ad72498a96dcd1b38ae2f18f7"/><file name="Header.php" hash="88fbe58d72982d15434f4b0d1462942e"/><file name="Login.php" hash="26301dd7a70c4d73937d0e33d027942d"/><file name="Success.php" hash="9383181f50edf203c457872412de7a0c"/></dir><dir name="Helper"><file name="Data.php" hash="9c87dbc1138c4017678203141050eecc"
|
53 |
<compatible/>
|
54 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
55 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>NanoRep_Widgets_1_1_0</name>
|
4 |
+
<version>2.0.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
|
7 |
<channel>community</channel>
|
45 |
degree view of customers’ activity before
|
46 |
working on cases.
|
47 |
</description>
|
48 |
+
<notes>Conversion tracking update Url encode to API Key</notes>
|
49 |
<authors><author><name>NanoRep</name><user>avivnanore</user><email>aviv@nanorep.com</email></author></authors>
|
50 |
+
<date>2014-11-23</date>
|
51 |
+
<time>15:01:37</time>
|
52 |
+
<contents><target name="magelocal"><dir name="NanoRep"><dir name="Widgets"><dir name="Block"><dir name="Adminhtml"><dir name="Answer"><dir name="Grid"><file name="Export.php" hash="98bed6330628da0056b9281cd0044ab1"/></dir><file name="Grid.php" hash="bda00ac3e4e1d85327eac227949e7bb5"/></dir><file name="Answer.php" hash="2c1b7c5dfdd1485b6c3cd8eb2c134bcd"/><file name="Mynanorep.php" hash="a7aea34f919bc75ca9a2d374a115b3fa"/><dir name="Order"><dir name="Grid"><file name="Export.php" hash="13bc156b3331c9b2dacde70e8483a909"/></dir><file name="Grid.php" hash="a78d4a0d35b0f1575763af33bb7c03e4"/><dir name="View"><file name="Queries.php" hash="7c1c21f3cc8abc848fdf091c8b05d4cf"/></dir></dir><file name="Order.php" hash="39ebfd2fe23db490046ae8e324901b72"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><dir name="Answer"><dir name="Body"><file name="Pretty.php" hash="0a7d01f7ff96b9bace44256e82ab047e"/></dir><file name="Body.php" hash="89f497faa6a03cac040834804439a8d2"/><dir name="Title"><file name="Pretty.php" hash="b47a584daaed1c1e55545877b097f75b"/></dir><file name="Title.php" hash="115ee0a85937406fa07e8d439f1e3dbb"/></dir><dir name="Questions"><file name="Pretty.php" hash="3ffd9f82f2c5c2696eed0f35f7109b9e"/></dir><file name="Questions.php" hash="1a979d2272acde87c1e907aa29816c6c"/><dir name="Results"><file name="Pretty.php" hash="f0c8ba45e792f4cfee6ce4a22a3898fa"/></dir><file name="Results.php" hash="d08aa0325398bc23b335df26ca48c53c"/></dir></dir></dir></dir></dir><file name="Customerhistoryjson.php" hash="2e6a8dc4c0e5c49639ff088ac3910009"/><file name="Embed.php" hash="c228d0d8d1dce3a975147434ef8f38ea"/><file name="Events.php" hash="5f5f965d626c8b73c072db1fca506d4c"/><file name="Float.php" hash="e51c028ad72498a96dcd1b38ae2f18f7"/><file name="Header.php" hash="88fbe58d72982d15434f4b0d1462942e"/><file name="Login.php" hash="26301dd7a70c4d73937d0e33d027942d"/><file name="Success.php" hash="9383181f50edf203c457872412de7a0c"/></dir><dir name="Helper"><file name="Data.php" hash="9c87dbc1138c4017678203141050eecc"/></dir><dir name="Model"><file name="Answer.php" hash="3931d7299a746e0ac90a6cae4a154982"/><file name="History.php" hash="0ffa4f8d5366abc1f7702e101cc5a90f"/><file name="Observer.php" hash="dec7cbc2f825f40ec18737b6bead79aa"/><file name="Query.php" hash="c4eaf10c4bae492d782b552550570215"/><file name="Request.php" hash="aa581b40cd716654a1f71cc0fe202fcc"/><dir name="Resource"><dir name="Answer"><file name="Collection.php" hash="febae104bf1dd741119b8cf6f168b21d"/></dir><file name="Answer.php" hash="0f79604579c93d4315b62cc23d595a53"/><dir name="Query"><file name="Collection.php" hash="ab7cd2f853a4f21d216ee24748a9b1c8"/></dir><file name="Query.php" hash="ccc5ae9e2e2f144c37fef2245033911c"/><file name="Setup.php" hash="812ef9ae3c38fe84eda2c702890faac5"/></dir><file name="Session.php" hash="63b7e34c1782e8e376936e7f196b0353"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="ConversionTracking.php" hash="fd8154dd85c21be1f8e4270f21e42358"/></dir><dir name="Source"><file name="Attribute.php" hash="03529194354c0557a881305a69158fa5"/><file name="FloatWidgetActivePages.php" hash="e1f7f28f4e3e13ba13e4293eed61a943"/><file name="OrdersStatusActivePages.php" hash="f098536503386289102acfcc19d016a6"/><file name="ProductIdAttribute.php" hash="03c69b051e8ba54e47f87b6f1495c19e"/></dir></dir></dir></dir><dir name="controllers"><file name="AccountController.php" hash="a0500edbd0a13d11a8e5827a30fa5b20"/><dir name="Adminhtml"><file name="AnswerController.php" hash="c78297d83f113e8e01cc6b39158bdc66"/><file name="MynanorepController.php" hash="b411ddc154ef98ca3f568daab73fd003"/><file name="OrderController.php" hash="b5484dde49a2ebbcc8b0933bcad4c0bb"/></dir><file name="IndexController.php" hash="a88b39a8ee27925df32be3c57f95cbf6"/><file name="OrderController.php" hash="45be95b16ff3bbf928c0e8234a4a3fb2"/><file name="QueryController.php" hash="58145cd9ff89c0bc7ff078c0d11b4d83"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6b796ffd37d982a516efac2d8870c4dc"/><file name="config.xml" hash="4f0a34e8fb2c0cca080c587ef25d0fe1"/><file name="system.xml" hash="8cad9f521d66e0361e756c57be7e6c11"/></dir><dir name="sql"><dir name="nanorepwidgets_setup"><file name="install-2.0.0.php" hash="df808cb581bb4e2cf8a03687c2969d1b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NanoRep_Widgets.xml" hash="4fbaad20e02fa3ed2147ba15864c3cab"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="cb0c460f77b9ff6f9387043a9847ebf5"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="614a1e232dc084e781eae2ce2a4e8bf8"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="cb0c460f77b9ff6f9387043a9847ebf5"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="614a1e232dc084e781eae2ce2a4e8bf8"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir><dir name="default"><dir name="default"><dir name="template"><dir name="nanorepwidgets"><file name="mynanorep.phtml" hash="ecdbcbdfbe5c4e4ed18aaf74492b5adb"/><dir name="order"><dir name="view"><file name="queries.phtml" hash="0c4e8fdd10069b2c14bb2096585eb866"/><dir name="tab"><file name="info.phtml" hash="b7d4f357da6def4bf1d6889ee95f45bb"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="8b08ea4c0b090dd758bb0cb65bc9a871"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="nanorepwidgets"><file name="head.css" hash="1779a092e2c2a771a0725e1cdd682a46"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/></dir></dir></dir></dir></target></contents>
|
53 |
<compatible/>
|
54 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
55 |
</package>
|