xtmhost Posted February 8, 2016 Share Posted February 8, 2016 This is not a direct integration with WHMCS so please remove/advise if it's not allowed here. I given the lovely task of setting domain pricing in ENOM and then adding them to WHMCS.. I found the process slow and annoying and couldn't really find any quicker ways to do it without spending $30+ on an addon so I have decided to write my own.. now I am sharing it here for free. github.com/Goodbytesuk/enom-domain-reseller-price-grabber This script will connect to your WHMCS database, grab the TLDS you have added to the 'Domain Pricing' section in WHMCS Settings, it will then grab the domain pricing set in ENOM.. ONLY for the domains it has found in Domain Pricing. It is important to note that this will delete ALL pricing already set and reset prices based on what is pulled from ENOM. I should also note this does not pull in all domains, it only pulls in domains already added in 'Domain Pricing'.. It is very quick to add TLDs in WHMCS.. just don't bother with the pricing.. the script does the rest. This was a better workflow for me than having the script add all domains for me, something i've seen older scripts do. Hopefully it is helpful to some of you. Full instructions on the github page. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted February 9, 2016 Share Posted February 9, 2016 you may improve this query: $stmtDelete = $db->prepare("DELETE FROM `tblpricing` WHERE `type` IN ('domainregister', 'domainrenew', 'domaintransfer')"); if you are sure about deleting exist records, at least delete the tlds linked to enom 0 Quote Link to comment Share on other sites More sharing options...
xtmhost Posted February 9, 2016 Author Share Posted February 9, 2016 you may improve this query: $stmtDelete = $db->prepare("DELETE FROM `tblpricing` WHERE `type` IN ('domainregister', 'domainrenew', 'domaintransfer')"); if you are sure about deleting exist records, at least delete the tlds linked to enom Sorry I am not following, how can it be improved? 0 Quote Link to comment Share on other sites More sharing options...
PascM Posted April 21, 2016 Share Posted April 21, 2016 I guess that you should only delete the TLD's that can be found in "Domain Pricing" and point to enom reseller account and not on any other Registrar 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.