Sostanza_LiveHelp - Version 1.6.1

Version Notes

Minor bug fix.

Download this release

Release Info

Developer a.laciura@sostanza.it
Extension Sostanza_LiveHelp
Version 1.6.1
Comparing to
See all releases


Code changes from version 1.6.0 to 1.6.1

app/code/community/Sostanza/Livehelp/controllers/IndexController.php CHANGED
@@ -4,12 +4,30 @@ class Sostanza_Livehelp_IndexController extends Mage_Core_Controller_Front_Actio
4
  {
5
  public function getcartlhinfoAction()
6
  {
7
- $session_id = Mage::getSingleton("core/session")->getEncryptedSessionId(); // get our session
8
- $MAGENTOcart=Mage::getUrl( 'checkout/cart/', array(
 
 
 
9
  '_secure'=>true,
10
- '_query' => array('SID' => $session_id ), //make sure we append our session
11
  '_store_to_url' => true ) ); // lastly add store to our url if needed
12
- echo $MAGENTOcart;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  }
15
 
4
  {
5
  public function getcartlhinfoAction()
6
  {
7
+
8
+ if(isset($_GET["LH_SID"]))
9
+ {
10
+
11
+ $MAGENTOcart=Mage::getUrl( 'checkout/cart/', array(
12
  '_secure'=>true,
13
+ '_query' => array('SID' => $_GET["LH_SID"]), //make sure we append our session
14
  '_store_to_url' => true ) ); // lastly add store to our url if needed
15
+
16
+
17
+ $cookieName="frontend";
18
+ $cookieVal=$_GET["LH_SID"];
19
+
20
+
21
+ $cookie = Mage::getSingleton('core/cookie');
22
+ $cookie->set($cookieName, $cookieVal);
23
+
24
+
25
+ $this->_redirectUrl($MAGENTOcart);
26
+ }else{
27
+ $session_id = Mage::getSingleton("core/session")->getEncryptedSessionId(); // get our session
28
+ echo Mage::getUrl()."livehelp/index/getcartlhinfo/?LH_SID=".$session_id;
29
+ }
30
+
31
 
32
  }
33
 
package.xml CHANGED
@@ -1,19 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sostanza_LiveHelp</name>
4
- <version>1.6.0</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Livehelp live chat support</summary>
10
  <description>LiveHelp&#xAE; is the customer care service in which the company operator answers to customers' and prospects' questions directly in a real-time chat.</description>
11
- <notes>New:&#xD;
12
- added server cache support</notes>
13
  <authors><author><name>a.laciura@sostanza.it</name><user>alaciura</user><email>a.laciura@sostanza.it</email></author></authors>
14
- <date>2016-05-30</date>
15
- <time>10:57:48</time>
16
- <contents><target name="magecommunity"><dir name="Sostanza"><dir name="Livehelp"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Source"><file name="Buttons.php" hash="f451d7bd1d3407bde94d62e883e4ff03"/></dir></dir></dir><file name="Functions.php" hash="99554b0ab65dd7ed4d9872b984261eb9"/></dir><dir name="Helper"><file name="Data.php" hash="350213592a87639adb3c550335b8bec6"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="GetCool.php" hash="f666d5f1002d594c30eea5fc870cfab8"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="58a140ee249b938f89600bd3196dee19"/></dir><dir name="etc"><file name="adminhtml.xml" hash="de3981ba2172cc18f178e9e55c71232b"/><file name="config.xml" hash="bad2cc6394a48384a27616b4963a03ed"/><file name="system.xml" hash="0c4a38c27159be9366f3c388449f5f09"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="livehelp.xml" hash="4cada04c2d968e0721a69c5287678889"/></dir><dir name="template"><dir name="livehelp"><file name="widget.phtml" hash="c13f4913c8291cc372575b27d4ea1cb1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sostanza_Livehelp.xml" hash="e233123489b59007400da8a42e60b0fa"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.1.0</min><max>5.4.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sostanza_LiveHelp</name>
4
+ <version>1.6.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Livehelp live chat support</summary>
10
  <description>LiveHelp&#xAE; is the customer care service in which the company operator answers to customers' and prospects' questions directly in a real-time chat.</description>
11
+ <notes>Minor bug fix.</notes>
 
12
  <authors><author><name>a.laciura@sostanza.it</name><user>alaciura</user><email>a.laciura@sostanza.it</email></author></authors>
13
+ <date>2016-05-31</date>
14
+ <time>10:31:36</time>
15
+ <contents><target name="magecommunity"><dir name="Sostanza"><dir name="Livehelp"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Source"><file name="Buttons.php" hash="f451d7bd1d3407bde94d62e883e4ff03"/></dir></dir></dir><file name="Functions.php" hash="99554b0ab65dd7ed4d9872b984261eb9"/></dir><dir name="Helper"><file name="Data.php" hash="350213592a87639adb3c550335b8bec6"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="GetCool.php" hash="f666d5f1002d594c30eea5fc870cfab8"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="e8dff6adb9f0cf4e4ec32e88896e50e2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="de3981ba2172cc18f178e9e55c71232b"/><file name="config.xml" hash="bad2cc6394a48384a27616b4963a03ed"/><file name="system.xml" hash="0c4a38c27159be9366f3c388449f5f09"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="livehelp.xml" hash="4cada04c2d968e0721a69c5287678889"/></dir><dir name="template"><dir name="livehelp"><file name="widget.phtml" hash="c13f4913c8291cc372575b27d4ea1cb1"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sostanza_Livehelp.xml" hash="e233123489b59007400da8a42e60b0fa"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>5.4.0</max></php></required></dependencies>
18
  </package>