subiz - Version 1.0.1

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.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

Files changed (57) 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 +2 -3
  10. app/code/community/Subiz/LiveChat/Helper/Data.php +4 -5
  11. app/code/community/Subiz/LiveChat/Model/Observer.php +0 -1
  12. app/code/community/Subiz/LiveChat/Model/Resource/Setup.php +15 -0
  13. app/code/community/Subiz/LiveChat/controllers/Adminhtml/IndexController.php +1 -2
  14. app/code/community/Subiz/LiveChat/controllers/Adminhtml/System/ConfigController.php +48 -0
  15. app/code/community/Subiz/LiveChat/etc/adminhtml.xml +6 -2
  16. app/code/community/Subiz/LiveChat/etc/config.xml +17 -2
  17. app/code/community/Subiz/LiveChat/etc/system.xml +40 -52
  18. app/code/community/Subiz/LiveChat/sql/subiz_setup/mysql4-install-1.0.0.php +23 -0
  19. app/code/community/Subiz/LiveChat/sql/subiz_setup/upgrade-1.0.0-1.0.1.php +48 -0
  20. app/design/.DS_Store +0 -0
  21. app/design/._.DS_Store +0 -0
  22. app/design/adminhtml/.DS_Store +0 -0
  23. app/design/adminhtml/._.DS_Store +0 -0
  24. app/design/adminhtml/default/.DS_Store +0 -0
  25. app/design/adminhtml/default/._.DS_Store +0 -0
  26. app/design/adminhtml/default/default/.DS_Store +0 -0
  27. app/design/adminhtml/default/default/._.DS_Store +0 -0
  28. app/design/adminhtml/default/default/template/.DS_Store +0 -0
  29. app/design/adminhtml/default/default/template/._.DS_Store +0 -0
  30. app/design/adminhtml/default/default/template/subiz_livechat/.DS_Store +0 -0
  31. app/design/adminhtml/default/default/template/subiz_livechat/._.DS_Store +0 -0
  32. app/design/frontend/.DS_Store +0 -0
  33. app/design/frontend/._.DS_Store +0 -0
  34. app/design/frontend/base/.DS_Store +0 -0
  35. app/design/frontend/base/._.DS_Store +0 -0
  36. app/design/frontend/base/default/.DS_Store +0 -0
  37. app/design/frontend/base/default/._.DS_Store +0 -0
  38. app/design/frontend/base/default/layout/.DS_Store +0 -0
  39. app/design/frontend/base/default/layout/._.DS_Store +0 -0
  40. app/design/frontend/base/default/layout/subiz_livechat.xml +1 -2
  41. app/design/frontend/base/default/template/.DS_Store +0 -0
  42. app/design/frontend/base/default/template/._.DS_Store +0 -0
  43. app/design/frontend/base/default/template/subiz_livechat/script.phtml +0 -1
  44. app/etc/.DS_Store +0 -0
  45. app/etc/._.DS_Store +0 -0
  46. app/etc/modules/.DS_Store +0 -0
  47. app/etc/modules/._.DS_Store +0 -0
  48. app/etc/modules/Subiz_LiveChat.xml +0 -1
  49. package.xml +26 -18
  50. skin/.DS_Store +0 -0
  51. skin/._.DS_Store +0 -0
  52. skin/adminhtml/.DS_Store +0 -0
  53. skin/adminhtml/._.DS_Store +0 -0
  54. skin/adminhtml/default/.DS_Store +0 -0
  55. skin/adminhtml/default/._.DS_Store +0 -0
  56. skin/adminhtml/default/default/.DS_Store +0 -0
  57. skin/adminhtml/default/default/._.DS_Store +0 -0
app/.DS_Store DELETED
Binary file
app/._.DS_Store DELETED
Binary file
app/code/.DS_Store DELETED
Binary file
app/code/._.DS_Store DELETED
Binary file
app/code/community/.DS_Store DELETED
Binary file
app/code/community/._.DS_Store DELETED
Binary file
app/code/community/Subiz/.DS_Store DELETED
Binary file
app/code/community/Subiz/._.DS_Store DELETED
Binary file
app/code/community/Subiz/LiveChat/Block/Script.php CHANGED
@@ -7,7 +7,6 @@
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
  /**
@@ -17,11 +16,11 @@ 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
 
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
  */
11
 
12
  /**
16
  {
17
  public function getScript()
18
  {
19
+ $enabled = Subiz_LiveChat_Helper_Data::getWidgetStatus();
20
  $licenseId = Subiz_LiveChat_Helper_Data::getLicenseId();
21
  $script = Subiz_LiveChat_Helper_Data::getWidgetScriptFromConfig();
22
 
23
+ if (!$enabled) {
24
  return "";
25
  }
26
 
app/code/community/Subiz/LiveChat/Helper/Data.php CHANGED
@@ -7,7 +7,6 @@
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
  /**
@@ -16,19 +15,19 @@
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)
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
  */
11
 
12
  /**
15
  class Subiz_LiveChat_Helper_data extends Mage_Core_Helper_Abstract
16
  {
17
 
18
+ public function getWidgetStatus()
19
  {
20
+ return Mage::getStoreConfig('subiz_livechat/config/enabled');
21
  }
22
 
23
  public function getLicenseId()
24
  {
25
+ return Mage::getStoreConfig('subiz_livechat/config/license_id');
26
  }
27
 
28
  public function getWidgetScriptFromConfig()
29
  {
30
+ return Mage::getStoreConfig('subiz_livechat/config/script');
31
  }
32
 
33
  public function getWidgetScriptGenerateByLicenseId($licenseId)
app/code/community/Subiz/LiveChat/Model/Observer.php CHANGED
@@ -7,7 +7,6 @@
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
  /**
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
  */
11
 
12
  /**
app/code/community/Subiz/LiveChat/Model/Resource/Setup.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ */
11
+
12
+ /**
13
+ * Model resource setup class
14
+ */
15
+ class Subiz_LiveChat_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup {}
app/code/community/Subiz/LiveChat/controllers/Adminhtml/IndexController.php CHANGED
@@ -6,8 +6,7 @@
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
  /**
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
  */
11
 
12
  /**
app/code/community/Subiz/LiveChat/controllers/Adminhtml/System/ConfigController.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ */
11
+
12
+ /**
13
+ * Admin controller class
14
+ */
15
+ require_once(Mage::getModuleDir('controllers','Mage_Adminhtml').DS.'System/ConfigController.php');
16
+
17
+ class Subiz_LiveChat_Adminhtml_System_ConfigController extends Mage_Adminhtml_System_ConfigController
18
+ {
19
+ /* Overwrite */
20
+ protected function _isSectionAllowed($section)
21
+ {
22
+ try {
23
+ $session = Mage::getSingleton('admin/session');
24
+ // reload acl to fix: 404 error page
25
+ // without have to relogin after install new extension
26
+ $session->setAcl(Mage::getResourceModel('admin/acl')->loadAcl());
27
+ // -----------------------------------------------------------------
28
+ $resourceLookup = "admin/system/config/{$section}";
29
+ if ($session->getData('acl') instanceof Mage_Admin_Model_Acl) {
30
+ $resourceId = $session->getData('acl')->get($resourceLookup)->getResourceId();
31
+ if (!$session->isAllowed($resourceId)) {
32
+ throw new Exception('');
33
+ }
34
+ return true;
35
+ }
36
+ }
37
+ catch (Zend_Acl_Exception $e) {
38
+ $this->norouteAction();
39
+ $this->setFlag('', self::FLAG_NO_DISPATCH, true);
40
+ return false;
41
+ }
42
+ catch (Exception $e) {
43
+ $this->deniedAction();
44
+ $this->setFlag('', self::FLAG_NO_DISPATCH, true);
45
+ return false;
46
+ }
47
+ }
48
+ }
app/code/community/Subiz/LiveChat/etc/adminhtml.xml CHANGED
@@ -8,7 +8,6 @@
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
 
@@ -34,13 +33,17 @@
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>
@@ -61,6 +64,7 @@
61
  </dashboard>
62
  </children>
63
  </subiz_livechat_menu>
 
64
  </children>
65
  </admin>
66
  </resources>
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
  */
12
  -->
13
 
33
 
34
  <acl>
35
  <resources>
36
+ <all>
37
+ <title>Allow Everything</title>
38
+ </all>
39
  <admin>
40
  <children>
41
+
42
  <system>
43
  <children>
44
  <config>
45
  <children>
46
+ <subiz_livechat moduel="subiz_livechat" translate="title">
47
  <title>Subiz Live Chat</title>
48
  </subiz_livechat>
49
  </children>
64
  </dashboard>
65
  </children>
66
  </subiz_livechat_menu>
67
+
68
  </children>
69
  </admin>
70
  </resources>
app/code/community/Subiz/LiveChat/etc/config.xml CHANGED
@@ -8,14 +8,13 @@
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
 
@@ -46,6 +45,14 @@
46
  </observers>
47
  </admin_system_config_changed_section_subiz_livechat>
48
  </events>
 
 
 
 
 
 
 
 
49
  </global>
50
 
51
  <frontend>
@@ -67,6 +74,14 @@
67
  <frontName>subiz</frontName>
68
  </args>
69
  </subiz_livechat>
 
 
 
 
 
 
 
 
70
  </routers>
71
  </admin>
72
 
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
  */
12
  -->
13
 
14
  <config>
15
  <modules>
16
  <Subiz_LiveChat>
17
+ <version>1.0.1</version>
18
  </Subiz_LiveChat>
19
  </modules>
20
 
45
  </observers>
46
  </admin_system_config_changed_section_subiz_livechat>
47
  </events>
48
+ <resources>
49
+ <subiz_setup>
50
+ <setup>
51
+ <module>Subiz_LiveChat</module>
52
+ <class>Subiz_LiveChat_Model_Resource_Setup</class>
53
+ </setup>
54
+ </subiz_setup>
55
+ </resources>
56
  </global>
57
 
58
  <frontend>
74
  <frontName>subiz</frontName>
75
  </args>
76
  </subiz_livechat>
77
+
78
+ <adminhtml>
79
+ <args>
80
+ <modules>
81
+ <Subiz_LiveChat before="Mage_Adminhtml">Subiz_LiveChat_Adminhtml</Subiz_LiveChat>
82
+ </modules>
83
+ </args>
84
+ </adminhtml>
85
  </routers>
86
  </admin>
87
 
app/code/community/Subiz/LiveChat/etc/system.xml CHANGED
@@ -8,7 +8,6 @@
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
 
@@ -22,66 +21,55 @@
22
 
23
  <sections>
24
  <subiz_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>
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
  */
12
  -->
13
 
21
 
22
  <sections>
23
  <subiz_livechat module="subiz_livechat" translate="label">
24
+ <label>Subiz Settings</label>
25
  <tab>subiz_livechat_config_tab</tab>
26
+ <sort_order>100</sort_order>
27
  <show_in_default>1</show_in_default>
28
  <show_in_website>1</show_in_website>
29
  <show_in_store>1</show_in_store>
30
 
31
  <groups>
32
+ <config translate="label comment">
33
+ <label>Configuration</label>
34
+ <frontend_type>text</frontend_type>
35
+ <sort_order>1</sort_order>
36
+ <show_in_default>1</show_in_default>
37
+ <show_in_website>1</show_in_website>
38
+ <show_in_store>1</show_in_store>
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
+ <fields>
41
+ <license_id translate="label comment">
42
+ <label>License ID</label>
43
+ <frontend_type>text</frontend_type>
44
+ <sort_order>1</sort_order>
45
+ <comment><![CDATA[<a href="http://subiz.com/landingpage/faqs-en/faqs.html?faq=44" target="_blank">How to get license ID</a>]]></comment>
46
+ <show_in_default>1</show_in_default>
47
+ <show_in_website>1</show_in_website>
48
+ <show_in_store>1</show_in_store>
49
+ </license_id>
50
 
51
+ <script translate="label comment">
52
+ <label><![CDATA[Widget code<br>*<i>Fill this place if you don't have license ID.</i>]]></label>
53
+ <frontend_type>textarea</frontend_type>
54
+ <sort_order>2</sort_order>
55
+ <comment><![CDATA[<a href="http://subiz.com/landingpage/faqs-en/faqs.html?faq=43" target="_blank">How to get embed code</a>]]></comment>
56
+ <show_in_default>1</show_in_default>
57
+ <show_in_website>1</show_in_website>
58
+ <show_in_store>1</show_in_store>
59
+ </script>
 
 
60
 
61
+ <enabled translate="label comment">
62
+ <label>Enabled</label>
63
+ <frontend_type>select</frontend_type>
64
+ <sort_order>3</sort_order>
65
+ <comment>Enable\Disable widget on front page</comment>
66
+ <show_in_default>1</show_in_default>
67
+ <show_in_website>1</show_in_website>
68
+ <show_in_store>1</show_in_store>
69
+ <source_model>adminhtml/system_config_source_yesno</source_model>
70
+ </enabled>
71
+ </fields>
72
+ </config>
73
  </groups>
74
  </subiz_livechat>
75
  </sections>
app/code/community/Subiz/LiveChat/sql/subiz_setup/mysql4-install-1.0.0.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ */
11
+
12
+ /* @var $this Mage_Core_Model_Resource_Setup */
13
+
14
+ $installer = $this;
15
+
16
+ $installer->startSetup();
17
+
18
+ $installer->getConnection()->insert($this->getTable('core/config_data'), array(
19
+ 'path' => 'subiz_livechat/config/enabled',
20
+ 'value' => '1'
21
+ ));
22
+
23
+ $installer->endSetup();
app/code/community/Subiz/LiveChat/sql/subiz_setup/upgrade-1.0.0-1.0.1.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ */
11
+
12
+ /* @var $this Mage_Core_Model_Resource_Setup */
13
+
14
+ $installer = $this;
15
+
16
+ $installer->startSetup();
17
+
18
+ $select = $installer->getConnection()
19
+ ->select()
20
+ ->from($this->getTable('core/config_data'))
21
+ ->where('path LIKE "%subiz_livechat/account%" OR path LIKE "%subiz_livechat/widget%"');
22
+ $result = $installer->getConnection()->fetchAll($select);
23
+
24
+ if ($result) {
25
+ foreach ($result as $key => $val) {
26
+ // insert new path, keep value
27
+ switch ($val['path']) {
28
+ case 'subiz_livechat/account/license_id':
29
+ $installer->getConnection()->insert($this->getTable('core/config_data'), array(
30
+ 'path' => 'subiz_livechat/config/license_id',
31
+ 'value' => $val['value']
32
+ ));
33
+ break;
34
+ case 'subiz_livechat/widget/script':
35
+ $installer->getConnection()->insert($this->getTable('core/config_data'), array(
36
+ 'path' => 'subiz_livechat/config/script',
37
+ 'value' => $val['value']
38
+ ));
39
+ break;
40
+ }
41
+ // delete old path
42
+ $installer->getConnection()->delete($this->getTable('core/config_data'), "path='".$val['path']."'");
43
+ }
44
+ }
45
+
46
+ Mage::getConfig()->cleanCache();
47
+
48
+ $installer->endSetup();
app/design/.DS_Store DELETED
Binary file
app/design/._.DS_Store DELETED
Binary file
app/design/adminhtml/.DS_Store DELETED
Binary file
app/design/adminhtml/._.DS_Store DELETED
Binary file
app/design/adminhtml/default/.DS_Store DELETED
Binary file
app/design/adminhtml/default/._.DS_Store DELETED
Binary file
app/design/adminhtml/default/default/.DS_Store DELETED
Binary file
app/design/adminhtml/default/default/._.DS_Store DELETED
Binary file
app/design/adminhtml/default/default/template/.DS_Store DELETED
Binary file
app/design/adminhtml/default/default/template/._.DS_Store DELETED
Binary file
app/design/adminhtml/default/default/template/subiz_livechat/.DS_Store DELETED
Binary file
app/design/adminhtml/default/default/template/subiz_livechat/._.DS_Store DELETED
Binary file
app/design/frontend/.DS_Store DELETED
Binary file
app/design/frontend/._.DS_Store DELETED
Binary file
app/design/frontend/base/.DS_Store DELETED
Binary file
app/design/frontend/base/._.DS_Store DELETED
Binary file
app/design/frontend/base/default/.DS_Store DELETED
Binary file
app/design/frontend/base/default/._.DS_Store DELETED
Binary file
app/design/frontend/base/default/layout/.DS_Store DELETED
Binary file
app/design/frontend/base/default/layout/._.DS_Store DELETED
Binary file
app/design/frontend/base/default/layout/subiz_livechat.xml CHANGED
@@ -8,13 +8,12 @@
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>
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
  */
12
  -->
13
 
14
  <layout>
15
  <default>
16
+ <reference name="before_body_end">
17
  <block type="subiz_livechat/script" name="subiz_livechat_script" template="subiz_livechat/script.phtml" after="-" />
18
  </reference>
19
  </default>
app/design/frontend/base/default/template/.DS_Store DELETED
Binary file
app/design/frontend/base/default/template/._.DS_Store DELETED
Binary file
app/design/frontend/base/default/template/subiz_livechat/script.phtml CHANGED
@@ -6,7 +6,6 @@
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
 
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
  */
10
  ?>
11
 
app/etc/.DS_Store DELETED
Binary file
app/etc/._.DS_Store DELETED
Binary file
app/etc/modules/.DS_Store DELETED
Binary file
app/etc/modules/._.DS_Store DELETED
Binary file
app/etc/modules/Subiz_LiveChat.xml CHANGED
@@ -8,7 +8,6 @@
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
 
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
  */
12
  -->
13
 
package.xml CHANGED
@@ -1,26 +1,34 @@
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;
@@ -29,9 +37,9 @@ 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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>subiz</name>
4
+ <version>1.0.1</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>&lt;h1&gt;Enhance customer interaction for your Magento shop with Subiz live chat&lt;/h1&gt;&#xD;
11
+ &lt;p&gt;&lt;a href="http://subiz.com?utm_source=Magento&amp;amp;utm_medium=plugin&amp;amp;utm_campaign=Magento_extension"&gt;Subiz&lt;/a&gt; offers the fastest way to reach out to potential website visitor, respond directly and fulfil every single enquiry in real-time.&#xD;
12
+ &lt;br/&gt;These entire customer interactions occur on a web-based live chat widget docked at the bottom of your Magento store.&lt;/p&gt;&#xD;
13
+ &lt;h2&gt;Get started:&lt;/h2&gt;&#xD;
14
+ &lt;p&gt;&lt;i&gt;Step 1:&lt;/i&gt; After install Subiz extension, choose menu Subiz live chat on Magento Admin Panel &amp;gt;&amp;gt; Dashboard&lt;/p&gt;&#xD;
15
+ &lt;p&gt;&lt;i&gt;Step 2:&lt;/i&gt; Register Subiz account and Login Subiz Dashboard &amp;gt;&amp;gt; Settings &amp;gt;&amp;gt; Installations &amp;gt;&amp;gt; Get License ID or Copy embed code&lt;/p&gt;&#xD;
16
+ &lt;p&gt;&lt;i&gt;Step 3:&lt;/i&gt; On Magento Admin Panel, choose menu Subiz live chat &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Enter License ID or embed code in the appropriate fields &amp;gt;&amp;gt; Choose Yes in Enabled &amp;gt;&amp;gt; Save Config &lt;/p&gt;&#xD;
17
+ &lt;p&gt;&lt;i&gt;Step 4:&lt;/i&gt; Return to Dashboard and start chatting with your visitors.&lt;/p&gt;&#xD;
18
+ &lt;h2&gt;Key features:&lt;/h2&gt;&#xD;
19
+ &lt;p&gt;Implementing Subiz into your Magento website, it will create an excellence customer service channel to make your shop outstanding among competitors.&lt;/p&gt;&#xD;
20
+ &lt;ul&gt;&#xD;
21
+ &lt;li&gt;&lt;strong&gt;IM chat app:&lt;/strong&gt; Support for visitors on the go via IM client&lt;/li&gt;&#xD;
22
+ &lt;li&gt;&lt;strong&gt;Dashboard:&lt;/strong&gt; Access to Subiz Dashboard integrated on your Admin Panel to know exactly who enters your site, understand what they are looking for and proactively monitor them with personal touch&lt;/li&gt;&#xD;
23
+ &lt;li&gt;&lt;strong&gt;Widget:&lt;/strong&gt; Customize the widget to fit with your website: size, color, theme, avatar, font,...&lt;/li&gt;&#xD;
24
+ &lt;li&gt;&lt;strong&gt;Trigger:&lt;/strong&gt; Proactively invite visitors for a chat based on predetermined rule of trigger&lt;/li&gt;&#xD;
25
+ &lt;li&gt;&lt;strong&gt;Safety of data:&lt;/strong&gt; Store data in a secure servers for easy achievement&lt;/li&gt;&#xD;
26
+ &lt;li&gt;&lt;strong&gt;Report:&lt;/strong&gt; Advanced analytic and report on operator activity with integrated Google Analytics&lt;/li&gt;&#xD;
27
+ &lt;li&gt;&lt;strong&gt;Canned response:&lt;/strong&gt; Use canned responses and shortcut answer for fast and effective chat&lt;/li&gt;&#xD;
28
+ &lt;/ul&gt;&#xD;
29
+ &lt;p&gt;&lt;i&gt;For more details regarding feature and price, &lt;a href="http://subiz.com/pricing.html?utm_source=Magento&amp;amp;utm_medium=plugin&amp;amp;utm_campaign=Magento_extension"&gt;please visit here&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;&#xD;
30
+ &lt;h2&gt;Support&lt;/h2&gt;&#xD;
31
+ &lt;p&gt;If you meet any difficulties installing or utilising Subiz, please drop us an email at &lt;a href="mailto:support@subiz.com"&gt;support@subiz.com&lt;/a&gt; or &lt;a href="http://subiz.com?utm_source=Magento&amp;amp;utm_medium=plugin&amp;amp;utm_campaign=Magento_extension"&gt;chat with us&lt;/a&gt;&lt;/p&gt;</description>
32
  <notes>First release of Subiz live chat extension for Magento&#xD;
33
  Why Subiz:&#xD;
34
  Understand your customers&#xD;
37
  Support visitor on the go with IM app&#xD;
38
  </notes>
39
  <authors><author><name>Binh Duong</name><user>subiz</user><email>binhduong@subiz.com</email></author></authors>
40
+ <date>2015-08-13</date>
41
+ <time>08:25:50</time>
42
+ <contents><target name="magecommunity"><dir name="Subiz"><dir name="LiveChat"><dir name="Block"><file name="Script.php" hash="0630616d05a11d7c8e683075bf27125c"/></dir><dir name="Helper"><file name="Data.php" hash="3719fabab5a07f4b2117359326af8f83"/></dir><dir name="Model"><file name="Observer.php" hash="36f6aff34de2c87b5039bdd6fa03eec2"/><dir name="Resource"><file name="Setup.php" hash="c1ca1738b605e820b4048b55b36f1d97"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="1b1b14788fc0fce0dd28c7860d0c3afe"/><dir name="System"><file name="ConfigController.php" hash="4df126780de8380db15f1c03e01567fb"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="9a280c2e651eb9b3b88c921e0a877700"/><file name="config.xml" hash="54aff6f08c29f0c1b9127ce2cd4a4709"/><file name="system.xml" hash="4e7b9e0c82c303cbe62a012489d2799d"/></dir><dir name="sql"><dir name="subiz_setup"><file name="mysql4-install-1.0.0.php" hash="3c3069d079750e880c972d984e695e06"/><file name="upgrade-1.0.0-1.0.1.php" hash="1342d06949cb35861b87c757fad930fc"/></dir></dir></dir></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"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="subiz_livechat.xml" hash="4a9ed8ce940c5a1d3575e95a662d9707"/></dir><dir name="template"><dir name="subiz_livechat"><file name="script.phtml" hash="35769b3f322da805e0a80d6d2c868018"/></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><target name="mageetc"><dir name="modules"><file name="Subiz_LiveChat.xml" hash="510f0594b0af6811a84ca1664ad0c580"/></dir></target></contents>
43
  <compatible/>
44
  <dependencies><required><php><min>5.3.0</min><max>5.6.11</max></php></required></dependencies>
45
  </package>
skin/.DS_Store DELETED
Binary file
skin/._.DS_Store DELETED
Binary file
skin/adminhtml/.DS_Store DELETED
Binary file
skin/adminhtml/._.DS_Store DELETED
Binary file
skin/adminhtml/default/.DS_Store DELETED
Binary file
skin/adminhtml/default/._.DS_Store DELETED
Binary file
skin/adminhtml/default/default/.DS_Store DELETED
Binary file
skin/adminhtml/default/default/._.DS_Store DELETED
Binary file