ravi.webkuteer Posted January 25, 2015 Share Posted January 25, 2015 Hi We're developing a customized application in our domain. Here, I want to validate WHMCS customfields with database values. how can we do that? My requirement is as below : I've created 2 custom fields i.e., Sponsor ID and PlacedUnder in WHMCS. these are displaying in Registration form. Now, I need to validate them with existing database values. And how these customfields are linked with Domain ? Because I'm taking domain as sponsor. Thanks in advance guys 0 Quote Link to comment Share on other sites More sharing options...
drama17 Posted March 19, 2015 Share Posted March 19, 2015 Need to do the same! Any help? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted March 20, 2015 Share Posted March 20, 2015 With Hooks:ClientDetailsValidation. Alternatively via API with a 3rd party software. For me the best option is the second even if of course it's more complicated but it gives way better results! I finally get rid of "dirty" data from clients with this. 0 Quote Link to comment Share on other sites More sharing options...
drama17 Posted March 23, 2015 Share Posted March 23, 2015 thanks for your reply!! I finally able to do this hook.. but have one problem: hook works fine in client area, but don't starting in admin area (when I creatin client account in admin area). Can't understend why so:| In documentation it is written: This is run when before adding a client or updating a client through the Admin or Client area Couldn't find any solution in google or on this forum Here is some logs Client area registration: Created Client client Klient - User ID: 145 Hooks Debug: Hook Completed - Returned False Ok - new user will be created uid=drama18,ou=Users,dc=domainless,dc=local ----------------------------------------- drama18 Hooks Debug: Hook Point ClientDetailsValidation - Calling Hook Function hook_validate Admin area: Created Client val2 Karlov - User ID: 144 Hooks Debug: Hook Defined for Point: ClientDelete - Priority: 1 - Function Name: delete_ldap_account 0 Quote Link to comment Share on other sites More sharing options...
drama17 Posted March 26, 2015 Share Posted March 26, 2015 Any help? 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.