Version Notes
none
Download this release
Release Info
Developer | Magento Core Team |
Extension | Beck_LiveChat |
Version | 1.3.9 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.3.9
app/code/community/Beck/LiveChat/Block/Template.php
CHANGED
@@ -83,7 +83,7 @@ class Beck_LiveChat_Block_Template extends Mage_Core_Block_Template
|
|
83 |
|
84 |
public function ChatSessionStarted()
|
85 |
{
|
86 |
-
$session_id = Mage::getSingleton('checkout/session')->
|
87 |
return (Mage::getModel('livechat/session')->Exist($session_id));
|
88 |
}
|
89 |
|
@@ -126,7 +126,7 @@ class Beck_LiveChat_Block_Template extends Mage_Core_Block_Template
|
|
126 |
|
127 |
public function getMessages()
|
128 |
{
|
129 |
-
$session_id = Mage::getSingleton('checkout/session')->
|
130 |
$session = Mage::getModel('livechat/session');
|
131 |
if ($session->Exist($session_id))
|
132 |
{
|
83 |
|
84 |
public function ChatSessionStarted()
|
85 |
{
|
86 |
+
$session_id = Mage::getSingleton('checkout/session')->getSessionId();
|
87 |
return (Mage::getModel('livechat/session')->Exist($session_id));
|
88 |
}
|
89 |
|
126 |
|
127 |
public function getMessages()
|
128 |
{
|
129 |
+
$session_id = Mage::getSingleton('checkout/session')->getSessionId();
|
130 |
$session = Mage::getModel('livechat/session');
|
131 |
if ($session->Exist($session_id))
|
132 |
{
|
app/code/community/Beck/LiveChat/Model/Event.php
CHANGED
@@ -6,7 +6,7 @@ class Beck_LiveChat_Model_Event
|
|
6 |
{
|
7 |
$event = $observer->getEvent();
|
8 |
$order = $event->getOrder();
|
9 |
-
$session_id = Mage::getSingleton('checkout/session')->
|
10 |
$session = Mage::getModel('livechat/session')->loadBySessionId($session_id);
|
11 |
if (is_object($session))
|
12 |
{
|
@@ -32,7 +32,7 @@ class Beck_LiveChat_Model_Event
|
|
32 |
$changechatcreator = Mage::getStoreConfig('livechatevents/oncustomerconnexion/changechatcreatorname', 0) == '1' ? true : false;
|
33 |
$changemessagesautor = Mage::getStoreConfig('livechatevents/oncustomerconnexion/changeallcustomermessageautor', 0) == '1' ? true : false;
|
34 |
$defaultcustomername = Mage::getStoreConfig('livechatconfiguration/display/defaultcustomername', Mage::app()->getStore(true)->getId());
|
35 |
-
$session_id = Mage::getSingleton('checkout/session')->
|
36 |
$session = Mage::getModel('livechat/session');
|
37 |
if ($changechatcreator == true)
|
38 |
{
|
6 |
{
|
7 |
$event = $observer->getEvent();
|
8 |
$order = $event->getOrder();
|
9 |
+
$session_id = Mage::getSingleton('checkout/session')->getSessionId();
|
10 |
$session = Mage::getModel('livechat/session')->loadBySessionId($session_id);
|
11 |
if (is_object($session))
|
12 |
{
|
32 |
$changechatcreator = Mage::getStoreConfig('livechatevents/oncustomerconnexion/changechatcreatorname', 0) == '1' ? true : false;
|
33 |
$changemessagesautor = Mage::getStoreConfig('livechatevents/oncustomerconnexion/changeallcustomermessageautor', 0) == '1' ? true : false;
|
34 |
$defaultcustomername = Mage::getStoreConfig('livechatconfiguration/display/defaultcustomername', Mage::app()->getStore(true)->getId());
|
35 |
+
$session_id = Mage::getSingleton('checkout/session')->getSessionId();
|
36 |
$session = Mage::getModel('livechat/session');
|
37 |
if ($changechatcreator == true)
|
38 |
{
|
app/code/community/Beck/LiveChat/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Beck_LiveChat>
|
5 |
-
<version>1.3.
|
6 |
</Beck_LiveChat>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Beck_LiveChat>
|
5 |
+
<version>1.3.9</version>
|
6 |
</Beck_LiveChat>
|
7 |
</modules>
|
8 |
<admin>
|
app/etc/modules/ZBeck_LiveChat.xml
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
<depends />
|
8 |
-
<version>1.3.
|
9 |
</Beck_LiveChat>
|
10 |
</modules>
|
11 |
</config>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
<depends />
|
8 |
+
<version>1.3.9</version>
|
9 |
</Beck_LiveChat>
|
10 |
</modules>
|
11 |
</config>
|