hcaz Posted January 21, 2015 Share Posted January 21, 2015 Hello, I have WHMCS running and it all works fine, I have a load of products setup ect and orders procees okay. I have a script on the server that logges in using the WHMCS API to change the product user and password aswell as a custom feild. It works fine to update the username and password for the product it just does not update the cusom feild, i have even tried it as a seperate api call just for the custom feilds to no avail. Here is the different peices of code i have tried: $postfields3["action"] = "updateclientproduct"; $postfields3["serviceid"] = "88"; //product ID $postfields3["customfield[2]"] = "test"; print_r(sendRequest($postfields3)); //Says it worked successfully $postfields3["action"] = "updateclientproduct"; $postfields3["serviceid"] = "88"; //product ID $postfields3["customfields"] = base64_encode(serialize(array("2"=>"test"))); print_r(sendRequest($postfields3)); //Says it worked successfully I have tried other combinations of different numbers to see if it was just that custom field, as-well as using the field name but nothing works the field just says at its set value. Thanks for any help because i have tried everything i can think of and and at a loss, Zachary 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.