Question
How to synchronize a domain that has been created in RCP (Reseller Control Panel) with WHMCS?
Answer
NB: This article assumes the Openprovider domain registrar module has been already configured. Information about the installation can be found in the repository.
- Login to the WHMCS Admin area and navigate to: Orders > Add New Order.
Note: You can also click Add New Order in the client’s profile’s Summary tab.
- Select the client (search name or select from drop down list). For steps to create a new client, see Add a Client.
- Select a payment method.
- Click Create Custom Promo and create a 100% non-recurring discount (this ensures neither the admin nor the client is going to be charged)
NB: Creating custom promotions requires the Use Any Promotion Code on Order and Create/Edit Promotions permissions (Configuration > System Settings > Administrator Roles & Permissions). - Set order status to 'Pending'.
- Deselect Order Confirmation, Generate Invoice, and Send Email.
- Under Domain Registration click Registration/Transfer and fill in all the relevant fields.
Important: When ordering domains via the Admin Area, the system does not look up the domain’s availability or whether it is a premium domain. For premium domains, log in as the account owner and order them via the Client Area. - Click Submit Order.
- Accept the order but don't assign it to a Registrar! This will result in billing charges.
- Find the domain under the client you have assigned it to and select Openprovider as the registrar. Save the changes.
- Run the domain sync cron** to sync the Expiry Date automatically.
php -q /path-to/whmcs/crons/cron.php do -vvv --DomainStatusSync
** Note: If you have hundreds of domains in your WHMCS installation, it is recommended that you manually update the Expiry and due dates in WHMCS for the imported domain as the WHMCS cron will only sync 50 domains during each run.
Note: WHMCS official documentation for adding/importing an existing domain can be found here.