JimmiSticks Posted August 13, 2019 Share Posted August 13, 2019 When logged in as a user if i go to Domains > My Domains > Click on 'my domain name' to manage it > Click Get EPP Code. I see The EPP Code for your domain is: xxxxxxx How can I can change this line of text to read Please contact us to retrieve your EPP code 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted August 13, 2019 Share Posted August 13, 2019 I'll move this to the developer board @jimmisticks the button get EPP code pulls direct from the registrar so you'd need a customisation to do this 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 13, 2019 Share Posted August 13, 2019 (edited) 14 hours ago, JimmiSticks said: How can I can change this line of text to read Please contact us to retrieve your EPP code if you're going to have the output in the one language, then edit the clientareadomaingetepp.tpl and change... {include file="$template/includes/alert.tpl" type="warning" msg=$LANG.domaingeteppcodeis|cat:" $eppcode"} to... {include file="$template/includes/alert.tpl" type="warning" msg="Please contact us to retrieve your EPP code"} if it needs to be in the client's language, then you'd need to use Language Overrides on the LANG.domaingeteppcodeis string. you could even use Language Overrides on the {$LANG.domaingeteppcodeexplanation} string, append your text to the end of that string and remove the entire {if} block from the template. Edited August 13, 2019 by brian! 2 Quote Link to comment Share on other sites More sharing options...
Remitur Posted August 14, 2019 Share Posted August 14, 2019 You can also create a hook using ClientAreaPageDomainEPPCode : https://developers.whmcs.com/hooks-reference/client-area-interface/#clientareapagedomaineppcode 1 Quote Link to comment Share on other sites More sharing options...
JimmiSticks Posted August 14, 2019 Author Share Posted August 14, 2019 On 13/08/2019 at 8:39 PM, brian! said: if you're going to have the output in the one language, then edit the clientareadomaingetepp.tpl and change... {include file="$template/includes/alert.tpl" type="warning" msg=$LANG.domaingeteppcodeis|cat:" $eppcode"} to... {include file="$template/includes/alert.tpl" type="warning" msg="Please contact us to retrieve your EPP code"} if it needs to be in the client's language, then you'd need to use Language Overrides on the LANG.domaingeteppcodeis string. you could even use Language Overrides on the {$LANG.domaingeteppcodeexplanation} string, append your text to the end of that string and remove the entire {if} block from the template. Champion! Thank you it works a treat :) 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 15, 2019 Share Posted August 15, 2019 On 14/08/2019 at 12:39, Remitur said: You can also create a hook using ClientAreaPageDomainEPPCode : https://developers.whmcs.com/hooks-reference/client-area-interface/#clientareapagedomaineppcode true - theoretically you could null the eppcode value and change the language string in the same hook... I thought of nulling the value with a hook yesterday, but it never occurred to me about the language string until you mentioned that specific hook. 🙄 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.