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

You are not logged in.

Announcement

#1 2015-12-15 07:46:09

paavali
Member
Registered: 2015-12-15
Posts: 2

Changing the E-mail -field name

When the chat is offline, you can leave a message with following fields: "Name", "E-mail" and "Your question". How can I change the "E-mail" field name to "Your E-mail"? Thanks!

Offline

#2 2015-12-15 14:05:03

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Changing the E-mail -field name

Hi paavali,
I don't want give wrong information but actually I think you cannot edit this from the admin operator control panel of LHC (Live Helper Chat).

Maybe you can edit language file but here I can't help you because there are a lot of time E-mail world is used.
Sorry,
I can't help with that, maybe remdex can have a solution for this.

You can only (from what I know) create customized additional field on settings > live help configuration > start chat from settings > custom fields (tab).


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2015-12-15 14:30:55

paavali
Member
Registered: 2015-12-15
Posts: 2

Re: Changing the E-mail -field name

I figured out at least a work-around. If anyone else is trying to do something similiar:

Copy the content of design\defaulttheme and past it to design\customtheme (you don't really have to copy the whole content, but hey, why not).

Edit these files (not sure if both are necessary):
design\customtheme\tpl\lhchat\offline_form.tpl
design\customtheme\tpl\lhchat\offline_form_startchat.tpl

Find line:
<label class="control-label"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat','E-mail');?>*</label>

And just add "Your " before the php-code:
<label class="control-label">Your <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat','E-mail');?>*</label>

This is important: "Don't forget to disable cache while developing. Also after you enable cache again, clear it from back office by clicking clear cache." I wasn't aware of that at first and couldn't make it work, this helped: https://livehelperchat.com/article/view/59

Offline

#4 2015-12-15 15:16:17

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Changing the E-mail -field name

Thank you for sharing the solution ^_^  cool
Great job!


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer