Version Notes
Now includes Google Analytics Event Tracking
Download this release
Release Info
Developer | Eric Witchin |
Extension | LiveHelpNow_Help_Desk_HelpOut_Tab |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.1.0
app/code/community/LHN/HelpOutTab/Model/Observer.php
CHANGED
@@ -45,6 +45,7 @@ class LHN_HelpOutTab_Model_Observer{
|
|
45 |
$lhncontent .= 'var lhnCustom1 = "'.$lhnEmail.'";'.PHP_EOL;
|
46 |
$lhncontent .= 'var lhnCustom2 = "'.$lhnCustomer.'";'.PHP_EOL;
|
47 |
$lhncontent .= 'var lhnCustom3 = "'.$lhnCart.'";'.PHP_EOL;
|
|
|
48 |
$lhncontent .= 'var lhnVersion = 5.3;'.PHP_EOL;
|
49 |
$lhncontent .= 'var lhnAccountN = '.$lhn_account_number.';'.PHP_EOL;
|
50 |
$lhncontent .= 'var lhnButtonN = -1;'.PHP_EOL;
|
@@ -99,6 +100,45 @@ class LHN_HelpOutTab_Model_Observer{
|
|
99 |
$lhncontent .= '}'.PHP_EOL;
|
100 |
$lhncontent .= '}'.PHP_EOL;
|
101 |
$lhncontent .= '</script>"'.PHP_EOL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
echo $lhncontent;
|
104 |
}
|
45 |
$lhncontent .= 'var lhnCustom1 = "'.$lhnEmail.'";'.PHP_EOL;
|
46 |
$lhncontent .= 'var lhnCustom2 = "'.$lhnCustomer.'";'.PHP_EOL;
|
47 |
$lhncontent .= 'var lhnCustom3 = "'.$lhnCart.'";'.PHP_EOL;
|
48 |
+
$lhncontent .= 'var lhnPlugin = "Mage-'.Mage::getVersion().'-HO";'.PHP_EOL;
|
49 |
$lhncontent .= 'var lhnVersion = 5.3;'.PHP_EOL;
|
50 |
$lhncontent .= 'var lhnAccountN = '.$lhn_account_number.';'.PHP_EOL;
|
51 |
$lhncontent .= 'var lhnButtonN = -1;'.PHP_EOL;
|
100 |
$lhncontent .= '}'.PHP_EOL;
|
101 |
$lhncontent .= '}'.PHP_EOL;
|
102 |
$lhncontent .= '</script>"'.PHP_EOL;
|
103 |
+
$lhncontent .= '<script type="text/javascript">'.PHP_EOL;
|
104 |
+
$lhncontent .= 'function LHN_HelpPanel_onLoad(){'.PHP_EOL;
|
105 |
+
$lhncontent .= 'wireLHNEvents();'.PHP_EOL;
|
106 |
+
$lhncontent .= '}'.PHP_EOL;
|
107 |
+
$lhncontent .= 'function wireLHNEvents() {'.PHP_EOL;
|
108 |
+
$lhncontent .= 'window.lhn("#lhn_help_btn").click(function(){'.PHP_EOL;
|
109 |
+
$lhncontent .= "lhnPushAnalytics('LiveHelpNow HelpOut Tab', 'Tab Click');".PHP_EOL;
|
110 |
+
$lhncontent .= '});'.PHP_EOL;
|
111 |
+
$lhncontent .= 'window.lhn("#lhn_helppanel #lhn_help_exit").click(function(){'.PHP_EOL;
|
112 |
+
$lhncontent .= "lhnPushAnalytics('LiveHelpNow HelpOut Tab', 'Close Button Click');".PHP_EOL;
|
113 |
+
$lhncontent .= '});'.PHP_EOL;
|
114 |
+
$lhncontent .= 'window.lhn("#lhn_helppanel .lhn_options_btn").click(function(){'.PHP_EOL;
|
115 |
+
$lhncontent .= "lhnPushAnalytics('LiveHelpNow HelpOut Tab', 'More Options Button Click');".PHP_EOL;
|
116 |
+
$lhncontent .= '});'.PHP_EOL;
|
117 |
+
$lhncontent .= 'window.lhn("#lhn_helppanel #lhn_search_box").blur(function(){'.PHP_EOL;
|
118 |
+
$lhncontent .= 'if(window.lhn(this).val() != ""){'.PHP_EOL;
|
119 |
+
$lhncontent .= 'lhnCurVal = window.lhn(this).val();'.PHP_EOL;
|
120 |
+
$lhncontent .= 'if(typeof(lhnOldVal) == "undefined" || lhnOldVal != lhnCurVal){'.PHP_EOL;
|
121 |
+
$lhncontent .= "lhnPushAnalytics('LiveHelpNow HelpOut Tab', 'Knowledge Base Search', encodeURIComponent(window.lhn(this).val()));".PHP_EOL;
|
122 |
+
$lhncontent .= 'lhnOldVal = lhnCurVal;'.PHP_EOL;
|
123 |
+
$lhncontent .= '}'.PHP_EOL;
|
124 |
+
$lhncontent .= '}'.PHP_EOL;
|
125 |
+
$lhncontent .= '});'.PHP_EOL;
|
126 |
+
$lhncontent .= 'window.lhn("#lhn_helppanel .lhn_live_chat_btn").click(function(){'.PHP_EOL;
|
127 |
+
$lhncontent .= "lhnPushAnalytics('LiveHelpNow HelpOut Tab', 'Chat Button Click');".PHP_EOL;
|
128 |
+
$lhncontent .= '});'.PHP_EOL;
|
129 |
+
$lhncontent .= 'window.lhn("#lhn_helppanel .lhn_ticket_btn").click(function(){'.PHP_EOL;
|
130 |
+
$lhncontent .= "lhnPushAnalytics('LiveHelpNow HelpOut Tab', 'Ticket Button Click');".PHP_EOL;
|
131 |
+
$lhncontent .= '});'.PHP_EOL;
|
132 |
+
$lhncontent .= 'window.lhn("#lhn_helppanel .lhn_callback_btn").click(function(){'.PHP_EOL;
|
133 |
+
$lhncontent .= "lhnPushAnalytics('LiveHelpNow HelpOut Tab', 'Callback Button Click');".PHP_EOL;
|
134 |
+
$lhncontent .= '});'.PHP_EOL;
|
135 |
+
$lhncontent .= '}'.PHP_EOL;
|
136 |
+
$lhncontent .= 'function lhnPushAnalytics(category, event, label){'.PHP_EOL;
|
137 |
+
$lhncontent .= 'if(typeof(_gaq) != "undefined"){'.PHP_EOL;
|
138 |
+
$lhncontent .= '_gaq.push(["_trackEvent", category, event, label]);'.PHP_EOL;
|
139 |
+
$lhncontent .= '}'.PHP_EOL;
|
140 |
+
$lhncontent .= '}'.PHP_EOL;
|
141 |
+
$lhncontent .= '</script>'.PHP_EOL;
|
142 |
|
143 |
echo $lhncontent;
|
144 |
}
|
package.xml
CHANGED
@@ -1,24 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>LiveHelpNow_Help_Desk_HelpOut_Tab</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>The HelpOut Tab plugin displays help desk options to visitors in a snappy right tab
|
10 |
-
<description>LiveHelpNow is a responsive, reliable, and extremely affordable Help Desk Software for your website. The HelpOut Tab plugin displays help desk options to visitors in a snappy right tab that’s easy to spot and works intuitively- pointing customers with questions to instant answers so they can find all the information they need to make a confident purchase
|
11 |
-
|
12 |
-
The versatile HelpOut Tab works with any combination of LiveHelpNow products:
|
13 |
-
-Live Chat System
|
14 |
-
-Ticket System
|
15 |
-
-Callback Request System
|
16 |
-
-Knowledge Base System</description>
|
17 |
-
<notes>Initial release</notes>
|
18 |
<authors><author><name>Eric Witchin</name><user>livehelpnow</user><email>plugins@livehelpnpw.com</email></author></authors>
|
19 |
-
<date>2013-04-
|
20 |
-
<time>
|
21 |
-
<contents><target name="magecommunity"><dir name="LHN"><dir name="HelpOutTab"><dir name="Model"><file name="Numberoptions.php" hash="69866ada2a28f913c0a95d7890361ede"/><file name="Observer.php" hash="
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>LiveHelpNow_Help_Desk_HelpOut_Tab</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>The HelpOut Tab plugin displays help desk options to visitors in a snappy right tab.</summary>
|
10 |
+
<description>LiveHelpNow is a responsive, reliable, and extremely affordable Help Desk Software for your website. The HelpOut Tab plugin displays help desk options to visitors in a snappy right tab that’s easy to spot and works intuitively- pointing customers with questions to instant answers so they can find all the information they need to make a confident purchase. The versatile HelpOut Tab works with any combination of LiveHelpNow products: - Live Chat System - Ticket System - Callback Request System - Knowledge Base System</description>
|
11 |
+
<notes>Now includes Google Analytics Event Tracking</notes>
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<authors><author><name>Eric Witchin</name><user>livehelpnow</user><email>plugins@livehelpnpw.com</email></author></authors>
|
13 |
+
<date>2013-04-11</date>
|
14 |
+
<time>16:30:32</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="LHN"><dir name="HelpOutTab"><dir name="Model"><file name="Numberoptions.php" hash="69866ada2a28f913c0a95d7890361ede"/><file name="Observer.php" hash="28b1ef4e11a123d9f83048362bf2e401"/><file name="Themeoptions.php" hash="59cab048698fb9db808acc373d70b9f0"/><file name="Torfoptions.php" hash="0607e2cee88f601872159836b97a6cd9"/></dir><dir name="etc"><file name="adminhtml.xml" hash="224498779875ca9fb89e3a6f24c9541a"/><file name="config.xml" hash="e4b4270ffb259b98164da25ebb86397f"/><file name="system.xml" hash="5a5964dd05dd40b8e0b9a3318506c201"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="LHN_HelpOutTab.xml" hash="2527101d29220ad373ee8e4572b70dd7"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|