Jump to content

Single Product, Multiple locations


Todesengel

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 13 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use