Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Hi, can you tell me how to add a new field (theme) to my offline widget?
I add input in: /chat/lhc_web/design/defaulttheme/tpl/lhchat/offline_form.tpl.php
And change $mail->Body in: /chat/lhc_web/lib/core/lhchat/lhchatmail.php
$mail->Body = str_replace(array('{Theme}','{phone}','{name}','{email}','{message}','{additional_data}','{url_request}','{ip}','{department}','{country}','{city}','{prefillchat}'), array($chat->Theme,$chat->phone,$chat->nick,$chat->email,$inputData->question,$additional_data,(isset($_POST['URLRefer']) ? $_POST['URLRefer'] : ''),erLhcoreClassIPDetect::getIP(),(string)$chat->department,$chat->country_name,$chat->city,$prefillchat), $sendMail->content);
Can you tell me what I'm doing wrong?
Offline
it won't work like that and to explain it just would take just to long. You will have just analyse current code...
Offline
Than if you can please just guide me. Tell me with files are responsible for receiving form fields.
Offline
As i told, you will have to figure out yourself. In general - read documentation. I won't solve your problems for you
Offline
I solved my problem
Offline