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.