ptomter Posted November 22, 2019 Share Posted November 22, 2019 I tried use module params (https://developers.whmcs.com/domain-registrars/module-parameters/) within adminCustomButtonArray but cant get this to work. Any suggestion, or is it out of scope in whmcs where the params should work? Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
ptomter Posted December 1, 2019 Author Share Posted December 1, 2019 Anybody? 0 Quote Link to comment Share on other sites More sharing options...
ptomter Posted December 1, 2019 Author Share Posted December 1, 2019 Ok, first of all thanks to Lawrence and Joshua in support that pointed me in the right direction. As I suspected the adminCustomButtonArray is not "intended" for registrar modules but rather provision modules and the parameters that are available is following. https://developers.whmcs.com/provisioning-modules/module-parameters/ To get access to the parameters that I wanted I had to use DB interaction - https://developers.whmcs.com/advanced/db-interaction/ this way I got access to the params https://classdocs.whmcs.com/7.8/WHMCS/User/Client.html I used the userid from as this way was the easiest way to get information on the custmer the services was belonging to. Hope this help others as well when developing. use WHMCS\Database\Capsule; use WHMCS\User\Client; $client = Client::find($params["userid"]); $client["firstname"] $client["companyname"] 1 Quote Link to comment Share on other sites More sharing options...
PapaKai Posted February 26 Share Posted February 26 it is available to registrar modules as well since a longer while. 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.