mdwebhosting Posted April 3, 2009 Share Posted April 3, 2009 Hi Guys, I currently have a custom field in the client area named "BPAY Reference". The value of this field should be automatically calculated once the account is created based on the client id. Please advise how to do this. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted April 4, 2009 Share Posted April 4, 2009 This can be done using an action hook. When the client signup action hook is run you can calc the code and update it. 0 Quote Link to comment Share on other sites More sharing options...
mdwebhosting Posted April 15, 2009 Author Share Posted April 15, 2009 Hi Guys, I've tried to do this using actionhooks without any success. Below is my simple code. Please advise. function actionhook_ClientSignup($vars) { #This function runs when a new client is added $uid = $vars['ClientID']; mysql_query("INSERT INTO tblcustomfieldsvalues (fieldid, relid, value) VALUES ('3', '".$uid."', '".$uid."')"); } It doesn't even update the BPay reference field with the user ID. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
AussieVoda Posted November 2, 2009 Share Posted November 2, 2009 if you are still having issues, go to visuex.com and Michael should be able to help you, email him at Support@Visuex.com or visit visuex.com or phone him at (866) 915-4147 (USA) i have talked to him about BPay before because i also want to get it to work with WHMCS as i want to get it soon! about the mod and also the ref/account number/customer ID and he might know what to do! Vista International http://MyVistaHosting.com.au 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.