Jump to content

Params within a AdminCustomButtonArray


ptomter

Recommended Posts

  • 2 weeks later...

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"]

 

Link to comment
Share on other sites

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated