Jump to content
JimmiSticks

EPP Code Modification

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Posted (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 by brian!

Share this post


Link to post
Share on other sites
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 :)

Share this post


Link to post
Share on other sites
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. 🙄

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated