anna666 Posted August 3, 2015 Share Posted August 3, 2015 Hooks:PreDomainRegister - - - Updated - - - hi i need to create Hooks:PreDomainRegister but i dont know how? and i read http://docs.whmcs.com/Hooks:PreDomainRegister but i dont know how to use php commands. is there any body to help me with? regrads - - - Updated - - - hi i need to create Hooks:PreDomainRegister but i dont know how? and i read http://docs.whmcs.com/Hooks:PreDomainRegister but i dont know how to use php commands. is there any body to help me with? regrads 0 Quote Link to comment Share on other sites More sharing options...
anna666 Posted August 3, 2015 Author Share Posted August 3, 2015 i need to use the default registrant contact to onlinenic automatically when register a new domain in whmcs. i asked whmcs they told you can use PreDomainRegister hook. but i dont know how to use php comands! i dont know php! i just need to change the registrant info. after sei tried this code: <?php function hook_registrant($string) { <data name=”r_name”>nam</data> <data name=”r_org”>name</data> <data name=”r_country”>our co</data> <data name=”r_province”>name</data> <data name=”r_city”>city</data> <data name=”r_street”>our add.</data> <data name=”r_postalcode”>our pc</data> <data name=”r_voice”>our phon</data> <data name=”r_fax”>our fax</data> <data name=”r_email”>our email</data> $string = str_replace("name","$string","r_name") add_hook("Registrant",1,"hook_registrant"); /* (isset($params['org']) && $params['org']!='') { $commonStr .= $params['org']; } */ add_hook("registrant",1,"hook_registrant"); ?> will this code correct and work? please tell me the exact code 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.