Liveagent - Version 3.2.1

Version Notes

- multistore config link added to main menu
- new way of login to LiveAgent admin panel
- minor design changes

Download this release

Release Info

Developer Quality Unit, LLC
Extension Liveagent
Version 3.2.1
Comparing to
See all releases


Code changes from version 3.2.0 to 3.2.1

app/code/local/Qualityunit/Liveagent/Block/Buttoncode.php CHANGED
@@ -15,7 +15,7 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
15
  $this->assignVariable('accountUrlLabel', Mage::helper('adminhtml')->__('Account URL'));
16
  $this->assignVariable('loginLabel', Mage::helper('adminhtml')->__('Login to your account'));
17
  $this->assignVariable('ChangeLabel', Mage::helper('adminhtml')->__('Connect to a different account'));
18
- $this->assignVariable('buttonCodeHelp', Mage::helper('adminhtml')->__('This is the chat button code which will be automatically placed to your Magento site'));
19
  $this->assignVariable('configOptionsHelp', Mage::helper('adminhtml')->__('If customer is logged in, you can automatically add these to chat.'));
20
  $this->assignVariable('configOptionsTitle', Mage::helper('adminhtml')->__('Additional options'));
21
  $this->assignVariable('customer', Mage::helper('adminhtml')->__('customer'));
@@ -41,8 +41,10 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
41
  $this->assignVariable('saveButtonCodeFlag', Qualityunit_Liveagent_Block_AccountConnect::SAVE_BUTTON_CODE_ACTION_FLAG);
42
  $this->assignVariable('la-url', $settings->getLiveAgentUrl());
43
  $this->assignVariable('loginUrl', $this->getLoginUrl($settings));
 
44
  $this->assignVariable('ChangeUrl', $this->getUrl('*/*/index', array('key' => $this->getRequest()->get('key'), 'action' => Qualityunit_Liveagent_Block_AccountConnect::CONNECT_ACCOUNT_ACTION_FLAG)));
45
  $this->assignVariable('resetUrl', $this->getUrl('*/*/index', array('key' => $this->getRequest()->get('key'), 'action' => Qualityunit_Liveagent_Block_AccountConnect::RESET_SETTINGS_ACTION_FLAG)));
 
46
 
47
  $this->prepareWidgetsBox($settings);
48
 
@@ -91,6 +93,7 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
91
  }
92
  }
93
 
 
94
  foreach ($widgetsArray as $widget) {
95
  $result = '<div class="widgetTitle">' . $widget->name . ':</div>';
96
  $result .= '<div class="widgetDisplay"><iframe frameborder="0" id="iFramePreview' . $widget->contactwidgetid . '" width="100%" height="100%" style="background-color: white"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>' . $widget->name . '</title></head><body></body></html></iframe></div>';
@@ -122,6 +125,7 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
122
  $result .= '<div onclick="jQuery(function($) {$.fn.setButton(\'' . $widget->contactwidgetid . '\')})" class="widgetSetButton">{useThisButton}</div>';
123
  }
124
  else {
 
125
  $result .= '<span class="inUseLabel">{inUse}</span>';
126
  }
127
 
@@ -133,21 +137,31 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
133
  </script>';
134
  }
135
 
136
- $this->assignVariable('widgetsHTML', '<div class="widgetsContainer">' . $widgetsHTML . '</div>');
 
 
 
 
 
137
  } catch (Qualityunit_Liveagent_Exception_ConnectFailed $e) {
138
  $this->assignVariable('widgetsHTML', '<div class="widgetsContainer">{errorOccurred}' . $e->getMessage() . "</div>\n");
139
  }
140
  }
141
 
142
  private function getLoginUrl(Qualityunit_Liveagent_Helper_Settings $settings) {
143
- return $settings->getLiveAgentUrl() . 'agent/index.php?AuthToken=' . $settings->getOwnerAuthToken();
 
 
 
 
144
  }
145
 
146
  protected function getTemplateString() {
147
- return '
148
- <form id="configForm" name="edit_form" action="{saveUrlAction}" method="post">
149
  <input name="form_key" type="hidden" value="{formKey}" />
150
  <input name="action" type="hidden" value="{saveButtonCodeFlag}"/>
 
 
151
  <div class="content-header">
152
  <table cellspacing="0">
153
  <tbody><tr>
@@ -170,8 +184,8 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
170
  </td>
171
  <td class="scope-label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
172
  <td class="value" style="text-align: center">
173
- <div id="connectButtonmain" class="ImLeButtonMain1 buttonBgColor buttonBorderColor createButton" tabindex="0">
174
- <span onclick="window.open(\'{loginUrl}\', \'_blank\')" class="buttonText">{loginLabel}</span>
175
  </div>
176
  </td>
177
  <td class="scope-label"></td><td></td>
@@ -190,8 +204,8 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
190
  <input onclick="jQuery(function($) {$(\'#configForm\').submit()})" type="checkbox" id="displayInAdmin" value="1" name="displayInAdmin" {displayInAdminChecked}> <label for="la-config-button-options"><strong>{displayInAdminPanel}</strong></label>
191
  </div>
192
  <div class="formFooter">
193
- <div id="connectButtonmain" class="ImLeButtonMain1 buttonBgColor buttonBorderColor createButton" tabindex="0">
194
- <span onclick="window.open(\'{loginUrl}\', \'_blank\')" class="buttonText">{addMoreButtons}</span>
195
  </div>
196
  <span class="LaSignupFormDesc1">{LaSignupFormDesc} {la-url}</span>
197
  </div>
@@ -206,7 +220,7 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
206
  <td class="label"><label for="la-config-button-code">{buttonCodeLabel}:</label></td>
207
  <td class="value">{la-config-button-code}
208
  <input type="hidden" value="{buttonId}" name="buttonId" id="buttonId">
209
- <p class="note"><span>{buttonCodeHelp}</span></p>
210
  </td>
211
  <td class="scope-label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
212
  <td class="value configOptions">
@@ -214,7 +228,7 @@ class Qualityunit_Liveagent_Block_Buttoncode extends Qualityunit_Liveagent_Block
214
  <input type="checkbox" id="configOptionName" value="1" name="configOptionName" {configOptionNameChecked}> {customer} {name}<br />
215
  <input type="checkbox" id="configOptionEmail" value="2" name="configOptionEmail" {configOptionEmailChecked}> {customer} {email}<br />
216
  <input type="checkbox" id="configOptionPhone" value="3" name="configOptionPhone" {configOptionPhoneChecked}> {customer} {phone}<br />
217
- <p class="note" style="margin-top:1em"><span>{configOptionsHelp}</span></p>
218
  </td>
219
  </tr>
220
  <tr>
15
  $this->assignVariable('accountUrlLabel', Mage::helper('adminhtml')->__('Account URL'));
16
  $this->assignVariable('loginLabel', Mage::helper('adminhtml')->__('Login to your account'));
17
  $this->assignVariable('ChangeLabel', Mage::helper('adminhtml')->__('Connect to a different account'));
18
+ $this->assignVariable('buttonCodeHelp', Mage::helper('adminhtml')->__('This is the chat button code which will be automatically placed to your Magento site.<br />Did you know you can manually modify it as well?'));
19
  $this->assignVariable('configOptionsHelp', Mage::helper('adminhtml')->__('If customer is logged in, you can automatically add these to chat.'));
20
  $this->assignVariable('configOptionsTitle', Mage::helper('adminhtml')->__('Additional options'));
21
  $this->assignVariable('customer', Mage::helper('adminhtml')->__('customer'));
41
  $this->assignVariable('saveButtonCodeFlag', Qualityunit_Liveagent_Block_AccountConnect::SAVE_BUTTON_CODE_ACTION_FLAG);
42
  $this->assignVariable('la-url', $settings->getLiveAgentUrl());
43
  $this->assignVariable('loginUrl', $this->getLoginUrl($settings));
44
+ $this->assignVariable('AuthToken', $this->getAuthToken($settings));
45
  $this->assignVariable('ChangeUrl', $this->getUrl('*/*/index', array('key' => $this->getRequest()->get('key'), 'action' => Qualityunit_Liveagent_Block_AccountConnect::CONNECT_ACCOUNT_ACTION_FLAG)));
46
  $this->assignVariable('resetUrl', $this->getUrl('*/*/index', array('key' => $this->getRequest()->get('key'), 'action' => Qualityunit_Liveagent_Block_AccountConnect::RESET_SETTINGS_ACTION_FLAG)));
47
+ //$this->assignVariable('checkMultistore', $this->getUrl('*/system_config/edit/section/liveagent_config'));
48
 
49
  $this->prepareWidgetsBox($settings);
50
 
93
  }
94
  }
95
 
96
+ $buttonIsSet = false;
97
  foreach ($widgetsArray as $widget) {
98
  $result = '<div class="widgetTitle">' . $widget->name . ':</div>';
99
  $result .= '<div class="widgetDisplay"><iframe frameborder="0" id="iFramePreview' . $widget->contactwidgetid . '" width="100%" height="100%" style="background-color: white"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>' . $widget->name . '</title></head><body></body></html></iframe></div>';
125
  $result .= '<div onclick="jQuery(function($) {$.fn.setButton(\'' . $widget->contactwidgetid . '\')})" class="widgetSetButton">{useThisButton}</div>';
126
  }
127
  else {
128
+ $buttonIsSet = true;
129
  $result .= '<span class="inUseLabel">{inUse}</span>';
130
  }
131
 
137
  </script>';
138
  }
139
 
140
+ $notice = '';
141
+ if (!$buttonIsSet) {
142
+ $notice = '<div class="notice">Please choose a button</div>';
143
+ }
144
+
145
+ $this->assignVariable('widgetsHTML', $notice.'<div class="widgetsContainer">' . $widgetsHTML . '</div>');
146
  } catch (Qualityunit_Liveagent_Exception_ConnectFailed $e) {
147
  $this->assignVariable('widgetsHTML', '<div class="widgetsContainer">{errorOccurred}' . $e->getMessage() . "</div>\n");
148
  }
149
  }
150
 
151
  private function getLoginUrl(Qualityunit_Liveagent_Helper_Settings $settings) {
152
+ return $settings->getLiveAgentUrl() . 'agent/index.php';
153
+ }
154
+
155
+ private function getAuthToken(Qualityunit_Liveagent_Helper_Settings $settings) {
156
+ return $settings->getOwnerAuthToken();
157
  }
158
 
159
  protected function getTemplateString() {
160
+ return '<form id="configForm" name="edit_form" action="{saveUrlAction}" method="post">
 
161
  <input name="form_key" type="hidden" value="{formKey}" />
162
  <input name="action" type="hidden" value="{saveButtonCodeFlag}"/>
163
+ <input name="token" id="token" type="hidden" value="{AuthToken}"/>
164
+ <input name="loginUrl" id="loginUrl" type="hidden" value="{loginUrl}" />
165
  <div class="content-header">
166
  <table cellspacing="0">
167
  <tbody><tr>
184
  </td>
185
  <td class="scope-label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
186
  <td class="value" style="text-align: center">
187
+ <div id="loginButton" class="ImLeButtonMain1 buttonBgColor buttonBorderColor createButton" tabindex="0">
188
+ <span class="buttonText">{loginLabel}</span>
189
  </div>
190
  </td>
191
  <td class="scope-label"></td><td></td>
204
  <input onclick="jQuery(function($) {$(\'#configForm\').submit()})" type="checkbox" id="displayInAdmin" value="1" name="displayInAdmin" {displayInAdminChecked}> <label for="la-config-button-options"><strong>{displayInAdminPanel}</strong></label>
205
  </div>
206
  <div class="formFooter">
207
+ <div id="addMoreButtons" class="ImLeButtonMain1 buttonBgColor buttonBorderColor createButton" tabindex="0">
208
+ <span class="buttonText">{addMoreButtons}</span>
209
  </div>
210
  <span class="LaSignupFormDesc1">{LaSignupFormDesc} {la-url}</span>
211
  </div>
220
  <td class="label"><label for="la-config-button-code">{buttonCodeLabel}:</label></td>
221
  <td class="value">{la-config-button-code}
222
  <input type="hidden" value="{buttonId}" name="buttonId" id="buttonId">
223
+ <p class="note" style="width: inherit;">{buttonCodeHelp}</p>
224
  </td>
225
  <td class="scope-label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
226
  <td class="value configOptions">
228
  <input type="checkbox" id="configOptionName" value="1" name="configOptionName" {configOptionNameChecked}> {customer} {name}<br />
229
  <input type="checkbox" id="configOptionEmail" value="2" name="configOptionEmail" {configOptionEmailChecked}> {customer} {email}<br />
230
  <input type="checkbox" id="configOptionPhone" value="3" name="configOptionPhone" {configOptionPhoneChecked}> {customer} {phone}<br />
231
+ <p class="note" style="margin-top:1em;width: inherit;">{configOptionsHelp}</p>
232
  </td>
233
  </tr>
234
  <tr>
app/code/local/Qualityunit/Liveagent/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Qualityunit_Liveagent>
5
- <version>3.2.0</version>
6
  </Qualityunit_Liveagent>
7
  </modules>
8
  <frontend>
@@ -28,8 +28,8 @@
28
  <adminhtml>
29
  <args>
30
  <modules>
31
- <liveagent after="Mage_Adminhtml">Qualityunit_Liveagent_Adminhtml</liveagent>
32
- </modules>
33
  </args>
34
  </adminhtml>
35
  </routers>
@@ -53,6 +53,13 @@
53
  <action>adminhtml/liveagent/index</action>
54
  </accountconnect>
55
  </children>
 
 
 
 
 
 
 
56
  </liveagent>
57
  </menu>
58
  <acl>
@@ -66,17 +73,17 @@
66
  <title>Liveagent Module</title>
67
  <sort_order>10</sort_order>
68
  </Qualityunit_Liveagent>
69
- <system>
70
- <children>
71
- <config>
72
- <children>
73
- <liveagent_config>
74
- <title>LiveAgent multistore config</title>
75
- </liveagent_config>
76
- </children>
77
- </config>
78
- </children>
79
- </system>
80
  </children>
81
  </admin>
82
  </resources>
2
  <config>
3
  <modules>
4
  <Qualityunit_Liveagent>
5
+ <version>3.2.1</version>
6
  </Qualityunit_Liveagent>
7
  </modules>
8
  <frontend>
28
  <adminhtml>
29
  <args>
30
  <modules>
31
+ <liveagent after="Mage_Adminhtml">Qualityunit_Liveagent_Adminhtml</liveagent>
32
+ </modules>
33
  </args>
34
  </adminhtml>
35
  </routers>
53
  <action>adminhtml/liveagent/index</action>
54
  </accountconnect>
55
  </children>
56
+ <children>
57
+ <liveagentconfig module="liveagent" translate="title">
58
+ <title>Multistore config</title>
59
+ <sort_order>1</sort_order>
60
+ <action>adminhtml/system_config/edit/section/liveagent_config</action>
61
+ </liveagentconfig>
62
+ </children>
63
  </liveagent>
64
  </menu>
65
  <acl>
73
  <title>Liveagent Module</title>
74
  <sort_order>10</sort_order>
75
  </Qualityunit_Liveagent>
76
+ <system>
77
+ <children>
78
+ <config>
79
+ <children>
80
+ <liveagent_config>
81
+ <title>LiveAgent multistore config</title>
82
+ </liveagent_config>
83
+ </children>
84
+ </config>
85
+ </children>
86
+ </system>
87
  </children>
88
  </admin>
89
  </resources>
app/etc/modules/Qualityunit_Liveagent.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Qualityunit_Liveagent>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
- <version>3.2.0</version>
8
  </Qualityunit_Liveagent>
9
  </modules>
10
  </config>
4
  <Qualityunit_Liveagent>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
+ <version>3.2.1</version>
8
  </Qualityunit_Liveagent>
9
  </modules>
10
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Liveagent</name>
4
- <version>3.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</license>
7
  <channel>community</channel>
@@ -9,13 +9,13 @@
9
  <summary>LiveAgent plugin integrates well known help desk and live chat software into any Magento installation. No HTML knowledge is required.</summary>
10
  <description>Magento-LiveAgent plugin integrates full featured help desk and live chat software Live Agent into any Magento installation.&#xD;
11
  Start by entering your existing account details or easily create one and then just choose which button you want to use for you shop. You are done in few clicks!</description>
12
- <notes>- API changed for the signup form&#xD;
13
- - settings reset link added&#xD;
14
  - minor design changes</notes>
15
  <authors><author><name>Quality Unit, LLC</name><user>support</user><email>support@qualityunit.com</email></author></authors>
16
- <date>2016-08-12</date>
17
- <time>09:01:37</time>
18
- <contents><target name="magelocal"><dir name="Qualityunit"><dir name="Liveagent"><dir name="Block"><file name="AccountConnect.php" hash="ab7b38b5718bbb3e6e6bde3335123609"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="95b66c729f07519bdf9187407f5394c2"/></dir></dir></dir></dir><file name="Base.php" hash="86155f5e3264655ceb130dab28c405b6"/><file name="Buttoncode.php" hash="43990c94ee2e7747aa29c84978f007c9"/><file name="Signup.php" hash="90bc067a4447aad0f23ee170981db553"/></dir><dir name="Exception"><file name="Base.php" hash="c54d68353f3f7d765baac10f8900af16"/><file name="ConnectFailed.php" hash="af790857c2ee9972eb1dd0df6b90de68"/><file name="ConnectProblem.php" hash="dd2df3be3af51a621b7ec9df1fd5f8fb"/><file name="SignupFailed.php" hash="88fadc5990ec7a6fce5e1feb8c931ffa"/></dir><dir name="Helper"><file name="Account.php" hash="f4b560d1baff04f76f3fb03051e030f8"/><file name="Connect.php" hash="792d5a829bb069c14186665ae587f465"/><file name="Data.php" hash="9bd5c406141e8b7e62d725815bde5d2e"/><file name="Settings.php" hash="9088c0f9fa1a749e39b496a40466b64a"/></dir><dir name="Model"><file name="Buttons.php" hash="3c8e6136df4111c3100919b107ba6726"/><file name="Config.php" hash="715888cbcfbdf2d70805fdccf62a05ae"/><file name="Liveagent.php" hash="2c08986c55f107c7398c8f4e7ba99737"/><dir name="Mysql4"><dir name="Buttons"><file name="Collection.php" hash="64edb5ecfc9b1511ae155f347e9a0e6b"/></dir><file name="Buttons.php" hash="5c2fd7184c1bb88b381ef8440bfe1e4f"/><dir name="Liveagent"><file name="Collection.php" hash="29675fde5a317fdf980a549f40502b8e"/></dir><file name="Liveagent.php" hash="559e305b52289e79f9038aea53a85a48"/><dir name="Settings"><file name="Collection.php" hash="d9dfc6b2abadf95ad6dbdee9f52f9c28"/></dir><file name="Settings.php" hash="cdded3171b84b02ed4ad360dd3cb7b71"/></dir><file name="Settings.php" hash="33d2a37b380c4424f072797a9d6978ce"/><file name="Status.php" hash="4e2f42f52c7cdc51388ce9dee5d2f85a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="LiveagentController.php" hash="a8e68c9e91cc210815cfe0e2ddf897e4"/></dir><file name="IndexController.php" hash="2af5a61bf7319c38c97a48e0f3723598"/></dir><dir name="etc"><file name="config.xml" hash="48cadcea7b7fee0405ac64ec0393655a"/><file name="system.xml" hash="09da588a164356e75136384792e8e749"/></dir><dir name="sql"><dir name="liveagent_setup"><file name="mysql4-install-0.1.0.php" hash="aaf89c3a8e551318bae3891e44c4d06e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="liveagent.xml" hash="5a77968b68e659dc21bdad2605210333"/></dir><dir name="template"><dir name="liveagent"><file name="button.phtml" hash="26ca8ed79a896c5ee6df75c2e84b49ca"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="liveagent.xml" hash="3c222952dbb75507b07569c1250e633f"/></dir><dir name="template"><dir name="liveagent"><file name="button.phtml" hash="a49c660e67b8914889779858295125aa"/><file name="report.phtml" hash="2100c3c18095186bd660c6cb66c00fc5"/><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="4c503765e35eebae737fc38271fc4615"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Qualityunit_Liveagent.xml" hash="74fa70c192338b1efedd61b38a406d3f"/></dir></target><target name="magelocale"><dir name="en_US"><file name="qualityunit_liveagent.csv" hash="ddb1b449beb20afedd1d63abb446fc4e"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="liveagent"><dir name="css"><file name="animation.css" hash="e114422983f975cac20edbe5a12fdb37"/><dir name="fonts"><file name="OpenSans-Bold-webfont.eot" hash="7e78b345bbb56eb154a32396524b5650"/><file name="OpenSans-Bold-webfont.svg" hash="ba40976c12378dfdcd0c0b1b2747421b"/><file name="OpenSans-Bold-webfont.ttf" hash="0b6240e6a9217e44e77bbda8a2ed2bb0"/><file name="OpenSans-Bold-webfont.woff" hash="769a36776804007ab23b7266b22be392"/><file name="OpenSans-Light-webfont.eot" hash="5d5f7deb21a0609f0b12ae5332cfb6b9"/><file name="OpenSans-Light-webfont.svg" hash="93d6578a9051feb87bf857cbb3cabdb7"/><file name="OpenSans-Light-webfont.ttf" hash="4eb5ea0a1bc989d3bfeb9423be53e78f"/><file name="OpenSans-Light-webfont.woff" hash="798bf3bb0819ff94c7c8fd0142f58d22"/><file name="OpenSans-Regular-webfont.eot" hash="3b721cb588d7b323137bd456c237b116"/><file name="OpenSans-Regular-webfont.svg" hash="3b461c91b64d27057676c1a4562b3a15"/><file name="OpenSans-Regular-webfont.ttf" hash="50700928d66c83bc7501ce99690b265a"/><file name="OpenSans-Regular-webfont.woff" hash="9e002ce4035a849d41b9ba83993083d7"/></dir><file name="la-config.css" hash="8606aed8aa15224d003da2ab4228a8dd"/><file name="la-logo.png" hash="331e744a96c4720d1a7583235c3a8245"/><file name="la-tab.png" hash="aa2f9c6e52f8242d0cff65e706252753"/><file name="la_logo.svg" hash="686ec663e568d38de97df58b915f95f6"/><file name="lock.png" hash="7380f52e49851581388b2cd7c8a5d7bd"/><file name="ok_icon.png" hash="e66785de1c506b6f9635d97f35e0c7df"/><file name="report.css" hash="6d75d81d824b4f02db7ab63e595a85cc"/><file name="responsive.css" hash="a3dff048c1feec42f1efc8f066a70a0f"/><file name="style.css" hash="b46a093edc06c5a8bb7b5b929cc32917"/><file name="video.jpg" hash="57d38a4cb802f6009f2f3b0a768d6fc2"/></dir><dir name="js"><file name="crm_lasignup.js" hash="5d9170dd0b3c7a15753f00f4204a8921"/><file name="jquery-1.11.3.min.js" hash="895323ed2f7258af4fae2c738c8aea49"/><file name="jquery-no-conflict.js" hash="644f0006e36a235d2a6df494bed48636"/><file name="jquery.alphanum.js" hash="3610a43bb5a6892f7e1aae03f05582c2"/><file name="lasignup.js" hash="d7f2750d5bd34e71deb4d0d435673aa8"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
- <dependencies><required><php><min>5.2.0</min><max>7.5.0</max></php><extension><name>curl</name><min></min><max></max></extension></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Liveagent</name>
4
+ <version>3.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</license>
7
  <channel>community</channel>
9
  <summary>LiveAgent plugin integrates well known help desk and live chat software into any Magento installation. No HTML knowledge is required.</summary>
10
  <description>Magento-LiveAgent plugin integrates full featured help desk and live chat software Live Agent into any Magento installation.&#xD;
11
  Start by entering your existing account details or easily create one and then just choose which button you want to use for you shop. You are done in few clicks!</description>
12
+ <notes>- multistore config link added to main menu&#xD;
13
+ - new way of login to LiveAgent admin panel&#xD;
14
  - minor design changes</notes>
15
  <authors><author><name>Quality Unit, LLC</name><user>support</user><email>support@qualityunit.com</email></author></authors>
16
+ <date>2017-03-03</date>
17
+ <time>08:04:44</time>
18
+ <contents><target name="magelocal"><dir name="Qualityunit"><dir name="Liveagent"><dir name="Block"><file name="AccountConnect.php" hash="ab7b38b5718bbb3e6e6bde3335123609"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="95b66c729f07519bdf9187407f5394c2"/></dir></dir></dir></dir><file name="Base.php" hash="86155f5e3264655ceb130dab28c405b6"/><file name="Buttoncode.php" hash="03b7abb132b538ef8f829ad98c24c9c8"/><file name="Signup.php" hash="90bc067a4447aad0f23ee170981db553"/></dir><dir name="Exception"><file name="Base.php" hash="c54d68353f3f7d765baac10f8900af16"/><file name="ConnectFailed.php" hash="af790857c2ee9972eb1dd0df6b90de68"/><file name="ConnectProblem.php" hash="dd2df3be3af51a621b7ec9df1fd5f8fb"/><file name="SignupFailed.php" hash="88fadc5990ec7a6fce5e1feb8c931ffa"/></dir><dir name="Helper"><file name="Account.php" hash="f4b560d1baff04f76f3fb03051e030f8"/><file name="Connect.php" hash="792d5a829bb069c14186665ae587f465"/><file name="Data.php" hash="9bd5c406141e8b7e62d725815bde5d2e"/><file name="Settings.php" hash="9088c0f9fa1a749e39b496a40466b64a"/></dir><dir name="Model"><file name="Buttons.php" hash="3c8e6136df4111c3100919b107ba6726"/><file name="Config.php" hash="715888cbcfbdf2d70805fdccf62a05ae"/><file name="Liveagent.php" hash="2c08986c55f107c7398c8f4e7ba99737"/><dir name="Mysql4"><dir name="Buttons"><file name="Collection.php" hash="64edb5ecfc9b1511ae155f347e9a0e6b"/></dir><file name="Buttons.php" hash="5c2fd7184c1bb88b381ef8440bfe1e4f"/><dir name="Liveagent"><file name="Collection.php" hash="29675fde5a317fdf980a549f40502b8e"/></dir><file name="Liveagent.php" hash="559e305b52289e79f9038aea53a85a48"/><dir name="Settings"><file name="Collection.php" hash="d9dfc6b2abadf95ad6dbdee9f52f9c28"/></dir><file name="Settings.php" hash="cdded3171b84b02ed4ad360dd3cb7b71"/></dir><file name="Settings.php" hash="33d2a37b380c4424f072797a9d6978ce"/><file name="Status.php" hash="4e2f42f52c7cdc51388ce9dee5d2f85a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="LiveagentController.php" hash="a8e68c9e91cc210815cfe0e2ddf897e4"/></dir><file name="IndexController.php" hash="2af5a61bf7319c38c97a48e0f3723598"/></dir><dir name="etc"><file name="config.xml" hash="f832b9aaafc33acd92c864162cb9c511"/><file name="system.xml" hash="09da588a164356e75136384792e8e749"/></dir><dir name="sql"><dir name="liveagent_setup"><file name="mysql4-install-0.1.0.php" hash="aaf89c3a8e551318bae3891e44c4d06e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="liveagent.xml" hash="5a77968b68e659dc21bdad2605210333"/></dir><dir name="template"><dir name="liveagent"><file name="button.phtml" hash="26ca8ed79a896c5ee6df75c2e84b49ca"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="liveagent.xml" hash="3c222952dbb75507b07569c1250e633f"/></dir><dir name="template"><dir name="liveagent"><file name="button.phtml" hash="a49c660e67b8914889779858295125aa"/><file name="report.phtml" hash="2100c3c18095186bd660c6cb66c00fc5"/><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="4c503765e35eebae737fc38271fc4615"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Qualityunit_Liveagent.xml" hash="11e3d842c87bc318987bbd0a268d49ab"/></dir></target><target name="magelocale"><dir name="en_US"><file name="qualityunit_liveagent.csv" hash="ddb1b449beb20afedd1d63abb446fc4e"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="liveagent"><dir name="css"><file name="animation.css" hash="e114422983f975cac20edbe5a12fdb37"/><dir name="fonts"><file name="OpenSans-Bold-webfont.eot" hash="7e78b345bbb56eb154a32396524b5650"/><file name="OpenSans-Bold-webfont.svg" hash="ba40976c12378dfdcd0c0b1b2747421b"/><file name="OpenSans-Bold-webfont.ttf" hash="0b6240e6a9217e44e77bbda8a2ed2bb0"/><file name="OpenSans-Bold-webfont.woff" hash="769a36776804007ab23b7266b22be392"/><file name="OpenSans-Light-webfont.eot" hash="5d5f7deb21a0609f0b12ae5332cfb6b9"/><file name="OpenSans-Light-webfont.svg" hash="93d6578a9051feb87bf857cbb3cabdb7"/><file name="OpenSans-Light-webfont.ttf" hash="4eb5ea0a1bc989d3bfeb9423be53e78f"/><file name="OpenSans-Light-webfont.woff" hash="798bf3bb0819ff94c7c8fd0142f58d22"/><file name="OpenSans-Regular-webfont.eot" hash="3b721cb588d7b323137bd456c237b116"/><file name="OpenSans-Regular-webfont.svg" hash="3b461c91b64d27057676c1a4562b3a15"/><file name="OpenSans-Regular-webfont.ttf" hash="50700928d66c83bc7501ce99690b265a"/><file name="OpenSans-Regular-webfont.woff" hash="9e002ce4035a849d41b9ba83993083d7"/></dir><file name="la-config.css" hash="8606aed8aa15224d003da2ab4228a8dd"/><file name="la-logo.png" hash="331e744a96c4720d1a7583235c3a8245"/><file name="la-tab.png" hash="aa2f9c6e52f8242d0cff65e706252753"/><file name="la_logo.svg" hash="686ec663e568d38de97df58b915f95f6"/><file name="lock.png" hash="7380f52e49851581388b2cd7c8a5d7bd"/><file name="ok_icon.png" hash="e66785de1c506b6f9635d97f35e0c7df"/><file name="report.css" hash="6d75d81d824b4f02db7ab63e595a85cc"/><file name="responsive.css" hash="a3dff048c1feec42f1efc8f066a70a0f"/><file name="style.css" hash="f6c9bceb2e4a9f4a4317ef607a1d1d39"/><file name="video.jpg" hash="57d38a4cb802f6009f2f3b0a768d6fc2"/></dir><dir name="js"><file name="crm_lasignup.js" hash="5d9170dd0b3c7a15753f00f4204a8921"/><file name="jquery-1.11.3.min.js" hash="895323ed2f7258af4fae2c738c8aea49"/><file name="jquery-no-conflict.js" hash="644f0006e36a235d2a6df494bed48636"/><file name="jquery.alphanum.js" hash="3610a43bb5a6892f7e1aae03f05582c2"/><file name="lasignup.js" hash="1fc26efdcf585b570506cb3b7d49e018"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
+ <dependencies><required><php><min>5.2.0</min><max>7.5.0</max></php><extension><name>curl</name><min/><max/></extension></required></dependencies>
21
  </package>
skin/adminhtml/default/default/liveagent/css/style.css CHANGED
@@ -349,7 +349,8 @@ h3.head-promo-catalog {background-image: url("la_logo.svg");height: 52px;text-in
349
  .form-list td.label label{width: 240px;}
350
  .form-list p.note {color: grey;}
351
  .inUseLabel {width: 100px;display: block;height: 20px;margin: 3px auto 0px;background: transparent url("ok_icon.png") no-repeat scroll left -1px / 20px 20px;}
352
- .displayInAdminCheckbox {display: block; float: left; clear: both}
 
353
 
354
  #resetLink {text-align: right; font-style: italic; float: right; margin: 0}
355
  #resetLink:hover {cursor:pointer; color:#ea7601}
349
  .form-list td.label label{width: 240px;}
350
  .form-list p.note {color: grey;}
351
  .inUseLabel {width: 100px;display: block;height: 20px;margin: 3px auto 0px;background: transparent url("ok_icon.png") no-repeat scroll left -1px / 20px 20px;}
352
+ .displayInAdminCheckbox {display: block;float: left; clear: both}
353
+ .notice {color: #FF0000;font-size: larger;font-weight: bold;padding: 1em;border: 1px solid #FF0000;margin-bottom: 1em;background-color: #f5dcdc;}
354
 
355
  #resetLink {text-align: right; font-style: italic; float: right; margin: 0}
356
  #resetLink:hover {cursor:pointer; color:#ea7601}
skin/adminhtml/default/default/liveagent/js/lasignup.js CHANGED
@@ -51,6 +51,13 @@ jQuery(function($) {
51
  $('.SaveWidgetCode').show();
52
  }
53
 
 
 
 
 
 
 
 
54
  $('textarea#la-config-button-code').on('change', function() {
55
  $('.SaveWidgetCode').show();
56
  });
@@ -69,4 +76,12 @@ jQuery(function($) {
69
  window.location.href = $('#resetUrl').val();
70
  }
71
  });
 
 
 
 
 
 
 
 
72
  });
51
  $('.SaveWidgetCode').show();
52
  }
53
 
54
+ var redirectToAdmin = function() {
55
+ var redirectForm = '<form method="POST" action="' + $('#loginUrl').val() + '">' +
56
+ '<input type="hidden" name="action" value="login">' +
57
+ '<input type="hidden" name="AuthToken" value="' + $('#token').val() + '"></form>';
58
+ jQuery(redirectForm).appendTo('body').submit();
59
+ }
60
+
61
  $('textarea#la-config-button-code').on('change', function() {
62
  $('.SaveWidgetCode').show();
63
  });
76
  window.location.href = $('#resetUrl').val();
77
  }
78
  });
79
+
80
+ $('#loginButton').on('click', function() {
81
+ redirectToAdmin();
82
+ });
83
+
84
+ $('#addMoreButtons').on('click', function() {
85
+ redirectToAdmin();
86
+ });
87
  });