Version Notes
Improve load fast widget features
- Remove Url loaded script
- Use simple method to implement js script in admin
Download this release
Release Info
Developer | Raju Jangid |
Extension | JTT_Tagove |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- app/code/community/JTT/Tagove/Block/Script.php +4 -81
- app/code/community/JTT/Tagove/Helper/Data.php +0 -0
- app/code/community/JTT/Tagove/Model/Observer.php +0 -0
- app/code/community/JTT/Tagove/etc/config.xml +0 -0
- app/code/community/JTT/Tagove/etc/system.xml +6 -18
- app/design/frontend/base/default/layout/tagove.xml +1 -0
- app/design/frontend/base/default/template/tagove/main.phtml +0 -0
- package.xml +55 -42
app/code/community/JTT/Tagove/Block/Script.php
CHANGED
@@ -20,99 +20,22 @@ class JTT_Tagove_Block_Script extends Mage_Core_Block_Template
|
|
20 |
*
|
21 |
* @return string
|
22 |
*/
|
23 |
-
private function getPostUrlContents($url,$data){
|
24 |
-
|
25 |
-
if(function_exists('curl_init')){
|
26 |
-
$ch = curl_init();
|
27 |
-
|
28 |
-
// define options
|
29 |
-
$optArray = array(
|
30 |
-
CURLOPT_URL => 'https://'.TAGOVE_URL.'/'.$url,
|
31 |
-
CURLOPT_RETURNTRANSFER => true,
|
32 |
-
CURLOPT_POSTFIELDS =>1,
|
33 |
-
CURLOPT_SSL_VERIFYPEER =>0,
|
34 |
-
CURLOPT_POSTFIELDS=>http_build_query($data)
|
35 |
-
);
|
36 |
-
|
37 |
-
curl_setopt_array($ch, $optArray);
|
38 |
-
|
39 |
-
$result = curl_exec($ch);
|
40 |
-
return $result;
|
41 |
-
} else {
|
42 |
-
|
43 |
-
return file_get_contents('http://'.TAGOVE_URL.'/'.$url,false,stream_context_create(array(
|
44 |
-
'http' => array(
|
45 |
-
'method' => 'POST',
|
46 |
-
'header' => 'Content-type: application/x-www-form-urlencoded',
|
47 |
-
'content' => http_build_query($data)
|
48 |
-
)
|
49 |
-
)));
|
50 |
-
}
|
51 |
-
}
|
52 |
|
53 |
public function tagove_chat() {
|
54 |
|
55 |
-
$data=array();
|
56 |
$chat_code_exist = Mage::getStoreConfig('tagove_options/jtt_tagove_enabled/tagove_status');
|
57 |
|
58 |
if ($chat_code_exist) {
|
59 |
|
60 |
-
$
|
61 |
-
$tagove_password = Mage::getStoreConfig('tagove_options/jtt_tagove/tagove_password');
|
62 |
|
63 |
-
$
|
64 |
-
'api'=>'true',
|
65 |
-
'Login'=>'Login',
|
66 |
-
'Email'=>$tagove_email,
|
67 |
-
'v5'=>'1',
|
68 |
-
'Password'=>$tagove_password,
|
69 |
-
));
|
70 |
-
|
71 |
-
if(stripos($result, 'error') !== false)
|
72 |
{
|
73 |
-
return
|
74 |
|
75 |
}
|
76 |
else {
|
77 |
-
|
78 |
-
// $chat_script = $result;
|
79 |
-
// $chat_code;//die;
|
80 |
-
|
81 |
-
|
82 |
-
$code = $result;
|
83 |
-
$accounts = (array)json_decode($code);
|
84 |
-
if(empty($accounts)){
|
85 |
-
|
86 |
-
return "Something went wrong, please try after sometime!";
|
87 |
-
|
88 |
-
}else {
|
89 |
-
|
90 |
-
if (sizeof($accounts) > 1) {
|
91 |
-
|
92 |
-
foreach ($accounts as $account => $value) {
|
93 |
-
$code = $value;
|
94 |
-
// $_SESSION['accOption'] .= htmlspecialchars("<option value='". $value . "'>". $account . "</option>");
|
95 |
-
|
96 |
-
}
|
97 |
-
|
98 |
-
return htmlspecialchars_decode($code);
|
99 |
-
|
100 |
-
|
101 |
-
} else {
|
102 |
-
|
103 |
-
$code = "";
|
104 |
-
|
105 |
-
foreach ($accounts as $account => $value) {
|
106 |
-
|
107 |
-
$code = $value;
|
108 |
-
|
109 |
-
}
|
110 |
-
|
111 |
-
return htmlspecialchars_decode($code);
|
112 |
-
|
113 |
-
}
|
114 |
-
|
115 |
-
}
|
116 |
}
|
117 |
|
118 |
}
|
20 |
*
|
21 |
* @return string
|
22 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
public function tagove_chat() {
|
25 |
|
|
|
26 |
$chat_code_exist = Mage::getStoreConfig('tagove_options/jtt_tagove_enabled/tagove_status');
|
27 |
|
28 |
if ($chat_code_exist) {
|
29 |
|
30 |
+
$tagove_widget_code = Mage::getStoreConfig('tagove_options/jtt_tagove/tagove_widget_code');
|
|
|
31 |
|
32 |
+
if($tagove_widget_code)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
{
|
34 |
+
return $tagove_widget_code;
|
35 |
|
36 |
}
|
37 |
else {
|
38 |
+
return NULL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
|
41 |
}
|
app/code/community/JTT/Tagove/Helper/Data.php
CHANGED
File without changes
|
app/code/community/JTT/Tagove/Model/Observer.php
CHANGED
File without changes
|
app/code/community/JTT/Tagove/etc/config.xml
CHANGED
File without changes
|
app/code/community/JTT/Tagove/etc/system.xml
CHANGED
@@ -44,34 +44,22 @@
|
|
44 |
|
45 |
|
46 |
<jtt_tagove translate="label">
|
47 |
-
<label>
|
48 |
<frontend_type>text</frontend_type>
|
49 |
<sort_order>2</sort_order>
|
50 |
<show_in_default>1</show_in_default>
|
51 |
<show_in_website>1</show_in_website>
|
52 |
<show_in_store>1</show_in_store>
|
53 |
<fields>
|
54 |
-
<
|
55 |
-
<label>
|
56 |
-
<frontend_type>
|
57 |
<sort_order>1</sort_order>
|
58 |
<show_in_default>1</show_in_default>
|
59 |
<show_in_website>1</show_in_website>
|
60 |
<show_in_store>1</show_in_store>
|
61 |
-
<comment
|
62 |
-
</
|
63 |
-
</fields>
|
64 |
-
|
65 |
-
<fields>
|
66 |
-
<tagove_password>
|
67 |
-
<label>Password</label>
|
68 |
-
<frontend_type>password</frontend_type>
|
69 |
-
<sort_order>2</sort_order>
|
70 |
-
<show_in_default>1</show_in_default>
|
71 |
-
<show_in_website>1</show_in_website>
|
72 |
-
<show_in_store>1</show_in_store>
|
73 |
-
<comment>Tagove account password.</comment>
|
74 |
-
</tagove_password>
|
75 |
</fields>
|
76 |
</jtt_tagove>
|
77 |
</groups>
|
44 |
|
45 |
|
46 |
<jtt_tagove translate="label">
|
47 |
+
<label>Add Tagove script code to access chat widget</label>
|
48 |
<frontend_type>text</frontend_type>
|
49 |
<sort_order>2</sort_order>
|
50 |
<show_in_default>1</show_in_default>
|
51 |
<show_in_website>1</show_in_website>
|
52 |
<show_in_store>1</show_in_store>
|
53 |
<fields>
|
54 |
+
<tagove_widget_code>
|
55 |
+
<label>Widget Script Code</label>
|
56 |
+
<frontend_type>textarea</frontend_type>
|
57 |
<sort_order>1</sort_order>
|
58 |
<show_in_default>1</show_in_default>
|
59 |
<show_in_website>1</show_in_website>
|
60 |
<show_in_store>1</show_in_store>
|
61 |
+
<comment><![CDATA[Paste your Tagove widget code here. Please check <a href="https://www.tagove.com/help-docs/" target="_blank">here</a> and <b>Widget configuration</b>.]]></comment>
|
62 |
+
</tagove_widget_code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
</fields>
|
64 |
</jtt_tagove>
|
65 |
</groups>
|
app/design/frontend/base/default/layout/tagove.xml
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
<!--
|
3 |
/**
|
4 |
* JTT_Tagove extension for Magento
|
|
|
5 |
*
|
6 |
* @package JTT_Tagove
|
7 |
* @author Raju Jangid (http://www.justtotaltech.co.uk/)
|
2 |
<!--
|
3 |
/**
|
4 |
* JTT_Tagove extension for Magento
|
5 |
+
|
6 |
*
|
7 |
* @package JTT_Tagove
|
8 |
* @author Raju Jangid (http://www.justtotaltech.co.uk/)
|
app/design/frontend/base/default/template/tagove/main.phtml
CHANGED
File without changes
|
package.xml
CHANGED
@@ -1,50 +1,63 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>JTT_Tagove</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>Tagove - Live Chat Software extensions to support your customers. It
|
11 |
-
&
|
12 |
-
|
13 |
-
|
14 |
-
&
|
15 |
-
&
|
16 |
-
|
17 |
-
&
|
18 |
-
&
|
19 |
-
&
|
20 |
-
&
|
21 |
-
&
|
22 |
-
&
|
23 |
-
&
|
24 |
-
&
|
25 |
-
&
|
26 |
-
&
|
27 |
-
&
|
28 |
-
&
|
29 |
-
|
30 |
-
|
31 |
-
&
|
32 |
-
&
|
33 |
-
|
34 |
-
|
35 |
-
&
|
36 |
-
&
|
37 |
-
|
38 |
-
&
|
39 |
-
|
40 |
-
|
41 |
-
&
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
<compatible/>
|
49 |
-
<dependencies><required><php><min>5.
|
50 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>JTT_Tagove</name>
|
4 |
+
<version>1.0.8</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Live chat software that provide video chat, voice call, text chat with co browsing and screen sharing feature</summary>
|
10 |
+
<description>Tagove - <a href="http://www.tagove.com">Live Chat Software</a> extensions to support your customers. It's a unique platform for businesses to Maximise the sales with our Live Video chat, video conference, Voice call and Text Chat software integrated Co-browsing and Screen sharing features with your website.
|
11 |
+
<br>
|
12 |
+
This extension require account at http://www.tagove.com so please signup at www.tagove.com, you can choose any plan from tagove. We do have free plan its not require any credit card detail then use that username and password to this extension.
|
13 |
+

|
14 |
+
<br><br>
|
15 |
+
<h2>Live Chat Software Features</h2>
|
16 |
+
Tagove is unique platform that provide Live Video Chat, Voice call, Text chat solution with Screen sharing and co browsing solution with in your website. We also provide Live call recording, Speech to text, instant file share, call centre support where automatically allocate the call to next available advisor, one way video support only user can see the advisor and full analytic report include complete visitor list and full chat history.
|
17 |
+
<ul>
|
18 |
+
<li>Enable/disable chat from backend.</li>
|
19 |
+
<li>If admin is not available end user can leave a message.</li>
|
20 |
+
<li>No need to refresh page. Real-time, one-on-one personal user/prospect/customer/shopper assistance. End users can see a product up close.</li>
|
21 |
+
<li>Easy setup require only credential of tagove account .</li>
|
22 |
+
<li>Personal Interaction with customer</li>
|
23 |
+
<li>One Click Chat and Support All Platform</li>
|
24 |
+
<li>Video chat, voice call and Text Chat</li>
|
25 |
+
<li>Analytics of website visitor </li>
|
26 |
+
</ul>
|
27 |
+
<h2>Reqirements</h2>
|
28 |
+
<p>You need to create the account at www.tagove.com we do have few plans so you can signup for free one. Then just install the extension and you are all set! No additional setup required. After extension installation, you need to put tagove account detail in magento system config you are instantly online and can provide support for your customers.</p>
|
29 |
+
<h2>How to install Tagove - Live Chat Software extension for Magento?</h2>
|
30 |
+
<ol>
|
31 |
+
<li>To start with extension installation, please follow <b>System / Magento Connect / Magento Connect Manager</b>.</li>
|
32 |
+
<li>
|
33 |
+
You can either search for module via Magento Connect and paste extension key to install or upload the module package directly.
|
34 |
+
Tagove - Live Chat Software module will appear in the list of available extensions after the installation has been completed.
|
35 |
+
</li>
|
36 |
+
<li>
|
37 |
+
Log into your Tagove existing account or create a new one (Free) on <a href="http://app.tagove.com/">app.tagove.com</a>.
|
38 |
+
</li>
|
39 |
+
<li>To proceed with integration, click <b>'Sysytem / Configuration'</b> link in your admin panel menu and choose <b>Tagove &gt; Setting</b> from left tab.</li>
|
40 |
+

|
41 |
+
<li>Make sure <b>'Enabled'</b> checkbox is checked in Status block, then enter your tagove account credential in block <b>Login With Tagove to access chat widget</b> and click <b>'Save Config'</b> to activate.</li>
|
42 |
+
<li>
|
43 |
+
Check your operator console on your web browser, log into <a href="http://app.tagove.com/">Tagove live chat app</a> it using your credentials to appear online and start accepting chat requests.
|
44 |
+
</li>
|
45 |
+
</ol>
|
46 |
+
<p>Occasionally after installing an extensions, and trying to go to its related configuration page you will come across a <b>“404 Error Page not found.”</b><br>
|
47 |
+
There are a few things to try when you get this error. They are, in order of severity:
|
48 |
+
<br><br>
|
49 |
+
Log out, then log back in<br>
|
50 |
+
Flush <b>Magento Cache</b>
|
51 |
+
</p>
|
52 |
+
For questions and suggestions, please use the contact form on the <a href="http://www.tagove.com/contact/">contact page</a>.</description>
|
53 |
+
<notes>Improve load fast widget features
|
54 |
+
- Remove Url loaded script
|
55 |
+
- Use simple method to implement js script in admin
|
56 |
+
</notes>
|
57 |
+
<authors><author><name>Raju Jangid</name><user>rajuj6</user><email>rajuj6@gmail.com</email></author></authors>
|
58 |
+
<date>2017-06-20</date>
|
59 |
+
<time>08:41:10</time>
|
60 |
+
<contents><target name="magecommunity"><dir name="JTT"><dir name="Tagove"><dir name="Block"><file name="Script.php" hash="14fd2a85e8ecbc6e6694b3d2c07ada74"/></dir><dir name="Helper"><file name="Data.php" hash="43c5a75e40dfdf82c1a1581967ffb456"/></dir><dir name="Model"><file name="Observer.php" hash="8a4ddee2b2d178ae440812cd127c52d4"/></dir><dir name="etc"><file name="config.xml" hash="8651a464cf7e30e73190ee2f80affa6b"/><file name="system.xml" hash="136d890d0c29997642acfc955958d02a"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="tagove.xml" hash="62a990855d638417fe8ec09f33cad5fe"/></dir><dir name="template"><dir name="tagove"><file name="main.phtml" hash="0e0e8614e5da928e3be11989097a00b0"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="JTT_Tagove.xml" hash="b0cd21c6a86082e7c3a53ee2421aa505"/></dir></target></contents>
|
61 |
<compatible/>
|
62 |
+
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
63 |
</package>
|