ClickDesk_LiveChat_Support - Version 1.2.0

Version Notes

Updated Clickdesk live chat to appear on all pages of the store

Download this release

Release Info

Developer Jagan
Extension ClickDesk_LiveChat_Support
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.1.0 to 1.2.0

app/code/local/SoftwareTec/Clickdesk/Model/Clickdesk.php CHANGED
@@ -1,49 +1,49 @@
1
- <?php
2
-
3
- class SoftwareTec_Clickdesk_Model_Clickdesk extends Mage_Core_Model_Abstract
4
- {
5
-
6
- protected $_widgetid = '';
7
-
8
- public function _construct()
9
- {
10
- parent::_construct();
11
- $this->_init('clickdesk/clickdesk');
12
- }
13
-
14
- public function getWidgetId()
15
- {
16
-
17
- $db = Mage::getSingleton('core/resource')->getConnection('core_read');
18
- $result = $db->query("SELECT * FROM clickdesk LIMIT 1");
19
- if($result) {
20
-
21
- if($row = $result->fetch())
22
- {
23
- $this->_widgetid =$row["widgetid"];
24
- return $row["widgetid"];
25
- }
26
- }
27
- return "";
28
-
29
- }
30
-
31
- public function getWidgetCurl()
32
- {
33
-
34
- define('LIVILY_SERVER_URL', "http://wp-1.contactuswidget.appspot.com/");
35
- define('LIVILY_DASHBOARD_URL', LIVILY_SERVER_URL.'widgets.jsp?wpurl=');
36
-
37
-
38
- $Path="http://".$_SERVER['HTTP_HOST']."/".$_SERVER['REQUEST_URI'];
39
-
40
-
41
-
42
- $Path = urlencode($Path);
43
-
44
- $cdURL= LIVILY_DASHBOARD_URL;
45
- return $cdURL;
46
-
47
-
48
- }
49
  }
1
+ <?php
2
+
3
+ class SoftwareTec_Clickdesk_Model_Clickdesk extends Mage_Core_Model_Abstract
4
+ {
5
+
6
+ protected $_widgetid = '';
7
+
8
+ public function _construct()
9
+ {
10
+ parent::_construct();
11
+ $this->_init('clickdesk/clickdesk');
12
+ }
13
+
14
+ public function getWidgetId()
15
+ {
16
+
17
+ $db = Mage::getSingleton('core/resource')->getConnection('core_read');
18
+ $result = $db->query("SELECT * FROM clickdesk LIMIT 1");
19
+ if($result) {
20
+
21
+ if($row = $result->fetch())
22
+ {
23
+ $this->_widgetid =$row["widgetid"];
24
+ return $row["widgetid"];
25
+ }
26
+ }
27
+ return "";
28
+
29
+ }
30
+
31
+ public function getWidgetCurl()
32
+ {
33
+
34
+ define('LIVILY_SERVER_URL', "http://wp-1.contactuswidget.appspot.com/");
35
+ define('LIVILY_DASHBOARD_URL', LIVILY_SERVER_URL.'widgets.jsp?wpurl=');
36
+
37
+
38
+ $Path="http://".$_SERVER['HTTP_HOST']."/".$_SERVER['REQUEST_URI'];
39
+
40
+
41
+
42
+ $Path = urlencode($Path);
43
+
44
+ $cdURL= LIVILY_DASHBOARD_URL;
45
+ return $cdURL;
46
+
47
+
48
+ }
49
  }
app/design/frontend/base/default/layout/clickdesk.xml CHANGED
@@ -1,15 +1,10 @@
1
- <?xml version="1.0"?>
2
-
3
- <layout version="0.1.0">
4
-
5
- <cms_index_index>
6
- <reference name="right">
7
- <block type="clickdesk/status" name="clickdesk.status" template="clickdesk/status.phtml"/>
8
- </reference>
9
- </cms_index_index>
10
-
11
-
12
-
13
-
14
-
15
  </layout>
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="footer">
5
+ <block type="clickdesk/status" name="clickdesk.status" template="clickdesk/status.phtml"/>
6
+ </reference>
7
+
8
+ </default>
9
+
 
 
 
 
 
10
  </layout>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ClickDesk_LiveChat_Support</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license>LGPL</license>
7
  <channel>community</channel>
@@ -21,11 +21,11 @@ Reduce shopping cart abandonment!</summary>
21
  Optional Push2Call has a browser phone and provides local access number in more than 40 countries for your visitors to reach your business.&#xD;
22
  &#xD;
23
  Never miss a lead. Convert your traffic to sales by provide instant support using this free live chat extension</description>
24
- <notes>Clickdesk</notes>
25
  <authors><author><name>Jagan</name><user>Jagan</user><email>jagan@2desk.com</email></author><author><name>Henry</name><user>henry0</user><email>henry@2desk.com</email></author></authors>
26
- <date>2012-01-03</date>
27
- <time>13:28:28</time>
28
- <contents><target name="magelocal"><dir><dir name="SoftwareTec"><dir name="Clickdesk"><dir name="Block"><file name="Status.php" hash="869902090c3d30269cb625aaa214f60d"/></dir><dir name="Helper"><file name="Data.php" hash="975671298b04a5bafaa9214873fe6003"/></dir><dir name="Model"><file name="Clickdesk.php" hash="03f88f3c846531c7ccb30d5c00c5e371"/><dir name="Mysql4"><dir name="Clickdesk"><file name="Collection.php" hash="3ee88b6ddcb22dd5dc2297e0abe0cae6"/></dir><file name="Clickdesk.php" hash="52622d7e492861ab7fdbce1d6c2a78f8"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DashController.php" hash="6b2d44d2553669883273492727e9f49c"/></dir></dir><dir name="etc"><file name="config.xml" hash="3b11e7336f469f7a34c110c4865cc890"/></dir><dir name="sql"><dir name="clickdesk_setup"><file name="mysql4-install-0.1.0.php" hash="1ae4322bb7e5fd13f04bb6669e975153"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="SoftwareTec_Clickdesk.xml" hash="441bbbace9e216eed5c126bc23bfbb69"/></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="clickdesk.xml" hash="0a10cae2dac23d1940d091f535476145"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="clickdesk.xml" hash="698384491f1a1e24890516abc2b3dfe4"/></dir><dir name="template"><dir name="clickdesk"><file name="status.phtml" hash="d0fa95dda0acc1744eed5b20f3bd27dd"/></dir></dir></dir></dir></dir></dir></target></contents>
29
  <compatible/>
30
  <dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ClickDesk_LiveChat_Support</name>
4
+ <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license>LGPL</license>
7
  <channel>community</channel>
21
  Optional Push2Call has a browser phone and provides local access number in more than 40 countries for your visitors to reach your business.&#xD;
22
  &#xD;
23
  Never miss a lead. Convert your traffic to sales by provide instant support using this free live chat extension</description>
24
+ <notes>Updated Clickdesk live chat to appear on all pages of the store</notes>
25
  <authors><author><name>Jagan</name><user>Jagan</user><email>jagan@2desk.com</email></author><author><name>Henry</name><user>henry0</user><email>henry@2desk.com</email></author></authors>
26
+ <date>2012-01-09</date>
27
+ <time>12:35:58</time>
28
+ <contents><target name="magelocal"><dir><dir name="SoftwareTec"><dir name="Clickdesk"><dir name="Block"><file name="Status.php" hash="869902090c3d30269cb625aaa214f60d"/></dir><dir name="Helper"><file name="Data.php" hash="975671298b04a5bafaa9214873fe6003"/></dir><dir name="Model"><file name="Clickdesk.php" hash="ccf6bbcd9ea94896ca5a7d6137075c52"/><dir name="Mysql4"><dir name="Clickdesk"><file name="Collection.php" hash="3ee88b6ddcb22dd5dc2297e0abe0cae6"/></dir><file name="Clickdesk.php" hash="52622d7e492861ab7fdbce1d6c2a78f8"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DashController.php" hash="6b2d44d2553669883273492727e9f49c"/></dir></dir><dir name="etc"><file name="config.xml" hash="3b11e7336f469f7a34c110c4865cc890"/></dir><dir name="sql"><dir name="clickdesk_setup"><file name="mysql4-install-0.1.0.php" hash="1ae4322bb7e5fd13f04bb6669e975153"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="SoftwareTec_Clickdesk.xml" hash="441bbbace9e216eed5c126bc23bfbb69"/></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="clickdesk.xml" hash="0a10cae2dac23d1940d091f535476145"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="clickdesk.xml" hash="837425ee30eacbbca4fb2506805cb5d0"/></dir><dir name="template"><dir name="clickdesk"><file name="status.phtml" hash="d0fa95dda0acc1744eed5b20f3bd27dd"/></dir></dir></dir></dir></dir></dir></target></contents>
29
  <compatible/>
30
  <dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
31
  </package>