Latest Version : 5.0.9
Download Module for use with PHP 7.4 : Here
Download Module for use with PHP 8.1 : Here
Installation Instructions:
1. Download the domainsDotCOZA WHMCS module provided in the link above.
2. Unzip the domainsDotCOZA.zip and copy the domainsDotCOZA folder into modules/registrars/
3. Set the permissions on the modules/registrars/domainsDotCOZA folder and all it’s contents to CHMOD 755
4. Rename “/modules/registrars/domainsDotCOZA/tools/config_defaults.php” to config.php.
– Edit the “$adminUser” variable in the config.php to be an administrator username that has permissions to the local WHMCS API
5. Navigate in the WHMCS Admin Area to Settings > System Settings > Domain Registrars
6. Click on Configure for the DomainsDotCOZA Module and you will be presented with the following screen.
Full description of available options:
- key : This your domains reseller API key which enables the module to work.
- Premium DNS Service : This if you do not have your own nameservers you can utlize our redundant nameservers absolutely free.
- Force Premium DNS : This option will force a customer to use PremiumDNS no matter what nameservers they enter when they register a domain (not recommended)
- Allow .ZA Glue : This allows your customers to create nameserver Glue or Host records for their domain
- Debugging : Enable this option if you would like to debug a problem with the module (disabled by default)
- Monitor Transfers In : Allow our module to monitor incoming domain transfers in order to process the domains in WHMCS.
- Monitor Transfers Out : Allow our module to monitor outgoing domain transfers in order to process the domains in WHMCS.
- Process Transfers Out : This option instructs our module on what it should do with a domain when a domain is transferred out of WHMCS. The options here are to delete the domain from WHMCS or to mark the domain as cancelled.
- Monitor Domain Deletions : Allow our module to monitor when a domain is deleted at the registry.
- Process Domain Deletions : This options instructs our module on what it should do when a domain is deleted at the registry. The options here are to delete the domain from WHMCS or to mark the domain as cancelled.
- Cancel Renew Invoices : Allow our module to cancel a domain renewal invoice when a domain is deleted from the registry.
- Monitor Domain Redemptions : Allow our module to monitor when a domain goes into redemption.
- .ZA Redemption Fee : This is the fee you would like added to a domain renewal invoice once a domain goes into redemption. This fee is in addition to the normal renewal fee you charge your customers.
- Domain Redemption Template : The name of the domain redemption email template which will be used when sending an email notification to the customer.
- Notify Domain Expiry : Allow our module to notify the customer when their domain is suspended or expires.
- Domain Expired Template : The name of the domain expired email template which will be used when sending an email notification to the customer.
- Domain Expired Suspended Template : The name of the domain expired email template which will be used when sending an email notification to the customer.
- Notify Successful Transfers In : Allow our module to notify the customer when their domain successfully transfers in.
- Transfer In Template : The name of the successful domain transfer in email template which will be used when sending an email notification to the customer.
- Notify Successful Transfer Out : Allow our module to notify the customer when their domain successfully transfers out.
- Transfer Out Template : The name of the successful domain transfer out email template which will be used when sending an email notification to the customer.
- Notify Failed Transfer In : Allow our module to notify the customer when their incoming domain transfer fails.
- Failed Transfer Template : The name of the failed domain transfer email template which will be used when sending an email notification to the customer.
- Notify Not Eligible Transfers : Allow our module to notify the customer when their domain transfer fails due to not being eligible for transfer.
- Not Eligible Template : The name of the not eligible domain transfer email template which will be used when sending an email notification to the customer.
- Notify on Domain Deleteion : Allow our module to notify the customer when their domain is deleted at the registry.
- Domain Deletion Template : The name of the domain deletion email template which will be used when sending an email notification to the customer.
7. Enter your Domains Reseller API key into the key text box.
– Select / Deselect the configuration options you would like and click the Save button.
8. Run the installation/upgrade script by going to EXAMPLE-www.your-website-address.com/modules/registrars/domainsDotCOZA/install.php
– Replace the your-website-address.com with your actual website address.
– Delete the /modules/registrars/domainsDotCOZA/install.php script after you have run this.
– This script will check and install all required email templates – once complete you can tweak the email templates in “Setup => Email Templates”
9. Update your domainDotCOZA scheduled crons.
(Every 15 minutes) : /usr/bin/php-cli </path/to/your/whmcs>/modules/registrars/domainsDotCOZA/tools/domains_sync.php –poll &> /dev/null
(Every 12 hours) : /usr/bin/php-cli </path/to/your/whmcs>/modules/registrars/domainsDotCOZA/tools/domains_sync.php –sync &> /dev/null
– This Knowledgebase Article explains how to setup a scheduled cron in cPanel if your WHMCS is hosted on cPanel.
– Note : Please ensure the correct location is used for your scheduled crons, please do not attempt to use the above without editing it first with the right location.
– Remove the scheduled cron for the pending_transfers.php script as this is no longer used and has been folded into the “–poll” call above.
10. Navigate to Setup > Products/Services > Domain Pricing
– Setup the TLD to use the DomainsDotCOZA Registrar module.
– DNS Management can be enabled if you have selected the Premium DNS option in 6-7 or, if you run any form of custom DNS management which requires this option.
11. Create the file whois.json in /resources/domains/ (or edit it if it already exists).
– Copy the contents from this URL https://www.domains.co.za/whmcs-plugin/whois.json and paste it into the whois.json file and save it:
– (The Lookup Provider in WHMCS needs to be set to Standard WHOIS)
Once tasks 1 to 11 have been completed, the module has been installed successfully.