This is the "better way" if editing structure.pdt
<?php if($system_company->id == "1") { ?>
.. your code here ..
<?php } ?>
Just change the ID "1" to your company ID. Then you don't have to do the hostname validation yourself, it'll be done based on the company.
You can do that in your blesta installation
English Version : https://blesta-addons.com/order/main/packages/subscription/?group_id=7
French Version : https://blesta-addons.com/fr/order/main/packages/subscription/?group_id=7
Note the Plugin is not providing the languages translation . you should download them from blesta website .
We are revisiting this, and I plan to spend some time to more fully spec out the task. No eta, but we know this needs to get done. It's not going to be as fully featured as some standalone affiliate systems, but it should get the job done.
You could create a template for each company, then edit each template. Or add some PHP similar to the following:
<?PHP
$host = $_SERVER['HTTP_HOST'];
if ($host == "YOURCOMPANYBLESTAURL"){
echo 'YOUR CODE';
} elseif ($host == "YOURCOMPANYBLESTAURL"){
echo 'YOUR CODE';
}
?>
I'm sure there is a better way than the above but it works for us with our live chat.
all the world are agreed in this subject. Domains are services and should remain as services. how it should displayed and how the order form should treated is another story.
i think you should first search for a software that do this like virtual datacenter, something like DCI Manager, NOC .... ect, then make a module to interact with their API .