Remitur Posted January 15, 2018 Share Posted January 15, 2018 For a Registrar module, I need in client area a custom tpl, but only for domains gained to that registrar... i.e.: I need that, for domains gained to myerg, clientareadomaincontactinfo.tpl will be custom; for any other domain, it will be standard Does exist any way to do it, other than inserting a lot of difficult and far-from-error-prof i.e., instead of inserting: {if $registrar != "myreg"} [...] {else} [...] {/if} having WHMCS somehow using a customclientareadomaincontactinfo.tpl instead of clientareadomaincontactinfo.tpl ? Link to comment Share on other sites More sharing options...
Remitur Posted January 16, 2018 Author Share Posted January 16, 2018 (edited) Here I'm again, to answer to my own question... RTFM is always a great idea: I found there's a ready solution by WHMCS, which allows the ovverride of .tpl files. So, if you put your own custom .tpl file in a certain path bound to your module, and this .tpl will override the standard tpl https://docs.whmcs.com/Working_with_Module_Templates A great thing: I need only to discover why I'm not able to make it working... Edited January 16, 2018 by Remitur Link to comment Share on other sites More sharing options...
Recommended Posts