Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2014-05-28 09:53:10

John
Member
Registered: 2013-09-23
Posts: 11

Custom fields in Customer chat page

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


https://groups.google.com/forum/#!topic … C1ZhrxfFYg

Offline

#2 2014-05-28 10:01:35

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Custom fields in Customer chat page

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 smile


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

#3 2014-05-28 10:04:10

John
Member
Registered: 2013-09-23
Posts: 11

Re: Custom fields in Customer chat page

Thank you Remi for a super fast reply.
I'll go check the link you gave me.
Thank you again.

Offline

#4 2014-10-24 17:39:24

delbono72
Member
Registered: 2014-10-24
Posts: 11

Re: Custom fields in Customer chat page

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

#5 2014-10-25 05:56:14

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Custom fields in Customer chat page

Then you define variables in javascript they appear automatically in chat form. you do not have to edit any templates.

Offline

Board footer