unbeatablechat - Version 0.3.0

Version Notes

Code Improvements and Bug Fixes

Download this release

Release Info

Developer Unbeatable.com
Extension unbeatablechat
Version 0.3.0
Comparing to
See all releases


Code changes from version 0.2.2 to 0.3.0

app/code/community/Unbeatable/Chat/Block/Footer.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Unbeatable_Chat_Block_Footer extends Mage_Core_Block_Template
4
+ {
5
+
6
+ const XML_PATH_CHAT_ENABLED = 'unbeatable/unbeatable_group2/unbeatable_chat_enabled';
7
+
8
+ public function isEnabled() {
9
+ return Mage::getStoreConfig(self::XML_PATH_CHAT_ENABLED, Mage::app()->getStore());
10
+ }
11
+
12
+ }
app/code/community/Unbeatable/Chat/Helper/Data.php CHANGED
@@ -42,7 +42,7 @@ class Unbeatable_Chat_Helper_Data extends Mage_Core_Helper_Abstract {
42
  window.console && console.log(e);
43
  }
44
  };
45
- ajax('/unbeatable/cart/index', function(response){
46
  if(Unbeatable){
47
  Unbeatable.setItems(JSON.parse(response));
48
  }
42
  window.console && console.log(e);
43
  }
44
  };
45
+ ajax('" . Mage::getBaseUrl() . "unbeatable/cart/index', function(response){
46
  if(Unbeatable){
47
  Unbeatable.setItems(JSON.parse(response));
48
  }
app/code/community/Unbeatable/Chat/etc/adminhtml.xml CHANGED
@@ -1,16 +1,25 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <config>
3
- <menu>
4
- <unbeatabletab module="unbeatablechat" translate="title">
5
- <title>Unbeatable</title>
6
- <sort_order>100</sort_order>
7
- <children>
8
- <setup module="unbeatablechat" translate="title">
9
- <title>Setup</title>
10
- <sort_order>1</sort_order>
11
- <action>adminhtml/system_config/edit/section/unbeatable</action>
12
- </setup>
13
- </children>
14
- </unbeatabletab>
15
- </menu>
 
 
 
 
 
 
 
 
 
16
  </config>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <config>
3
+ <acl>
4
+ <resources>
5
+ <all>
6
+ <title>Allow Everything</title>
7
+ </all>
8
+ <admin>
9
+ <children>
10
+ <system>
11
+ <children>
12
+ <config>
13
+ <children>
14
+ <unbeatable>
15
+ <title>Unbeatable - All</title>
16
+ </unbeatable>
17
+ </children>
18
+ </config>
19
+ </children>
20
+ </system>
21
+ </children>
22
+ </admin>
23
+ </resources>
24
+ </acl>
25
  </config>
app/code/community/Unbeatable/Chat/etc/config.xml CHANGED
@@ -2,45 +2,26 @@
2
  <config>
3
  <modules>
4
  <Unbeatable_Chat>
5
- <version>0.1.0</version>
6
  </Unbeatable_Chat>
7
  </modules>
8
  <global>
9
- <models>
10
  <unbeatablechat>
11
- <class>Unbeatable_Chat_Model</class>
12
  </unbeatablechat>
13
- </models>
14
  <helpers>
15
  <unbeatablechat>
16
  <class>Unbeatable_Chat_Helper</class>
17
  </unbeatablechat>
18
  </helpers>
 
 
 
 
 
19
  </global>
20
- <adminhtml>
21
- <acl>
22
- <resources>
23
- <all>
24
- <title>Allow Everything</title>
25
- </all>
26
- <admin>
27
- <children>
28
- <system>
29
- <children>
30
- <config>
31
- <children>
32
- <unbeatable>
33
- <title>Unbeatable - All</title>
34
- </unbeatable>
35
- </children>
36
- </config>
37
- </children>
38
- </system>
39
- </children>
40
- </admin>
41
- </resources>
42
- </acl>
43
- </adminhtml>
44
  <frontend>
45
  <layout>
46
  <updates>
2
  <config>
3
  <modules>
4
  <Unbeatable_Chat>
5
+ <version>0.1.1</version>
6
  </Unbeatable_Chat>
7
  </modules>
8
  <global>
9
+ <blocks>
10
  <unbeatablechat>
11
+ <class>Unbeatable_Chat_Block</class>
12
  </unbeatablechat>
13
+ </blocks>
14
  <helpers>
15
  <unbeatablechat>
16
  <class>Unbeatable_Chat_Helper</class>
17
  </unbeatablechat>
18
  </helpers>
19
+ <models>
20
+ <unbeatablechat>
21
+ <class>Unbeatable_Chat_Model</class>
22
+ </unbeatablechat>
23
+ </models>
24
  </global>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  <frontend>
26
  <layout>
27
  <updates>
app/code/community/Unbeatable/Chat/etc/system.xml CHANGED
@@ -1,15 +1,9 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <config>
3
- <tabs>
4
- <unbeatable translate="label" module="unbeatablechat">
5
- <label>Unbeatable</label>
6
- <sort_order>100</sort_order>
7
- </unbeatable>
8
- </tabs>
9
  <sections>
10
  <unbeatable translate="label" module="unbeatablechat">
11
- <label>Setup</label>
12
- <tab>unbeatable</tab>
13
  <sort_order>1000</sort_order>
14
  <show_in_default>1</show_in_default>
15
  <show_in_website>1</show_in_website>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <config>
 
 
 
 
 
 
3
  <sections>
4
  <unbeatable translate="label" module="unbeatablechat">
5
+ <label>Unbeatable Chat</label>
6
+ <tab>customer</tab>
7
  <sort_order>1000</sort_order>
8
  <show_in_default>1</show_in_default>
9
  <show_in_website>1</show_in_website>
app/design/frontend/base/default/layout/unbeatable.xml CHANGED
@@ -2,7 +2,7 @@
2
  <layout>
3
  <default>
4
  <reference name="before_body_end">
5
- <block type="core/template"
6
  name="unbeatable_layout_footer"
7
  template="unbeatable/footer.phtml" />
8
  </reference>
2
  <layout>
3
  <default>
4
  <reference name="before_body_end">
5
+ <block type="unbeatablechat/footer"
6
  name="unbeatable_layout_footer"
7
  template="unbeatable/footer.phtml" />
8
  </reference>
app/design/frontend/base/default/template/unbeatable/footer.phtml CHANGED
@@ -1,6 +1,5 @@
1
  <?php
2
- $enabled = Mage::getStoreConfig('unbeatable/unbeatable_group2/unbeatable_chat_enabled', Mage::app()->getStore());
3
- if($enabled){
4
  Mage::helper('unbeatablechat')->insertChatWidget();
5
  }
6
  ?>
1
  <?php
2
+ if($this->isEnabled()){
 
3
  Mage::helper('unbeatablechat')->insertChatWidget();
4
  }
5
  ?>
app/etc/modules/Unbeatable_Chat.xml CHANGED
@@ -2,13 +2,8 @@
2
  <config>
3
  <modules>
4
  <Unbeatable_Chat>
5
-
6
- <!-- Whether our module is active: true or false -->
7
  <active>true</active>
8
-
9
- <!-- Which code pool to use: core, community or local -->
10
  <codePool>community</codePool>
11
-
12
  </Unbeatable_Chat>
13
  </modules>
14
  </config>
2
  <config>
3
  <modules>
4
  <Unbeatable_Chat>
 
 
5
  <active>true</active>
 
 
6
  <codePool>community</codePool>
 
7
  </Unbeatable_Chat>
8
  </modules>
9
  </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>unbeatablechat</name>
4
- <version>0.2.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Unbeatable Chat Integration</summary>
10
  <description>Unbeatable Chat Integration</description>
11
- <notes>Bug Fix for Widget - Wasn't Displaying Properly on Themes</notes>
12
  <authors><author><name>Unbeatable.com</name><user>Unbetable</user><email>support@unbeatable.com</email></author></authors>
13
- <date>2016-02-04</date>
14
- <time>16:16:54</time>
15
- <contents><target name="magecommunity"><dir name="Unbeatable"><dir name="Chat"><dir name="Helper"><file name="Data.php" hash="d5ef36c6d48c9f07049383816bb4c9c1"/></dir><dir name="Model"><file name="Observer.php" hash="c19a8efa9855b590037bc16244b47ec9"/></dir><dir name="controllers"><file name="CartController.php" hash="b2f0199f7bdf8508ac1cb15e85209a14"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fa15a41d1ffeec89707d3d4c24f72ab6"/><file name="config.xml" hash="e116d2578bb73629137f72879777869f"/><file name="system.xml" hash="1f0893eddea95ea760e707934595d6c7"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Unbeatable_Chat.xml" hash="820d09c2f6a920a287894ace7032acc9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="unbeatable"><file name="footer.phtml" hash="cad65e2da06237c6824c2f82b761d3ae"/></dir></dir><dir name="layout"><file name="unbeatable.xml" hash="4fc711f5c8c2a25192b6ed443b8a3d8a"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>unbeatablechat</name>
4
+ <version>0.3.0</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Unbeatable Chat Integration</summary>
10
  <description>Unbeatable Chat Integration</description>
11
+ <notes>Code Improvements and Bug Fixes</notes>
12
  <authors><author><name>Unbeatable.com</name><user>Unbetable</user><email>support@unbeatable.com</email></author></authors>
13
+ <date>2016-03-31</date>
14
+ <time>12:11:55</time>
15
+ <contents><target name="magecommunity"><dir name="Unbeatable"><dir name="Chat"><dir name="Block"><file name="Footer.php" hash="7075e7c25d6955fdd3a804b3b023153d"/></dir><dir name="Helper"><file name="Data.php" hash="c7f317b8093f07c3091809246ef241d7"/></dir><dir name="Model"><file name="Observer.php" hash="c19a8efa9855b590037bc16244b47ec9"/></dir><dir name="controllers"><file name="CartController.php" hash="b2f0199f7bdf8508ac1cb15e85209a14"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1b249d797ac91b8a8f71455185e2cdf8"/><file name="config.xml" hash="63cbe021590463b680bf6dc2777110f0"/><file name="system.xml" hash="b38091e7eccc589055806fc2f5e034b2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Unbeatable_Chat.xml" hash="0fefe4d3d22792b9af3318c00dd8b906"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="unbeatable"><file name="footer.phtml" hash="10e06a626c442d2401efa8d5c8483c1d"/></dir></dir><dir name="layout"><file name="unbeatable.xml" hash="cf7d3132c929915d91fe553209f774bf"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>