Todesengel Posted March 10, 2016 Share Posted March 10, 2016 So I have a dilemma. I offer Mumble services on my master server, which is a windows machine. The mumble product id for windows is 19. WHMCS sends the api, to provision product 19 and pass my location variable to it. Well, my other location is on a Linux machine and the product id is 20... So if I purchase mumble through WHMCS it tries to provision Windows mumble, on a linux server which does not work obviously. Link to comment Share on other sites More sharing options...
xai Posted March 10, 2016 Share Posted March 10, 2016 Hi, http://help.tcadmin.com/TCAdmin2_advanced_module_for_WHMCS Go to: "The following example sends a different game id depending the location selected by the client. You must have a custom field named Location." Link to comment Share on other sites More sharing options...
Todesengel Posted March 10, 2016 Author Share Posted March 10, 2016 Hi, http://help.tcadmin.com/TCAdmin2_advanced_module_for_WHMCS Go to: "The following example sends a different game id depending the location selected by the client. You must have a custom field named Location." Thats what I was missing! Thanks!! <?php include('default_values.php'); switch ($params["customfields"]["Location"]) { case "1": $billing_api_values["game_id"] = 11; break; case "2": $billing_api_values["game_id"] = 12; break; } ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.