subiz - Version 1.0.0

Version Notes

First release of Subiz live chat extension for Magento
Why Subiz:
Understand your customers
Monitors visitor in real-time
Attractive customizable widget
Support visitor on the go with IM app

Download this release

Release Info

Developer Binh Duong
Extension subiz
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

Files changed (55) hide show
  1. app/.DS_Store +0 -0
  2. app/._.DS_Store +0 -0
  3. app/code/.DS_Store +0 -0
  4. app/code/._.DS_Store +0 -0
  5. app/code/community/.DS_Store +0 -0
  6. app/code/community/._.DS_Store +0 -0
  7. app/code/community/Subiz/.DS_Store +0 -0
  8. app/code/community/Subiz/._.DS_Store +0 -0
  9. app/code/community/Subiz/LiveChat/Block/Script.php +34 -0
  10. app/code/community/Subiz/LiveChat/Helper/Data.php +38 -0
  11. app/code/community/Subiz/LiveChat/Model/Observer.php +29 -0
  12. app/code/community/Subiz/LiveChat/controllers/Adminhtml/IndexController.php +36 -0
  13. app/code/community/Subiz/LiveChat/etc/adminhtml.xml +68 -0
  14. app/code/community/Subiz/LiveChat/etc/config.xml +73 -0
  15. app/code/community/Subiz/LiveChat/etc/system.xml +88 -0
  16. app/design/.DS_Store +0 -0
  17. app/design/._.DS_Store +0 -0
  18. app/design/adminhtml/.DS_Store +0 -0
  19. app/design/adminhtml/._.DS_Store +0 -0
  20. app/design/adminhtml/default/.DS_Store +0 -0
  21. app/design/adminhtml/default/._.DS_Store +0 -0
  22. app/design/adminhtml/default/default/.DS_Store +0 -0
  23. app/design/adminhtml/default/default/._.DS_Store +0 -0
  24. app/design/adminhtml/default/default/template/.DS_Store +0 -0
  25. app/design/adminhtml/default/default/template/._.DS_Store +0 -0
  26. app/design/adminhtml/default/default/template/subiz_livechat/.DS_Store +0 -0
  27. app/design/adminhtml/default/default/template/subiz_livechat/._.DS_Store +0 -0
  28. app/design/adminhtml/default/default/template/subiz_livechat/iframe_dashboard.phtml +23 -0
  29. app/design/frontend/.DS_Store +0 -0
  30. app/design/frontend/._.DS_Store +0 -0
  31. app/design/frontend/base/.DS_Store +0 -0
  32. app/design/frontend/base/._.DS_Store +0 -0
  33. app/design/frontend/base/default/.DS_Store +0 -0
  34. app/design/frontend/base/default/._.DS_Store +0 -0
  35. app/design/frontend/base/default/layout/.DS_Store +0 -0
  36. app/design/frontend/base/default/layout/._.DS_Store +0 -0
  37. app/design/frontend/base/default/layout/subiz_livechat.xml +21 -0
  38. app/design/frontend/base/default/template/.DS_Store +0 -0
  39. app/design/frontend/base/default/template/._.DS_Store +0 -0
  40. app/design/frontend/base/default/template/subiz_livechat/script.phtml +13 -0
  41. app/etc/.DS_Store +0 -0
  42. app/etc/._.DS_Store +0 -0
  43. app/etc/modules/.DS_Store +0 -0
  44. app/etc/modules/._.DS_Store +0 -0
  45. app/etc/modules/Subiz_LiveChat.xml +22 -0
  46. package.xml +37 -0
  47. skin/.DS_Store +0 -0
  48. skin/._.DS_Store +0 -0
  49. skin/adminhtml/.DS_Store +0 -0
  50. skin/adminhtml/._.DS_Store +0 -0
  51. skin/adminhtml/default/.DS_Store +0 -0
  52. skin/adminhtml/default/._.DS_Store +0 -0
  53. skin/adminhtml/default/default/.DS_Store +0 -0
  54. skin/adminhtml/default/default/._.DS_Store +0 -0
  55. skin/adminhtml/default/default/subiz_livechat/style.css +12 -0
app/.DS_Store ADDED
Binary file
app/._.DS_Store ADDED
Binary file
app/code/.DS_Store ADDED
Binary file
app/code/._.DS_Store ADDED
Binary file
app/code/community/.DS_Store ADDED
Binary file
app/code/community/._.DS_Store ADDED
Binary file
app/code/community/Subiz/.DS_Store ADDED
Binary file
app/code/community/Subiz/._.DS_Store ADDED
Binary file
app/code/community/Subiz/LiveChat/Block/Script.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Subiz Live Chat Extension
5
+ *
6
+ * @category Subiz
7
+ * @package Subiz_LiveChat
8
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ * @version 1.0.0
11
+ */
12
+
13
+ /**
14
+ * Block script class
15
+ */
16
+ class Subiz_LiveChat_Block_Script extends Mage_Core_Block_Template
17
+ {
18
+ public function getScript()
19
+ {
20
+ $enable = Subiz_LiveChat_Helper_Data::getEnableWidget();
21
+ $licenseId = Subiz_LiveChat_Helper_Data::getLicenseId();
22
+ $script = Subiz_LiveChat_Helper_Data::getWidgetScriptFromConfig();
23
+
24
+ if (!$enable) {
25
+ return "";
26
+ }
27
+
28
+ if ($licenseId == "") {
29
+ return $script;
30
+ } else {
31
+ return Subiz_LiveChat_Helper_Data::getWidgetScriptGenerateByLicenseId($licenseId);
32
+ }
33
+ }
34
+ }
app/code/community/Subiz/LiveChat/Helper/Data.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Subiz Live Chat Extension
5
+ *
6
+ * @category Subiz
7
+ * @package Subiz_LiveChat
8
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ * @version 1.0.0
11
+ */
12
+
13
+ /**
14
+ * Helper data class
15
+ */
16
+ class Subiz_LiveChat_Helper_data extends Mage_Core_Helper_Abstract
17
+ {
18
+
19
+ public function getEnableWidget()
20
+ {
21
+ return Mage::getStoreConfig('subiz_livechat/widget/enable');
22
+ }
23
+
24
+ public function getLicenseId()
25
+ {
26
+ return Mage::getStoreConfig('subiz_livechat/account/license_id');
27
+ }
28
+
29
+ public function getWidgetScriptFromConfig()
30
+ {
31
+ return Mage::getStoreConfig('subiz_livechat/widget/script');
32
+ }
33
+
34
+ public function getWidgetScriptGenerateByLicenseId($licenseId)
35
+ {
36
+ return '<script type="text/javascript">window._sbzq||function(e){e._sbzq=[];var t=e._sbzq;t.push(["_setAccount",'.$licenseId.']);var n=e.location.protocol=="https:"?"https:":"http:";var r=document.createElement("script");r.type="text/javascript";r.async=true;r.src=n+"//static.subiz.com/public/js/loader.js";var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)}(window);</script>';
37
+ }
38
+ }
app/code/community/Subiz/LiveChat/Model/Observer.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Subiz Live Chat Extension
5
+ *
6
+ * @category Subiz
7
+ * @package Subiz_LiveChat
8
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ * @version 1.0.0
11
+ */
12
+
13
+ /**
14
+ * Model observer class
15
+ */
16
+ class Subiz_LiveChat_Model_Observer
17
+ {
18
+ public function clearCacheAfterChangeConfig()
19
+ {
20
+ try {
21
+ $allTypes = Mage::app()->useCache();
22
+ foreach($allTypes as $type => $blah) {
23
+ Mage::app()->getCacheInstance()->cleanType($type);
24
+ }
25
+ } catch (Exception $e) {
26
+ Mage::logException($e->getMessage());
27
+ }
28
+ }
29
+ }
app/code/community/Subiz/LiveChat/controllers/Adminhtml/IndexController.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Subiz Live Chat Extension
5
+ *
6
+ * @category Subiz
7
+ * @package Subiz_LiveChat
8
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ * @version 1.0.0
11
+ */
12
+
13
+ /**
14
+ * Admin controller class
15
+ */
16
+ class Subiz_LiveChat_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
17
+ {
18
+ // Display subiz dashboard on iframe into magento admin area.
19
+ public function indexAction()
20
+ {
21
+ $this->loadLayout()
22
+ ->_title($this->__('Subiz Dashboard'));
23
+
24
+ $this->getLayout()->getBlock('head')->addCss('subiz_livechat/style.css');
25
+ $this->getLayout()->getBlock('menu')->setActive('subiz_livechat_menu/dashboard');
26
+
27
+ $block = $this->getLayout()->createBlock(
28
+ 'Mage_Core_Block_Template',
29
+ 'subiz_dashboard_block',
30
+ array('template' => 'subiz_livechat/iframe_dashboard.phtml')
31
+ );
32
+ $this->getLayout()->getBlock('content')->append($block);
33
+
34
+ $this->renderLayout();
35
+ }
36
+ }
app/code/community/Subiz/LiveChat/etc/adminhtml.xml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!--
4
+ /**
5
+ * Subiz Live Chat Extension
6
+ *
7
+ * @category Subiz
8
+ * @package Subiz_LiveChat
9
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
10
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
+ * @version 1.0.0
12
+ */
13
+ -->
14
+
15
+ <config>
16
+ <menu>
17
+ <subiz_livechat_menu module="subiz_livechat" translate="title">
18
+ <title>Subiz Live Chat</title>
19
+ <sort_order>100</sort_order>
20
+ <children>
21
+ <configuration module="subiz_livechat" translate="title">
22
+ <title>Configuration</title>
23
+ <sort_order>1</sort_order>
24
+ <action>adminhtml/system_config/edit/section/subiz_livechat</action>
25
+ </configuration>
26
+ <dashboard module="subiz_livechat" translate="title">
27
+ <title>Dashboard</title>
28
+ <sort_order>2</sort_order>
29
+ <action>subiz/index/index</action>
30
+ </dashboard>
31
+ </children>
32
+ </subiz_livechat_menu>
33
+ </menu>
34
+
35
+ <acl>
36
+ <resources>
37
+ <admin>
38
+ <children>
39
+ <system>
40
+ <children>
41
+ <config>
42
+ <children>
43
+ <subiz_livechat translate="title" moduel="subiz_livechat">
44
+ <title>Subiz Live Chat</title>
45
+ </subiz_livechat>
46
+ </children>
47
+ </config>
48
+ </children>
49
+ </system>
50
+
51
+ <subiz_livechat_menu module="subiz_livechat" translate="title">
52
+ <title>Subiz Live Chat</title>
53
+ <children>
54
+ <configuration translate="title">
55
+ <title>Configuration</title>
56
+ <sort_order>1</sort_order>
57
+ </configuration>
58
+ <dashboard translate="title">
59
+ <title>Dashboard</title>
60
+ <sort_order>2</sort_order>
61
+ </dashboard>
62
+ </children>
63
+ </subiz_livechat_menu>
64
+ </children>
65
+ </admin>
66
+ </resources>
67
+ </acl>
68
+ </config>
app/code/community/Subiz/LiveChat/etc/config.xml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!--
4
+ /**
5
+ * Subiz Live Chat Extension
6
+ *
7
+ * @category Subiz
8
+ * @package Subiz_LiveChat
9
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
10
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
+ * @version 1.0.0
12
+ */
13
+ -->
14
+
15
+ <config>
16
+ <modules>
17
+ <Subiz_LiveChat>
18
+ <version>1.0.0</version>
19
+ </Subiz_LiveChat>
20
+ </modules>
21
+
22
+ <global>
23
+ <blocks>
24
+ <subiz_livechat>
25
+ <class>Subiz_LiveChat_Block</class>
26
+ </subiz_livechat>
27
+ </blocks>
28
+ <helpers>
29
+ <subiz_livechat>
30
+ <class>Subiz_LiveChat_Helper</class>
31
+ </subiz_livechat>
32
+ </helpers>
33
+ <models>
34
+ <subiz_livechat>
35
+ <class>Subiz_LiveChat_Model</class>
36
+ </subiz_livechat>
37
+ </models>
38
+ <events>
39
+ <admin_system_config_changed_section_subiz_livechat>
40
+ <observers>
41
+ <subiz_livechat>
42
+ <type>singleton</type>
43
+ <class>Subiz_LiveChat_Model_Observer</class>
44
+ <method>clearCacheAfterChangeConfig</method>
45
+ </subiz_livechat>
46
+ </observers>
47
+ </admin_system_config_changed_section_subiz_livechat>
48
+ </events>
49
+ </global>
50
+
51
+ <frontend>
52
+ <layout>
53
+ <updates>
54
+ <subiz_livechat>
55
+ <file>subiz_livechat.xml</file>
56
+ </subiz_livechat>
57
+ </updates>
58
+ </layout>
59
+ </frontend>
60
+
61
+ <admin>
62
+ <routers>
63
+ <subiz_livechat>
64
+ <use>admin</use>
65
+ <args>
66
+ <module>Subiz_LiveChat_Adminhtml</module>
67
+ <frontName>subiz</frontName>
68
+ </args>
69
+ </subiz_livechat>
70
+ </routers>
71
+ </admin>
72
+
73
+ </config>
app/code/community/Subiz/LiveChat/etc/system.xml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!--
4
+ /**
5
+ * Subiz Live Chat Extension
6
+ *
7
+ * @category Subiz
8
+ * @package Subiz_LiveChat
9
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
10
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
+ * @version 1.0.0
12
+ */
13
+ -->
14
+
15
+ <config>
16
+ <tabs>
17
+ <subiz_livechat_config_tab module="subiz_livechat" translate="title">
18
+ <label><![CDATA[<img alt="Subiz" title="Subiz" style="display:inline-block;width:55px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAWCAYAAABAMosVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAB1WlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KAtiABQAAD+NJREFUWAnVmQuUVdV5x/fe59zXPBkhIswFsQWqsHSGR1KNQXA1qZKmNqZK8zRLV42JMEOxZTXW1XJnZa00iSYIgzGxKllNYw1d9ZE0CQ1WNDZWXA4DWMYWCSozg0AgwLzu3HvP2bu/b5958Qh9pGu5st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iz_livechat module="subiz_livechat" translate="label">
25
+ <label>Subiz Widget Settings</label>
26
+ <tab>subiz_livechat_config_tab</tab>
27
+ <sort_order>1</sort_order>
28
+ <show_in_default>1</show_in_default>
29
+ <show_in_website>1</show_in_website>
30
+ <show_in_store>1</show_in_store>
31
+
32
+ <groups>
33
+ <account translate="label comment">
34
+ <label>Account configuration</label>
35
+ <frontend_type>text</frontend_type>
36
+ <sort_order>1</sort_order>
37
+ <show_in_default>1</show_in_default>
38
+ <show_in_website>1</show_in_website>
39
+ <show_in_store>1</show_in_store>
40
+
41
+ <fields>
42
+ <license_id translate="label comment">
43
+ <label>License ID</label>
44
+ <frontend_type>text</frontend_type>
45
+ <sort_order>1</sort_order>
46
+ <comment>Get License ID at [Subiz Dashboard > Settings > Installations]</comment>
47
+ <show_in_default>1</show_in_default>
48
+ <show_in_website>1</show_in_website>
49
+ <show_in_store>1</show_in_store>
50
+ </license_id>
51
+ </fields>
52
+ </account>
53
+
54
+ <widget translate="label">
55
+ <label>Widget configuration</label>
56
+ <frontend_type>text</frontend_type>
57
+ <sort_order>2</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
+
62
+ <fields>
63
+ <enable translate="label comment">
64
+ <label>Enabled</label>
65
+ <frontend_type>select</frontend_type>
66
+ <sort_order>1</sort_order>
67
+ <comment>Enable\Disable widget on front page</comment>
68
+ <show_in_default>1</show_in_default>
69
+ <show_in_website>1</show_in_website>
70
+ <show_in_store>1</show_in_store>
71
+ <source_model>adminhtml/system_config_source_yesno</source_model>
72
+ </enable>
73
+
74
+ <script translate="label comment">
75
+ <label><![CDATA[Widget code<br>*<i>if you set License ID, you don't need setting here.</i>]]></label>
76
+ <frontend_type>textarea</frontend_type>
77
+ <sort_order>2</sort_order>
78
+ <comment>Copy widget code from [Subiz Dashboard > Settings > Installations]</comment>
79
+ <show_in_default>1</show_in_default>
80
+ <show_in_website>1</show_in_website>
81
+ <show_in_store>1</show_in_store>
82
+ </script>
83
+ </fields>
84
+ </widget>
85
+ </groups>
86
+ </subiz_livechat>
87
+ </sections>
88
+ </config>
app/design/.DS_Store ADDED
Binary file
app/design/._.DS_Store ADDED
Binary file
app/design/adminhtml/.DS_Store ADDED
Binary file
app/design/adminhtml/._.DS_Store ADDED
Binary file
app/design/adminhtml/default/.DS_Store ADDED
Binary file
app/design/adminhtml/default/._.DS_Store ADDED
Binary file
app/design/adminhtml/default/default/.DS_Store ADDED
Binary file
app/design/adminhtml/default/default/._.DS_Store ADDED
Binary file
app/design/adminhtml/default/default/template/.DS_Store ADDED
Binary file
app/design/adminhtml/default/default/template/._.DS_Store ADDED
Binary file
app/design/adminhtml/default/default/template/subiz_livechat/.DS_Store ADDED
Binary file
app/design/adminhtml/default/default/template/subiz_livechat/._.DS_Store ADDED
Binary file
app/design/adminhtml/default/default/template/subiz_livechat/iframe_dashboard.phtml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Subiz Live Chat Extension
4
+ *
5
+ * @category Subiz
6
+ * @package Subiz_LiveChat
7
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
9
+ * @version 1.0.0
10
+ */
11
+ ?>
12
+
13
+ <div class="content-header">
14
+ <table cellspacing="0">
15
+ <tbody>
16
+ <tr>
17
+ <td><h3>Subiz Dashboard Integration</h3></td>
18
+ </tr>
19
+ </tbody>
20
+ </table>
21
+ </div>
22
+
23
+ <iframe id="subiz_dashboard" src="https://dashboard.subiz.com"></iframe>
app/design/frontend/.DS_Store ADDED
Binary file
app/design/frontend/._.DS_Store ADDED
Binary file
app/design/frontend/base/.DS_Store ADDED
Binary file
app/design/frontend/base/._.DS_Store ADDED
Binary file
app/design/frontend/base/default/.DS_Store ADDED
Binary file
app/design/frontend/base/default/._.DS_Store ADDED
Binary file
app/design/frontend/base/default/layout/.DS_Store ADDED
Binary file
app/design/frontend/base/default/layout/._.DS_Store ADDED
Binary file
app/design/frontend/base/default/layout/subiz_livechat.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!--
4
+ /**
5
+ * Subiz Live Chat Extension
6
+ *
7
+ * @category Subiz
8
+ * @package Subiz_LiveChat
9
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
10
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
+ * @version 1.0.0
12
+ */
13
+ -->
14
+
15
+ <layout>
16
+ <default>
17
+ <reference name="footer">
18
+ <block type="subiz_livechat/script" name="subiz_livechat_script" template="subiz_livechat/script.phtml" after="-" />
19
+ </reference>
20
+ </default>
21
+ </layout>
app/design/frontend/base/default/template/.DS_Store ADDED
Binary file
app/design/frontend/base/default/template/._.DS_Store ADDED
Binary file
app/design/frontend/base/default/template/subiz_livechat/script.phtml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Subiz Live Chat Extension
4
+ *
5
+ * @category Subiz
6
+ * @package Subiz_LiveChat
7
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
9
+ * @version 1.0.0
10
+ */
11
+ ?>
12
+
13
+ <?php echo $this->getScript(); ?>
app/etc/.DS_Store ADDED
Binary file
app/etc/._.DS_Store ADDED
Binary file
app/etc/modules/.DS_Store ADDED
Binary file
app/etc/modules/._.DS_Store ADDED
Binary file
app/etc/modules/Subiz_LiveChat.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!--
4
+ /**
5
+ * Subiz Live Chat Extension
6
+ *
7
+ * @category Subiz
8
+ * @package Subiz_LiveChat
9
+ * @copyright Copyright (c) 2015 Subiz, Inc. (http://www.subiz.com)
10
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
11
+ * @version 1.0.0
12
+ */
13
+ -->
14
+
15
+ <config>
16
+ <modules>
17
+ <Subiz_LiveChat>
18
+ <active>true</active>
19
+ <codePool>community</codePool>
20
+ </Subiz_LiveChat>
21
+ </modules>
22
+ </config>
package.xml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>subiz</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.gnu.org/licenses/gpl.html">GPL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Enhance customer interaction for your Magento shop with Subiz live chat</summary>
10
+ <description>Subiz offer the fastest way to reach out to potential website visitor, respond directly, impress them by personal touch and fulfil every single enquiry in real-time. These entire customer interactions occur on a web-based live chat widget docked at the bottom of your Magento store.&#xD;
11
+ Key feature&#xD;
12
+ - Dashboard: Manage visitor information and proactive engages with them using a personalized greeting&#xD;
13
+ - Widget: Fully customizable live chat widget to fit with your store: size, color, theme, avatar, font,...&#xD;
14
+ - IM chat app: Support for visitors anytime anywhere from any device using IM chat app such as Pidgin, Adium, Trillian&#xD;
15
+ - Trigger: Use predetermined rule of trigger to invite visitors a chat automatically&#xD;
16
+ - Safety of data: Store data in a secure servers for easy achievement&#xD;
17
+ - Report: Advanced analytic and report on operator activity with integrated Google Analytics&#xD;
18
+ - Canned response: Use canned responses and shortcut answer for fast and effective chat&#xD;
19
+ &#xD;
20
+ For more details regarding feature and price, please visit here http://subiz.com/pricing.html&#xD;
21
+ &#xD;
22
+ Support&#xD;
23
+ If you meet any difficulties installing or utilising Subiz, please drop us an email at support@subiz.com or chat with us at http://subiz.com/</description>
24
+ <notes>First release of Subiz live chat extension for Magento&#xD;
25
+ Why Subiz:&#xD;
26
+ Understand your customers&#xD;
27
+ Monitors visitor in real-time&#xD;
28
+ Attractive customizable widget&#xD;
29
+ Support visitor on the go with IM app&#xD;
30
+ </notes>
31
+ <authors><author><name>Binh Duong</name><user>subiz</user><email>binhduong@subiz.com</email></author></authors>
32
+ <date>2015-07-22</date>
33
+ <time>05:05:59</time>
34
+ <contents><target name="mageetc"><dir name="modules"><file name="Subiz_LiveChat.xml" hash="eca44308b98229bdaaaea90d82882498"/></dir></target><target name="magecommunity"><dir name="Subiz"><dir name="LiveChat"><dir name="Block"><file name="Script.php" hash="9f264365976b393d1eecb0e831871afe"/></dir><dir name="Helper"><file name="Data.php" hash="4d48cfd12f3986363d839082fdff92e4"/></dir><dir name="Model"><file name="Observer.php" hash="70a5d932c9ba918c72096d20ce1710f0"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="e266fcc88cfa4bf1337f314d56368ef9"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="d8f0dae5e9b4b0eb4eaec994168711b1"/><file name="config.xml" hash="faf55eb398a359490c630ced59d06e37"/><file name="system.xml" hash="82db45103b727d6c4c577c449a2e4faa"/></dir></dir><file name=".DS_Store" hash="f5fbceb88efd37c6c4cf1430e6a5e11c"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="subiz_livechat"><file name="iframe_dashboard.phtml" hash="3021700caee382e19b4edb86dcc93e29"/><file name=".DS_Store" hash="bc505fc4ab7ed89374da4c4c7255631b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="subiz_livechat.xml" hash="da8c8092587aeca02fc81a6df3e5d3d7"/></dir><dir name="template"><dir name="subiz_livechat"><file name="script.phtml" hash="56ac8f7748d9e6cdab99a49a3715d4fd"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="subiz_livechat"><file name="style.css" hash="35094be4eac21ac609b05f53a1930515"/></dir></dir></dir></dir></target></contents>
35
+ <compatible/>
36
+ <dependencies><required><php><min>5.3.0</min><max>5.6.11</max></php></required></dependencies>
37
+ </package>
skin/.DS_Store ADDED
Binary file
skin/._.DS_Store ADDED
Binary file
skin/adminhtml/.DS_Store ADDED
Binary file
skin/adminhtml/._.DS_Store ADDED
Binary file
skin/adminhtml/default/.DS_Store ADDED
Binary file
skin/adminhtml/default/._.DS_Store ADDED
Binary file
skin/adminhtml/default/default/.DS_Store ADDED
Binary file
skin/adminhtml/default/default/._.DS_Store ADDED
Binary file
skin/adminhtml/default/default/subiz_livechat/style.css ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .subiz-livechat-index-index #anchor-content,
2
+ .subiz-livechat-index-index #anchor-content > div {
3
+ position: relative;
4
+ min-height: 600px;
5
+ }
6
+
7
+ .subiz-livechat-index-index iframe#subiz_dashboard {
8
+ position: relative;
9
+ border: none;
10
+ width: 100%;
11
+ height: 600px;
12
+ }