Jump to content

Accessing Server Information from module_ConfigOptions


BnMcG

Recommended Posts

In my _ConfigOptions method, I need a way of accessing server-specific information (specifically: the hostname) in order to present the user with a list of products available to provision. The way this usually works is the billing platform makes a request to the server, the server returns a list of products, and the billing platform displays a list for the user to pick from.

 

Is this possible using WHMCS? I know I can access server information directly from the database, however the user doesn't have the option to choose a server on the product creation page (as far as I can see). Alternatively, is there a way to execute AJAX on the product creation page? Eg: the user would pick from a list of servers, and then this server would be used to make an AJAX call to get a list of products.

 

Any help is appreciated.

Link to comment
Share on other sites

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