Version Notes
Initial release
Download this release
Release Info
Developer | Eric Witchin |
Extension | LiveHelpNow_Help_Desk_HelpOut_Tab |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/LHN/HelpOutTab/Model/Numberoptions.php +9 -0
- app/code/community/LHN/HelpOutTab/Model/Observer.php +106 -0
- app/code/community/LHN/HelpOutTab/Model/Themeoptions.php +14 -0
- app/code/community/LHN/HelpOutTab/Model/Torfoptions.php +9 -0
- app/code/community/LHN/HelpOutTab/etc/adminhtml.xml +22 -0
- app/code/community/LHN/HelpOutTab/etc/config.xml +37 -0
- app/code/community/LHN/HelpOutTab/etc/system.xml +158 -0
- app/etc/modules/LHN_HelpOutTab.xml +9 -0
- package.xml +24 -0
app/code/community/LHN/HelpOutTab/Model/Numberoptions.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class LHN_HelpOutTab_Model_Numberoptions{
|
3 |
+
public function toOptionArray(){
|
4 |
+
return array(
|
5 |
+
array('value' => 'true', 'label' => 'yes'),
|
6 |
+
array('value' => 'false', 'label' => 'no')
|
7 |
+
);
|
8 |
+
}
|
9 |
+
}
|
app/code/community/LHN/HelpOutTab/Model/Observer.php
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class LHN_HelpOutTab_Model_Observer{
|
3 |
+
public function controllerFrontSendResponseAfter(Varien_Event_Observer $observer){
|
4 |
+
if(!Mage::app()->getStore()->isAdmin()){
|
5 |
+
$lhnEmail = "";
|
6 |
+
$lhnCustomer = "";
|
7 |
+
$lhnCart = "";
|
8 |
+
if(Mage::getSingleton('customer/session')->isLoggedIn()){
|
9 |
+
$customer = Mage::getSingleton('customer/session');
|
10 |
+
$customerData = Mage::getModel('customer/customer')->load($customer->getId())->getData();
|
11 |
+
|
12 |
+
$lhnEmail = urlencode($customerData['email']);
|
13 |
+
$lhnCustomer = urlencode($customerData['firstname']." ".$customerData['lastname']);
|
14 |
+
|
15 |
+
$cart = Mage::helper('checkout')->getQuote()->getData();
|
16 |
+
$lhnCart = urlencode("Quantity: ".$cart['all_items_qty']." total items<br />");
|
17 |
+
$lhnCart .= urlencode("Subtotal: ".$cart['subtotal']);
|
18 |
+
}
|
19 |
+
|
20 |
+
$lhn_account_number = Mage::getStoreConfig('lhn_helpouttab/general/account_number');
|
21 |
+
$lhn_account_number = str_replace("lhn", "", strtolower($lhn_account_number));
|
22 |
+
$lhn_chat_window = Mage::getStoreConfig('lhn_helpouttab/general/chat_window');
|
23 |
+
$lhn_autochat = Mage::getStoreConfig('lhn_helpouttab/general/autochat');
|
24 |
+
$lhn_theme = Mage::getStoreConfig('lhn_helpouttab/general/theme');
|
25 |
+
$lhn_slideout = Mage::getStoreConfig('lhn_helpouttab/general/slideout');
|
26 |
+
$lhn_chat = Mage::getStoreConfig('lhn_helpouttab/general/chat');
|
27 |
+
$lhn_ticket = Mage::getStoreConfig('lhn_helpouttab/general/ticket');
|
28 |
+
$lhn_callback = Mage::getStoreConfig('lhn_helpouttab/general/callback');
|
29 |
+
$lhn_knowbase = Mage::getStoreConfig('lhn_helpouttab/general/knowbase');
|
30 |
+
$lhn_moreoptions = Mage::getStoreConfig('lhn_helpouttab/general/moreoptions');
|
31 |
+
$lhn_search_title = Mage::getStoreConfig('lhn_helpouttab/general/search_title');
|
32 |
+
$lhn_search_message = Mage::getStoreConfig('lhn_helpouttab/general/search_message');
|
33 |
+
$lhn_no_results = Mage::getStoreConfig('lhn_helpouttab/general/no_results');
|
34 |
+
$lhn_views = Mage::getStoreConfig('lhn_helpouttab/general/views');
|
35 |
+
|
36 |
+
$whiteLabel = '';
|
37 |
+
if(substr($lhn_account_number, -2) == "-1"){
|
38 |
+
$whiteLabel = 'var lhnWhiteLabel = true;'.PHP_EOL;
|
39 |
+
}
|
40 |
+
$lhn_account_number = str_replace("-1", "", $lhn_account_number);
|
41 |
+
|
42 |
+
$lhncontent = '<script type="text/javascript">'.PHP_EOL;
|
43 |
+
$lhncontent .= 'if(lhnHPPanel===undefined){'.PHP_EOL;
|
44 |
+
$lhncontent .= $whiteLabel;
|
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;
|
51 |
+
$lhncontent .= 'var lhnJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");'.PHP_EOL;
|
52 |
+
$lhncontent .= 'var lhnInviteEnabled = '.$lhn_autochat.';'.PHP_EOL;
|
53 |
+
$lhncontent .= 'var lhnInviteChime = 0; '.PHP_EOL;
|
54 |
+
$lhncontent .= 'var lhnWindowN = '.$lhn_chat_window.'; '.PHP_EOL;
|
55 |
+
$lhncontent .= 'var lhnDepartmentN = 0; '.PHP_EOL;
|
56 |
+
$lhncontent .= 'var lhnCustomInvitation ="";'.PHP_EOL;
|
57 |
+
$lhncontent .= 'var lhnTrackingEnabled = "t";'.PHP_EOL;
|
58 |
+
$lhncontent .= 'var lhnTheme = "'.$lhn_theme.'"; '.PHP_EOL;
|
59 |
+
$lhncontent .= 'var lhnHPPanel = '.$lhn_slideout.'; '.PHP_EOL;
|
60 |
+
$lhncontent .= 'var lhnHPKnowledgeBase = '.$lhn_knowbase.'; '.PHP_EOL;
|
61 |
+
$lhncontent .= 'var lhnHPMoreOptions = '.$lhn_moreoptions.'; '.PHP_EOL;
|
62 |
+
$lhncontent .= 'var lhnHPChatButton = '.$lhn_chat.'; '.PHP_EOL;
|
63 |
+
$lhncontent .= 'var lhnHPTicketButton = '.$lhn_ticket.'; '.PHP_EOL;
|
64 |
+
$lhncontent .= 'var lhnHPCallbackButton = '.$lhn_callback.'; '.PHP_EOL;
|
65 |
+
$lhncontent .= 'var lhnLO_helpPanel_knowledgeBase_find_answers = "'.$lhn_search_title.'";'.PHP_EOL;
|
66 |
+
$lhncontent .= 'var lhnLO_helpPanel_knowledgeBase_please_search = "'.$lhn_search_message.'";'.PHP_EOL;
|
67 |
+
$lhncontent .= 'var lhnLO_helpPanel_typeahead_noResults_message = "'.$lhn_no_results.'";'.PHP_EOL;
|
68 |
+
$lhncontent .= 'var lhnLO_helpPanel_typeahead_result_views = "'.$lhn_views.'";'.PHP_EOL;
|
69 |
+
$lhncontent .= 'if(!lhnHPKnowledgeBase && !lhnHPTicketButton && !lhnHPCallbackButton){'.PHP_EOL;
|
70 |
+
$lhncontent .= 'lhnHPChatButton = true;'.PHP_EOL;
|
71 |
+
$lhncontent .= 'lhnHPPanel = false;'.PHP_EOL;
|
72 |
+
$lhncontent .= '}'.PHP_EOL;
|
73 |
+
$lhncontent .= 'var loadLHNFile = function (url, type) { if (type == "js") { var file = document.createElement("script"); file.setAttribute("type", "text/javascript"); file.setAttribute("src", url); } else if (type = "css") { var file = document.createElement("link"); file.setAttribute("rel", "stylesheet"); file.setAttribute("type", "text/css"); file.setAttribute("href", url); } if (typeof file != "undefined") { document.getElementsByTagName("head")[0].appendChild(file) } }'.PHP_EOL;
|
74 |
+
$lhncontent .= 'var loadLHNFiles = function () {'.PHP_EOL;
|
75 |
+
$lhncontent .= 'if (lhnHPChatButton == true && typeof lhnInstalled == "undefined") {'.PHP_EOL;
|
76 |
+
$lhncontent .= 'if (!document.getElementById("lhnChatButton")) {'.PHP_EOL;
|
77 |
+
$lhncontent .= 'if (document.body) {'.PHP_EOL;
|
78 |
+
$lhncontent .= 'var lhnBTNdiv = document.createElement("div");'.PHP_EOL;
|
79 |
+
$lhncontent .= 'lhnBTNdiv.id = "lhnChatButton";'.PHP_EOL;
|
80 |
+
$lhncontent .= 'if (document.body.lastChild) { document.body.insertBefore(lhnBTNdiv, document.body.lastChild); } else { document.body.appendChild(lhnBTNdiv); }'.PHP_EOL;
|
81 |
+
$lhncontent .= '} else {'.PHP_EOL;
|
82 |
+
$lhncontent .= 'document.write("<div id=\"lhnChatButton\"></div>");'.PHP_EOL;
|
83 |
+
$lhncontent .= '}'.PHP_EOL;
|
84 |
+
$lhncontent .= '}'.PHP_EOL;
|
85 |
+
$lhncontent .= 'loadLHNFile(lhnJsHost + "www.livehelpnow.net/lhn/scripts/livehelpnow.aspx?lhnid=" + lhnAccountN + "&iv=" + lhnInviteEnabled + "&d=" + lhnDepartmentN + "&ver=" + lhnVersion + "&rnd=" + Math.random(), "js");'.PHP_EOL;
|
86 |
+
$lhncontent .= 'window.setTimeout("if (typeof bLHNOnline != \'undefined\' && bLHNOnline == 0 && lhnHPPanel == true){document.getElementById(\'lhn_live_chat_btn\').style.display=\'none\';}", 2000);'.PHP_EOL;
|
87 |
+
$lhncontent .= '}'.PHP_EOL;
|
88 |
+
$lhncontent .= 'loadLHNFile(lhnJsHost + "www.livehelpnow.net/lhn/js/build/helppanel.ashx", "js");'.PHP_EOL;
|
89 |
+
$lhncontent .= 'loadLHNFile(lhnJsHost + "www.livehelpnow.net/lhn/js/css/helppanel/" + lhnTheme + "/style.css", "css"); '.PHP_EOL;
|
90 |
+
$lhncontent .= '}'.PHP_EOL;
|
91 |
+
$lhncontent .= 'if (window.addEventListener) {'.PHP_EOL;
|
92 |
+
$lhncontent .= 'window.addEventListener("load", function () {'.PHP_EOL;
|
93 |
+
$lhncontent .= 'loadLHNFiles();'.PHP_EOL;
|
94 |
+
$lhncontent .= '}, false);'.PHP_EOL;
|
95 |
+
$lhncontent .= '} else if (window.attachEvent) {'.PHP_EOL;
|
96 |
+
$lhncontent .= 'window.attachEvent("onload", function () {'.PHP_EOL;
|
97 |
+
$lhncontent .= 'loadLHNFiles();'.PHP_EOL;
|
98 |
+
$lhncontent .= '});'.PHP_EOL;
|
99 |
+
$lhncontent .= '}'.PHP_EOL;
|
100 |
+
$lhncontent .= '}'.PHP_EOL;
|
101 |
+
$lhncontent .= '</script>"'.PHP_EOL;
|
102 |
+
|
103 |
+
echo $lhncontent;
|
104 |
+
}
|
105 |
+
}
|
106 |
+
}
|
app/code/community/LHN/HelpOutTab/Model/Themeoptions.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class LHN_HelpOutTab_Model_Themeoptions{
|
3 |
+
public function toOptionArray(){
|
4 |
+
return array(
|
5 |
+
array('value' => 'default', 'label' => 'default'),
|
6 |
+
array('value' => 'red', 'label' => 'red'),
|
7 |
+
array('value' => 'orange', 'label' => 'orange'),
|
8 |
+
array('value' => 'yellow', 'label' => 'yellow'),
|
9 |
+
array('value' => 'green', 'label' => 'green'),
|
10 |
+
array('value' => 'blue', 'label' => 'blue'),
|
11 |
+
array('value' => 'purple', 'label' => 'purple')
|
12 |
+
);
|
13 |
+
}
|
14 |
+
}
|
app/code/community/LHN/HelpOutTab/Model/Torfoptions.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class LHN_HelpOutTab_Model_Torfoptions{
|
3 |
+
public function toOptionArray(){
|
4 |
+
return array(
|
5 |
+
array('value' => 'true', 'label' => 'yes'),
|
6 |
+
array('value' => 'false', 'label' => 'no')
|
7 |
+
);
|
8 |
+
}
|
9 |
+
}
|
app/code/community/LHN/HelpOutTab/etc/adminhtml.xml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<adminhtml>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<admin>
|
6 |
+
<children>
|
7 |
+
<system>
|
8 |
+
<children>
|
9 |
+
<config>
|
10 |
+
<children>
|
11 |
+
<lhn_helpouttab>
|
12 |
+
<title>LiveHelpNow HelpOut Tab</title>
|
13 |
+
</lhn_helpouttab>
|
14 |
+
</children>
|
15 |
+
</config>
|
16 |
+
</children>
|
17 |
+
</system>
|
18 |
+
</children>
|
19 |
+
</admin>
|
20 |
+
</resources>
|
21 |
+
</acl>
|
22 |
+
</adminhtml>
|
app/code/community/LHN/HelpOutTab/etc/config.xml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<LHN_HelpOutTab>
|
5 |
+
<version>1.0</version>
|
6 |
+
</LHN_HelpOutTab>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<models>
|
10 |
+
<helpouttab>
|
11 |
+
<class>LHN_HelpOutTab_Model</class>
|
12 |
+
</helpouttab>
|
13 |
+
</models>
|
14 |
+
<events>
|
15 |
+
<controller_front_send_response_after>
|
16 |
+
<observers>
|
17 |
+
<lhn_helpouttab>
|
18 |
+
<class>LHN_HelpOutTab_Model_Observer</class>
|
19 |
+
<method>controllerFrontSendResponseAfter</method>
|
20 |
+
</lhn_helpouttab>
|
21 |
+
</observers>
|
22 |
+
</controller_front_send_response_after>
|
23 |
+
</events>
|
24 |
+
</global>
|
25 |
+
<default>
|
26 |
+
<lhn_helpouttab>
|
27 |
+
<general>
|
28 |
+
<chat_window>0</chat_window>
|
29 |
+
<theme>default</theme>
|
30 |
+
<search_title>Find answers</search_title>
|
31 |
+
<search_message>Please search our knowledge base for answers or click [More options]</search_message>
|
32 |
+
<no_results>No results found for</no_results>
|
33 |
+
<views>view</views>
|
34 |
+
</general>
|
35 |
+
</lhn_helpouttab>
|
36 |
+
</default>
|
37 |
+
</config>
|
app/code/community/LHN/HelpOutTab/etc/system.xml
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<lhn>
|
5 |
+
<label>LiveHelpNow</label>
|
6 |
+
<sort_order>100</sort_order>
|
7 |
+
</lhn>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<lhn_helpouttab>
|
11 |
+
<label>HelpOut Tab</label>
|
12 |
+
<tab>lhn</tab>
|
13 |
+
<sort_order>10</sort_order>
|
14 |
+
<show_in_default>1</show_in_default>
|
15 |
+
<show_in_website>1</show_in_website>
|
16 |
+
<show_in_store>1</show_in_store>
|
17 |
+
<groups>
|
18 |
+
<general>
|
19 |
+
<label>General Settings</label>
|
20 |
+
<sort_order>10</sort_order>
|
21 |
+
<show_in_default>1</show_in_default>
|
22 |
+
<show_in_website>1</show_in_website>
|
23 |
+
<show_in_store>1</show_in_store>
|
24 |
+
<fields>
|
25 |
+
<account_number>
|
26 |
+
<label>LiveHelpNow Account Number:</label>
|
27 |
+
<comment><![CDATA[* Must be numeric]]></comment>
|
28 |
+
<frontend_type>text</frontend_type>
|
29 |
+
<sort_order>10</sort_order>
|
30 |
+
<show_in_default>1</show_in_default>
|
31 |
+
<show_in_website>1</show_in_website>
|
32 |
+
<show_in_store>1</show_in_store>
|
33 |
+
</account_number>
|
34 |
+
<chat_window>
|
35 |
+
<label>Chat Window:</label>
|
36 |
+
<comment><![CDATA[* Must be numeric]]></comment>
|
37 |
+
<frontend_type>text</frontend_type>
|
38 |
+
<sort_order>20</sort_order>
|
39 |
+
<show_in_default>1</show_in_default>
|
40 |
+
<show_in_website>1</show_in_website>
|
41 |
+
<show_in_store>1</show_in_store>
|
42 |
+
</chat_window>
|
43 |
+
<autochat>
|
44 |
+
<label>Enable automatic chat invitation:</label>
|
45 |
+
<frontend_type>select</frontend_type>
|
46 |
+
<source_model>helpouttab/numberoptions</source_model>
|
47 |
+
<sort_order>30</sort_order>
|
48 |
+
<show_in_default>1</show_in_default>
|
49 |
+
<show_in_website>1</show_in_website>
|
50 |
+
<show_in_store>1</show_in_store>
|
51 |
+
</autochat>
|
52 |
+
<theme>
|
53 |
+
<label>HelpOut color theme:</label>
|
54 |
+
<frontend_type>select</frontend_type>
|
55 |
+
<source_model>helpouttab/themeoptions</source_model>
|
56 |
+
<sort_order>40</sort_order>
|
57 |
+
<show_in_default>1</show_in_default>
|
58 |
+
<show_in_website>1</show_in_website>
|
59 |
+
<show_in_store>1</show_in_store>
|
60 |
+
</theme>
|
61 |
+
<slideout>
|
62 |
+
<label>Enable slideout panel:</label>
|
63 |
+
<comment><![CDATA[No if you will only be using the Live Chat system]]></comment>
|
64 |
+
<frontend_type>select</frontend_type>
|
65 |
+
<source_model>helpouttab/torfoptions</source_model>
|
66 |
+
<sort_order>50</sort_order>
|
67 |
+
<show_in_default>1</show_in_default>
|
68 |
+
<show_in_website>1</show_in_website>
|
69 |
+
<show_in_store>1</show_in_store>
|
70 |
+
</slideout>
|
71 |
+
<chat>
|
72 |
+
<label>Enable chat button:</label>
|
73 |
+
<comment><![CDATA[No to hide "chat with us" option]]></comment>
|
74 |
+
<frontend_type>select</frontend_type>
|
75 |
+
<source_model>helpouttab/torfoptions</source_model>
|
76 |
+
<sort_order>60</sort_order>
|
77 |
+
<show_in_default>1</show_in_default>
|
78 |
+
<show_in_website>1</show_in_website>
|
79 |
+
<show_in_store>1</show_in_store>
|
80 |
+
</chat>
|
81 |
+
<ticket>
|
82 |
+
<label>Enable ticket button</label>
|
83 |
+
<comment><![CDATA[No to hide "submit a ticket" option]]></comment>
|
84 |
+
<frontend_type>select</frontend_type>
|
85 |
+
<source_model>helpouttab/torfoptions</source_model>
|
86 |
+
<sort_order>70</sort_order>
|
87 |
+
<show_in_default>1</show_in_default>
|
88 |
+
<show_in_website>1</show_in_website>
|
89 |
+
<show_in_store>1</show_in_store>
|
90 |
+
</ticket>
|
91 |
+
<callback>
|
92 |
+
<label>Enable callback bautton:</label>
|
93 |
+
<comment><![CDATA[No to hide "request callback" option]]></comment>
|
94 |
+
<frontend_type>select</frontend_type>
|
95 |
+
<source_model>helpouttab/torfoptions</source_model>
|
96 |
+
<sort_order>80</sort_order>
|
97 |
+
<show_in_default>1</show_in_default>
|
98 |
+
<show_in_website>1</show_in_website>
|
99 |
+
<show_in_store>1</show_in_store>
|
100 |
+
</callback>
|
101 |
+
<knowbase>
|
102 |
+
<label>Knowledge base search:</label>
|
103 |
+
<comment><![CDATA[No to hide the knowledge base search bar, and skip to "More Options"]]></comment>
|
104 |
+
<frontend_type>select</frontend_type>
|
105 |
+
<source_model>helpouttab/torfoptions</source_model>
|
106 |
+
<sort_order>90</sort_order>
|
107 |
+
<show_in_default>1</show_in_default>
|
108 |
+
<show_in_website>1</show_in_website>
|
109 |
+
<show_in_store>1</show_in_store>
|
110 |
+
</knowbase>
|
111 |
+
<moreoptions>
|
112 |
+
<label>Enable More options panel:</label>
|
113 |
+
<comment><![CDATA[No to display the "More Options" slide automatically]]></comment>
|
114 |
+
<frontend_type>select</frontend_type>
|
115 |
+
<source_model>helpouttab/torfoptions</source_model>
|
116 |
+
<sort_order>100</sort_order>
|
117 |
+
<show_in_default>1</show_in_default>
|
118 |
+
<show_in_website>1</show_in_website>
|
119 |
+
<show_in_store>1</show_in_store>
|
120 |
+
</moreoptions>
|
121 |
+
<search_title>
|
122 |
+
<label>"Search" title:</label>
|
123 |
+
<frontend_type>text</frontend_type>
|
124 |
+
<sort_order>110</sort_order>
|
125 |
+
<show_in_default>1</show_in_default>
|
126 |
+
<show_in_website>1</show_in_website>
|
127 |
+
<show_in_store>1</show_in_store>
|
128 |
+
</search_title>
|
129 |
+
<search_message>
|
130 |
+
<label>"Search" message:</label>
|
131 |
+
<frontend_type>text</frontend_type>
|
132 |
+
<sort_order>120</sort_order>
|
133 |
+
<show_in_default>1</show_in_default>
|
134 |
+
<show_in_website>1</show_in_website>
|
135 |
+
<show_in_store>1</show_in_store>
|
136 |
+
</search_message>
|
137 |
+
<no_results>
|
138 |
+
<label>No Results Found message:</label>
|
139 |
+
<frontend_type>text</frontend_type>
|
140 |
+
<sort_order>130</sort_order>
|
141 |
+
<show_in_default>1</show_in_default>
|
142 |
+
<show_in_website>1</show_in_website>
|
143 |
+
<show_in_store>1</show_in_store>
|
144 |
+
</no_results>
|
145 |
+
<views>
|
146 |
+
<label>Article Views label:</label>
|
147 |
+
<frontend_type>text</frontend_type>
|
148 |
+
<sort_order>140</sort_order>
|
149 |
+
<show_in_default>1</show_in_default>
|
150 |
+
<show_in_website>1</show_in_website>
|
151 |
+
<show_in_store>1</show_in_store>
|
152 |
+
</views>
|
153 |
+
</fields>
|
154 |
+
</general>
|
155 |
+
</groups>
|
156 |
+
</lhn_helpouttab>
|
157 |
+
</sections>
|
158 |
+
</config>
|
app/etc/modules/LHN_HelpOutTab.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<LHN_HelpOutTab>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</LHN_HelpOutTab>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>LiveHelpNow_Help_Desk_HelpOut_Tab</name>
|
4 |
+
<version>1.0.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 that’s easy to spot and works intuitively.</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.
|
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-04</date>
|
20 |
+
<time>09:59:29</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="0797253e10ae51b279de31ffa6a22c8f"/><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>
|
22 |
+
<compatible/>
|
23 |
+
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
24 |
+
</package>
|