Jump to content

scottcase

Member
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About scottcase

  • Rank
    Member
  1. Hey Mike, I will definitely order this once addons can be ordered that will cut so much time out of my day Scott
  2. Hey Mike, I was wondering if your module includes the ability or order addons like fantastico also Scott
  3. Yes, you need to have your servers ip address activated for live processing at enom. the script uses api's and if your ip is not set for live processing at enom it will not work
  4. correct, this will remove any TLD's you have currently configured
  5. here is an easy way to import your TLD's and pricing directly from your enom reseller account. make sure you have updated your "Retail" pricing at enom. <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); if($_POST[action]=='') { ?> <form method="post"> <input name="action" value="doimport" type="hidden" /> <input name="enU" type="text" />eNom Username<br /> <input name="enP" type="text" />eNom Password<br /> <br /> <input name="Submit1" type="submit" value="submit" /> </form> <? }else{ $url = "http://reseller.enom.com/interface.asp?command=PE_GetRetailPricing&uid={$_POST[enU]}&pw={$_POST[enP]}&responsetype=xml"; $rss = simplexml_load_file($url); //truncate tbldomainpricing mysql_query("truncate table tbldomainpricing"); //remove all TLD data from tblpricing table mysql_query("DELETE FROM `tblpricing` WHERE type='domainregister'"); mysql_query("DELETE FROM `tblpricing` WHERE type='domaintransfer'"); mysql_query("DELETE FROM `tblpricing` WHERE type='domainrenew'"); //now insert eNom Data $i=0; foreach ($rss->pricestructure->tld as $item) { //first insert into tbldomainpricing $query="INSERT INTO `tbldomainpricing` (`id` ,`extension` ,`dnsmanagement` ,`emailforwarding` ,`idprotection` ,`eppcode` ,`autoreg` ,`order`) VALUES (NULL , '." . $item->tld . "', '', '', '', '', 'enom', '$i');"; mysql_query($query); $relid = mysql_insert_id(); //now insert into tblpricing $query="INSERT INTO `tblpricing` (`id` ,`type` ,`currency` ,`relid` ,`msetupfee` ,`qsetupfee` ,`ssetupfee` ,`asetupfee` ,`bsetupfee` ,`tsetupfee` ,`monthly` ,`quarterly` ,`semiannually` ,`annually` ,`biennially` ,`triennially` ) VALUES (NULL , 'domainregister', '1', '$relid', '" . $item->registerprice . "', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')"; mysql_query($query); $query="INSERT INTO `tblpricing` (`id` ,`type` ,`currency` ,`relid` ,`msetupfee` ,`qsetupfee` ,`ssetupfee` ,`asetupfee` ,`bsetupfee` ,`tsetupfee` ,`monthly` ,`quarterly` ,`semiannually` ,`annually` ,`biennially` ,`triennially` ) VALUES (NULL , 'domaintransfer', '1', '$relid', '" . $item->transferprice . "', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')"; mysql_query($query); $query="INSERT INTO `tblpricing` (`id` ,`type` ,`currency` ,`relid` ,`msetupfee` ,`qsetupfee` ,`ssetupfee` ,`asetupfee` ,`bsetupfee` ,`tsetupfee` ,`monthly` ,`quarterly` ,`semiannually` ,`annually` ,`biennially` ,`triennially` ) VALUES (NULL , 'domainrenew', '1', '$relid', '" . $item->renewprice . "', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00')"; mysql_query($query); echo "TLD: ." . $item->tld . " Register: " . $item->registerprice . " Transfer: " . $item->transferprice . " Renew: " . $item->renewprice . " Inserted Into Database<br>"; $i++; } } ?> just add this to a php file, upload it to the whmcs/modules/admin/ directory and access it from utilities -> addon modules. It only inserts pricing for the 1 year option, but that is all that i needed it to do. Feel free to customize it to your needs I have attached a zip file also Scott enom_tld_importer.zip
  6. Hello For some reason the import script is not importing the TLD settings. Any thoughts on how to get my TLD setting from modernbill to WHMCS without having to do them all over again ? Thanks Scott
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated