Under
modules/admin/views/Signup_2_OrderForm.php
The Section that Starts around Line 219
//Add Domain Regisration Length
//Get all prices for years for this tld
$tld = substr(strstr($this->domain, '.'),1);
$sqlGetTLDPrices = "SELECT price, period, transferprice, renewal FROM tld WHERE name=? ORDER BY period ASC";
$tldResult = $this->db->query($sqlGetTLDPrices, $tld);
$bolFirst=true;
while(list($tTLDPrice,$tPeriod,$tTransferPrice, $tRenewal) = $tldResult->fetch()) {
(This is what I added) // added for free domain
if ($_REQUEST['paymentterm'] == 12 && $tPeriod == 1 && ($_REQUEST['package'] == 14 || $_REQUEST
['package'] == 15|| $_REQUEST['package'] == 16)&& ($tld == com || $tld == net || $tld == biz || $tld==info || $tld == org || $tld == us || $tld == biz)) {
$tTLDPrice = 0;
}
//end of free domain
if ($bolFirst) {
$selDomainPrice = $tTLDPrice;
}
if ($tPeriod==1) {
$strYear = $this->lang("Year");
} else {
$strYear = $this->lang("Years");
}
//Format Price
Make sure to change the package numbers to reflect the ones that you have. Works great in all the CE versions.
modules/admin/views/Signup_2_OrderForm.php
The Section that Starts around Line 219
//Add Domain Regisration Length
//Get all prices for years for this tld
$tld = substr(strstr($this->domain, '.'),1);
$sqlGetTLDPrices = "SELECT price, period, transferprice, renewal FROM tld WHERE name=? ORDER BY period ASC";
$tldResult = $this->db->query($sqlGetTLDPrices, $tld);
$bolFirst=true;
while(list($tTLDPrice,$tPeriod,$tTransferPrice, $tRenewal) = $tldResult->fetch()) {
(This is what I added) // added for free domain
if ($_REQUEST['paymentterm'] == 12 && $tPeriod == 1 && ($_REQUEST['package'] == 14 || $_REQUEST
['package'] == 15|| $_REQUEST['package'] == 16)&& ($tld == com || $tld == net || $tld == biz || $tld==info || $tld == org || $tld == us || $tld == biz)) {
$tTLDPrice = 0;
}
//end of free domain
if ($bolFirst) {
$selDomainPrice = $tTLDPrice;
}
if ($tPeriod==1) {
$strYear = $this->lang("Year");
} else {
$strYear = $this->lang("Years");
}
//Format Price
Make sure to change the package numbers to reflect the ones that you have. Works great in all the CE versions.