JTT_Tagove - Version 1.0.8

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 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
- $tagove_email = Mage::getStoreConfig('tagove_options/jtt_tagove/tagove_email');
61
- $tagove_password = Mage::getStoreConfig('tagove_options/jtt_tagove/tagove_password');
62
 
63
- $result = $this->getPostUrlContents('user/login',array(
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 "Login Failed";
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>Login With Tagove 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_email>
55
- <label>Email</label>
56
- <frontend_type>text</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>Tagove account email id.</comment>
62
- </tagove_email>
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.7</version>
5
  <stability>stable</stability>
6
- <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Tagove will help you cut the waiting time for phone calls to reach out your customers.</summary>
10
- <description>Tagove - Live Chat Software extensions to support your customers. It&amp;apos;s a unique platform for businesses to Maximise the sales with our Live Video, Voice and Text Chat software integrated Co-browsing and Screen sharing features with your website.&amp;amp;#xD;&#xD;
11
- &amp;amp;lt;br /&amp;amp;gt;&amp;amp;lt;br /&amp;amp;gt;&amp;amp;#xD;&#xD;
12
- &amp;amp;lt;h2&amp;amp;gt;Features&amp;amp;lt;/h2&amp;amp;gt;&amp;amp;#xD;&#xD;
13
- &amp;amp;lt;ul&amp;amp;gt;&amp;amp;#xD;&#xD;
14
- &amp;amp;lt;li&amp;amp;gt;Enable/disable chat from backend.&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
15
- &amp;amp;lt;li&amp;amp;gt;If admin is not available end user can leave a message.&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
16
- &amp;amp;lt;li&amp;amp;gt;No need to refresh page. Real-time, one-on-one personal user/prospect/customer/shopper assistance. End users can see a product up close.&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
17
- &amp;amp;lt;li&amp;amp;gt;Easy setup require only credential of tagove account .&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
18
- &amp;amp;lt;li&amp;amp;gt;Personal Interaction with customer&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
19
- &amp;amp;lt;li&amp;amp;gt;One Click Chat and Support All Platform&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
20
- &amp;amp;lt;li&amp;amp;gt;Video Audio and Text Chat&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
21
- &amp;amp;lt;li&amp;amp;gt;Analytics of website visitor &amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
22
- &amp;amp;lt;/ul&amp;amp;gt;&amp;amp;#xD;&#xD;
23
- &amp;amp;lt;h2&amp;amp;gt;Reqirements&amp;amp;lt;/h2&amp;amp;gt;&amp;amp;#xD;&#xD;
24
- &amp;amp;lt;p&amp;amp;gt;Just install the extension and you are all set! No additional setup required. After extension installation, one-step tagove account creation and add credential of tagove in magento system config you are instantly online and can provide support for your customers.&amp;amp;lt;/p&amp;amp;gt;&amp;amp;#xD;&#xD;
25
- &amp;amp;lt;h2&amp;amp;gt;How to install Tagove - Live Chat Software extension for Magento?&amp;amp;lt;/h2&amp;amp;gt;&amp;amp;#xD;&#xD;
26
- &amp;amp;lt;ol&amp;amp;gt;&amp;amp;#xD;&#xD;
27
- &amp;amp;lt;li&amp;amp;gt;To start with extension installation, please follow &amp;amp;lt;b&amp;amp;gt;System / Magento Connect / Magento Connect Manager&amp;amp;lt;/b&amp;amp;gt;.&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
28
- &amp;amp;lt;li&amp;amp;gt;&amp;amp;#xD;&#xD;
29
- You can either search for module via Magento Connect and paste extension key to install or upload the module package directly.&amp;amp;#xD;&#xD;
30
- Tagove - Live Chat Software module will appear in the list of available extensions after the installation has been completed.&amp;amp;#xD;&#xD;
31
- &amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
32
- &amp;amp;lt;li&amp;amp;gt;&amp;amp;#xD;&#xD;
33
- Log into your Tagove existing account or create a new one (Free) on &amp;amp;lt;a href=&amp;quot;http://app.tagove.com/&amp;quot;&amp;amp;gt;app.tagove.com&amp;amp;lt;/a&amp;amp;gt;.&amp;amp;#xD;&#xD;
34
- &amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
35
- &amp;amp;lt;li&amp;amp;gt;To proceed with integration, click &amp;amp;lt;b&amp;amp;gt;&amp;apos;Sysytem / Configuration&amp;apos;&amp;amp;lt;/b&amp;amp;gt; link in your admin panel menu and choose &amp;amp;lt;b&amp;amp;gt;Tagove &amp;amp;amp;gt; Setting&amp;amp;lt;/b&amp;amp;gt; from left tab.&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
36
- &amp;amp;#xD;&#xD;
37
- &amp;amp;lt;li&amp;amp;gt;Make sure &amp;amp;lt;b&amp;amp;gt;&amp;apos;Enabled&amp;apos;&amp;amp;lt;/b&amp;amp;gt; checkbox is checked in Status block, then enter your tagove account credential in block &amp;amp;lt;b&amp;amp;gt;Login With Tagove to access chat widget&amp;amp;lt;/b&amp;amp;gt; and click &amp;amp;lt;b&amp;amp;gt;&amp;apos;Save Config&amp;apos;&amp;amp;lt;/b&amp;amp;gt; to activate.&amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
38
- &amp;amp;lt;li&amp;amp;gt;&amp;amp;#xD;&#xD;
39
- Check your operator console on your web browser, log into &amp;amp;lt;a href=&amp;quot;http://app.tagove.com/&amp;quot;&amp;amp;gt;Tagove App&amp;amp;lt;/a&amp;amp;gt; it using your credentials to appear online and start accepting chat requests.&amp;amp;#xD;&#xD;
40
- &amp;amp;lt;/li&amp;amp;gt;&amp;amp;#xD;&#xD;
41
- &amp;amp;lt;/ol&amp;amp;gt;&amp;amp;#xD;&#xD;
42
- For questions and suggestions, please use the contact form on the &amp;amp;lt;a href=&amp;quot;http://www.tagove.com/contact/&amp;quot;&amp;amp;gt;contact page&amp;amp;lt;/a&amp;amp;gt;.</description>
43
- <notes>Tagove will help you cut the waiting time for phone calls to reach out your customers.</notes>
44
- <authors><author><name>Tagove Chat</name><user>tagove</user><email>info@tagove.com</email></author></authors>
45
- <date>2017-01-06</date>
46
- <time>13:33:35</time>
47
- <contents><target name="magelocal"><dir name="."><file name="Tagove" hash=""/></dir></target><target name="mageetc"><dir name="modules"><file name="JTT_Tagove.xml" hash="b0cd21c6a86082e7c3a53ee2421aa505"/></dir></target></contents>
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  <compatible/>
49
- <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
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 - &lt;a href="http://www.tagove.com"&gt;Live Chat Software&lt;/a&gt; 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.&#xD;
11
+ &lt;br&gt;&#xD;
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.&#xD;
13
+ &#xD;
14
+ &lt;br&gt;&lt;br&gt;&#xD;
15
+ &lt;h2&gt;Live Chat Software Features&lt;/h2&gt;&#xD;
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.&#xD;
17
+ &lt;ul&gt;&#xD;
18
+ &lt;li&gt;Enable/disable chat from backend.&lt;/li&gt;&#xD;
19
+ &lt;li&gt;If admin is not available end user can leave a message.&lt;/li&gt;&#xD;
20
+ &lt;li&gt;No need to refresh page. Real-time, one-on-one personal user/prospect/customer/shopper assistance. End users can see a product up close.&lt;/li&gt;&#xD;
21
+ &lt;li&gt;Easy setup require only credential of tagove account .&lt;/li&gt;&#xD;
22
+ &lt;li&gt;Personal Interaction with customer&lt;/li&gt;&#xD;
23
+ &lt;li&gt;One Click Chat and Support All Platform&lt;/li&gt;&#xD;
24
+ &lt;li&gt;Video chat, voice call and Text Chat&lt;/li&gt;&#xD;
25
+ &lt;li&gt;Analytics of website visitor &lt;/li&gt;&#xD;
26
+ &lt;/ul&gt;&#xD;
27
+ &lt;h2&gt;Reqirements&lt;/h2&gt;&#xD;
28
+ &lt;p&gt;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.&lt;/p&gt;&#xD;
29
+ &lt;h2&gt;How to install Tagove - Live Chat Software extension for Magento?&lt;/h2&gt;&#xD;
30
+ &lt;ol&gt;&#xD;
31
+ &lt;li&gt;To start with extension installation, please follow &lt;b&gt;System / Magento Connect / Magento Connect Manager&lt;/b&gt;.&lt;/li&gt;&#xD;
32
+ &lt;li&gt;&#xD;
33
+ You can either search for module via Magento Connect and paste extension key to install or upload the module package directly.&#xD;
34
+ Tagove - Live Chat Software module will appear in the list of available extensions after the installation has been completed.&#xD;
35
+ &lt;/li&gt;&#xD;
36
+ &lt;li&gt;&#xD;
37
+ Log into your Tagove existing account or create a new one (Free) on &lt;a href="http://app.tagove.com/"&gt;app.tagove.com&lt;/a&gt;.&#xD;
38
+ &lt;/li&gt;&#xD;
39
+ &lt;li&gt;To proceed with integration, click &lt;b&gt;'Sysytem / Configuration'&lt;/b&gt; link in your admin panel menu and choose &lt;b&gt;Tagove &amp;gt; Setting&lt;/b&gt; from left tab.&lt;/li&gt;&#xD;
40
+ &#xD;
41
+ &lt;li&gt;Make sure &lt;b&gt;'Enabled'&lt;/b&gt; checkbox is checked in Status block, then enter your tagove account credential in block &lt;b&gt;Login With Tagove to access chat widget&lt;/b&gt; and click &lt;b&gt;'Save Config'&lt;/b&gt; to activate.&lt;/li&gt;&#xD;
42
+ &lt;li&gt;&#xD;
43
+ Check your operator console on your web browser, log into &lt;a href="http://app.tagove.com/"&gt;Tagove live chat app&lt;/a&gt; it using your credentials to appear online and start accepting chat requests.&#xD;
44
+ &lt;/li&gt;&#xD;
45
+ &lt;/ol&gt;&#xD;
46
+ &lt;p&gt;Occasionally after installing an extensions, and trying to go to its related configuration page you will come across a &lt;b&gt;&#x201C;404 Error Page not found.&#x201D;&lt;/b&gt;&lt;br&gt;&#xD;
47
+ There are a few things to try when you get this error. They are, in order of severity:&#xD;
48
+ &lt;br&gt;&lt;br&gt;&#xD;
49
+ Log out, then log back in&lt;br&gt;&#xD;
50
+ Flush &lt;b&gt;Magento Cache&lt;/b&gt;&#xD;
51
+ &lt;/p&gt;&#xD;
52
+ For questions and suggestions, please use the contact form on the &lt;a href="http://www.tagove.com/contact/"&gt;contact page&lt;/a&gt;.</description>
53
+ <notes>Improve load fast widget features&#xD;
54
+ - Remove Url loaded script&#xD;
55
+ - Use simple method to implement js script in admin&#xD;
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>