Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
Hi again,
I just wanna ask about adding new fields in the customer chat page. I already added new inputs in the view but i can't get it to save into the database
I already edited following php files:
\modules\lhchat\chatwidget.php
\modules\lhchat\erlhcoreclassmodelchat.php
\pos\lhchat\erlhcoreclassmodelchat.php
\lib\core\lhchat\lhchatvalidator.php
and some other more can't remember.
Can you help me sir? What files should I be editing ?
Thanks in advance
Offline
Hi,
You do not need to edit kernel to have new fields, you can just use
http://livehelperchat.com/pre-filling-form-fields-and-adding-custom-fields-140a.html
Perhaps you have missed model fileThere you have to edit getState method.
In general you have to edit
a. pos file
b. model file and edit getState there
That's all.
Offline
Thank you Remi for a super fast reply.
I'll go check the link you gave me.
Thank you again.
Offline
Hello,
I am afraid I could not understand your reply Remi.
You suggest http://livehelperchat.com/pre-filling-f … -140a.html
But there I see only JS mods.
I managed to edit pos and model file.
But then I had to override the
tpl/lhchat/readoperatormessage.tpl.php
But I see also the file
design/defaulttheme/tpl/lhchat/part/user_variables.tpl.php
But do not know where to define custom variables..
Thanks
Offline
Then you define variables in javascript they appear automatically in chat form. you do not have to edit any templates.
Offline
Pages: 1