Live Chat System

| Extension Name | Live Chat System | Rating |
|
| License | Commercial | Votes | 4 |
| Price | $10.00 | Views | 12943 |
| Developer | straightlight | Request Support |
|
| Date Added | 4 April 2012 | Report extension |
|
| Date Modified | 10 April 2013 | ||
their customers by using a live chat system with OpenCart. This powerful tool also allows
to edit the look and feel of custom templates and CSS; the same methodology as OpenCart.
It also uses multiple languages for online support and relying from staff to customers
according to their language preferences.
| Download Name | Compatibility | Action |
| Live Chat System | v1.5.2.1, v1.5.3.1 | [ Download ] |
This utility allows merchants and their staff members to offer live assistance towards
their customers by using a live chat system with OpenCart. This powerful tool also allows
to edit the look and feel of custom templates and CSS; the same methodology as OpenCart.
It also uses multiple languages for online support and relying from staff to customers
according to their language preferences.
No core files to override, completely VQMod oriented.
[April 5, 2012] - Tips:
To avoid all outsiders to use the client chat outside OpenCart, in webim/client.php file,
find:
loadsettings();
add after:
if (!isset($_COOKIE['language'])) {
die ('Please visit our OpenCart website in order to use our Live Chat system.');
}
[April 4, 2012] - Tips:
An extra tip if people wants to force email addresses for registered users when agents are currently online.
In your webim/chat.php file,
find within the setup_survey function - this line: $page['formname'] = topage($name);
replace with:
if (isset($_SESSION['customer_id'])) {
$name = get_opencart_customer_email($_SESSION['customer_id']);
if (!empty($name)) {
$i = 0;
foreach ($name as $email) {
if ($i == 0) {
$page['formname'] = topage($email);
$page['sessioncustomerid'] = (int)$_SESSION['customer_id'];
}
$i++;
}
}
} else {
$page['formname'] = topage($name);
}
Then, in your webim/libs/operator.php file,
find:
function get_all_groups($link)
add above:
function get_opencart_customer_email($user_id) {
$link = connect();
$name = mysql_query("SELECT `email` FROM `oc_customer` WHERE `customer_id` = '" . (int)$user_id . "'");
return mysql_fetch_array($name);
mysql_close($link);
}
Then, in your webim/styles/default/templates/survey.tpl file,
find:
<tr>
<td class="text">${msg:presurvey.name}</td>
<td><input type="text" name="name" size="50" value="${form:name}" class="username" ${ifnot:showname}disabled="disabled"${endif:showname}/></td>
</tr>
replace with:
${if:sessioncustomerid}
<tr>
<td class="text">${msg:presurvey.name}</td>
<td><input type="text" name="name" size="50" value="${form:name}" class="username" disabled="disabled" /></td>
</tr>
${endif:sessioncustomerid}
${ifnot:formname}
<tr>
<td class="text">${msg:presurvey.name}</td>
<td><input type="text" name="name" size="50" value="${form:name}" class="username" ${ifnot:showname}disabled="disabled"${endif:showname}/></td>
</tr>
${endif:formname}
The default folder mentioned above is just an example. If a different custom template name is being used, use the custom template name instead.
Registered users won't be able to change their email information.
Note: This methodology requires that you install the webim SQL tables into your OC database (with at least different prefixes for safety reasons).













Log in to comment or register here.