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
- app/.DS_Store +0 -0
- app/._.DS_Store +0 -0
- app/code/.DS_Store +0 -0
- app/code/._.DS_Store +0 -0
- app/code/community/.DS_Store +0 -0
- app/code/community/._.DS_Store +0 -0
- app/code/community/Subiz/.DS_Store +0 -0
- app/code/community/Subiz/._.DS_Store +0 -0
- app/code/community/Subiz/LiveChat/Block/Script.php +2 -3
- app/code/community/Subiz/LiveChat/Helper/Data.php +4 -5
- app/code/community/Subiz/LiveChat/Model/Observer.php +0 -1
- app/code/community/Subiz/LiveChat/Model/Resource/Setup.php +15 -0
- app/code/community/Subiz/LiveChat/controllers/Adminhtml/IndexController.php +1 -2
- app/code/community/Subiz/LiveChat/controllers/Adminhtml/System/ConfigController.php +48 -0
- app/code/community/Subiz/LiveChat/etc/adminhtml.xml +6 -2
- app/code/community/Subiz/LiveChat/etc/config.xml +17 -2
- app/code/community/Subiz/LiveChat/etc/system.xml +40 -52
- app/code/community/Subiz/LiveChat/sql/subiz_setup/mysql4-install-1.0.0.php +23 -0
- app/code/community/Subiz/LiveChat/sql/subiz_setup/upgrade-1.0.0-1.0.1.php +48 -0
- app/design/.DS_Store +0 -0
- app/design/._.DS_Store +0 -0
- app/design/adminhtml/.DS_Store +0 -0
- app/design/adminhtml/._.DS_Store +0 -0
- app/design/adminhtml/default/.DS_Store +0 -0
- app/design/adminhtml/default/._.DS_Store +0 -0
- app/design/adminhtml/default/default/.DS_Store +0 -0
- app/design/adminhtml/default/default/._.DS_Store +0 -0
- app/design/adminhtml/default/default/template/.DS_Store +0 -0
- app/design/adminhtml/default/default/template/._.DS_Store +0 -0
- app/design/adminhtml/default/default/template/subiz_livechat/.DS_Store +0 -0
- app/design/adminhtml/default/default/template/subiz_livechat/._.DS_Store +0 -0
- app/design/frontend/.DS_Store +0 -0
- app/design/frontend/._.DS_Store +0 -0
- app/design/frontend/base/.DS_Store +0 -0
- app/design/frontend/base/._.DS_Store +0 -0
- app/design/frontend/base/default/.DS_Store +0 -0
- app/design/frontend/base/default/._.DS_Store +0 -0
- app/design/frontend/base/default/layout/.DS_Store +0 -0
- app/design/frontend/base/default/layout/._.DS_Store +0 -0
- app/design/frontend/base/default/layout/subiz_livechat.xml +1 -2
- app/design/frontend/base/default/template/.DS_Store +0 -0
- app/design/frontend/base/default/template/._.DS_Store +0 -0
- app/design/frontend/base/default/template/subiz_livechat/script.phtml +0 -1
- app/etc/.DS_Store +0 -0
- app/etc/._.DS_Store +0 -0
- app/etc/modules/.DS_Store +0 -0
- app/etc/modules/._.DS_Store +0 -0
- app/etc/modules/Subiz_LiveChat.xml +0 -1
- package.xml +26 -18
- skin/.DS_Store +0 -0
- skin/._.DS_Store +0 -0
- skin/adminhtml/.DS_Store +0 -0
- skin/adminhtml/._.DS_Store +0 -0
- skin/adminhtml/default/.DS_Store +0 -0
- skin/adminhtml/default/._.DS_Store +0 -0
- skin/adminhtml/default/default/.DS_Store +0 -0
- 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 |
-
$
|
21 |
$licenseId = Subiz_LiveChat_Helper_Data::getLicenseId();
|
22 |
$script = Subiz_LiveChat_Helper_Data::getWidgetScriptFromConfig();
|
23 |
|
24 |
-
if (!$
|
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
|
20 |
{
|
21 |
-
return Mage::getStoreConfig('subiz_livechat/
|
22 |
}
|
23 |
|
24 |
public function getLicenseId()
|
25 |
{
|
26 |
-
return Mage::getStoreConfig('subiz_livechat/
|
27 |
}
|
28 |
|
29 |
public function getWidgetScriptFromConfig()
|
30 |
{
|
31 |
-
return Mage::getStoreConfig('subiz_livechat/
|
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
|
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.
|
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
|
26 |
<tab>subiz_livechat_config_tab</tab>
|
27 |
-
<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 |
-
<
|
34 |
-
<label>
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
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 |
-
<
|
55 |
-
<label
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
61 |
|
62 |
-
<
|
63 |
-
<
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
72 |
-
</enable>
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
</
|
83 |
-
</
|
84 |
-
</
|
|
|
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="
|
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.
|
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
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<notes>First release of Subiz live chat extension for Magento
|
25 |
Why Subiz:
|
26 |
Understand your customers
|
@@ -29,9 +37,9 @@ Attractive customizable widget
|
|
29 |
Support visitor on the go with IM app
|
30 |
</notes>
|
31 |
<authors><author><name>Binh Duong</name><user>subiz</user><email>binhduong@subiz.com</email></author></authors>
|
32 |
-
<date>2015-
|
33 |
-
<time>
|
34 |
-
<contents><target name="
|
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><h1>Enhance customer interaction for your Magento shop with Subiz live chat</h1>
|
11 |
+
<p><a href="http://subiz.com?utm_source=Magento&amp;utm_medium=plugin&amp;utm_campaign=Magento_extension">Subiz</a> offers the fastest way to reach out to potential website visitor, respond directly and fulfil every single enquiry in real-time.
|
12 |
+
<br/>These entire customer interactions occur on a web-based live chat widget docked at the bottom of your Magento store.</p>
|
13 |
+
<h2>Get started:</h2>
|
14 |
+
<p><i>Step 1:</i> After install Subiz extension, choose menu Subiz live chat on Magento Admin Panel &gt;&gt; Dashboard</p>
|
15 |
+
<p><i>Step 2:</i> Register Subiz account and Login Subiz Dashboard &gt;&gt; Settings &gt;&gt; Installations &gt;&gt; Get License ID or Copy embed code</p>
|
16 |
+
<p><i>Step 3:</i> On Magento Admin Panel, choose menu Subiz live chat &gt;&gt; Configuration &gt;&gt; Enter License ID or embed code in the appropriate fields &gt;&gt; Choose Yes in Enabled &gt;&gt; Save Config </p>
|
17 |
+
<p><i>Step 4:</i> Return to Dashboard and start chatting with your visitors.</p>
|
18 |
+
<h2>Key features:</h2>
|
19 |
+
<p>Implementing Subiz into your Magento website, it will create an excellence customer service channel to make your shop outstanding among competitors.</p>
|
20 |
+
<ul>
|
21 |
+
<li><strong>IM chat app:</strong> Support for visitors on the go via IM client</li>
|
22 |
+
<li><strong>Dashboard:</strong> 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</li>
|
23 |
+
<li><strong>Widget:</strong> Customize the widget to fit with your website: size, color, theme, avatar, font,...</li>
|
24 |
+
<li><strong>Trigger:</strong> Proactively invite visitors for a chat based on predetermined rule of trigger</li>
|
25 |
+
<li><strong>Safety of data:</strong> Store data in a secure servers for easy achievement</li>
|
26 |
+
<li><strong>Report:</strong> Advanced analytic and report on operator activity with integrated Google Analytics</li>
|
27 |
+
<li><strong>Canned response:</strong> Use canned responses and shortcut answer for fast and effective chat</li>
|
28 |
+
</ul>
|
29 |
+
<p><i>For more details regarding feature and price, <a href="http://subiz.com/pricing.html?utm_source=Magento&amp;utm_medium=plugin&amp;utm_campaign=Magento_extension">please visit here</a></i></p>
|
30 |
+
<h2>Support</h2>
|
31 |
+
<p>If you meet any difficulties installing or utilising Subiz, please drop us an email at <a href="mailto:support@subiz.com">support@subiz.com</a> or <a href="http://subiz.com?utm_source=Magento&amp;utm_medium=plugin&amp;utm_campaign=Magento_extension">chat with us</a></p></description>
|
32 |
<notes>First release of Subiz live chat extension for Magento
|
33 |
Why Subiz:
|
34 |
Understand your customers
|
37 |
Support visitor on the go with IM app
|
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
|