Giter Site home page Giter Site logo

op-whmcs7's Introduction

Domain Module for WHMCS

The Openprovider WHMCS module integrates conveniently with your Openprovider account, allowing you to automate many domain provisioning and management tasks, such as registration, renewal, deletion, and updates to contact details.

The module keeps domain expiration dates and auto renew settings synchronized between your WHMCS installation and Openprovider account, making sure the correct domains get renewed each day.

Additionally, the module allows you to use the Openprovider API to check for domain availability, increasing performance over the default domain availability check.

Features

  • Domain registrations and transfers
  • Domain updates
  • Domain availability lookup service
  • Domain name spinning service
  • Extended Synchronization of domain data
  • Domain status synchronization reports
  • Renew domains upon transfer completion

Install and configure the Openprovider module

Copy files into the module directories

  • Upload the contents of /modules/registrars/openprovider from this repository to <your WHMCS directory>/modules/registrars/openprovider
  • Upload the contents of /includes/hooks/ to <your WHMCS directory>/includes/hooks
  • If you do not have the file <your WHMCS directory>/resources/domains/additionalfields.php then add the example version from resources/domains/additionalfields.php
    • Otherwise add the following lines to the top of your additionalfields.php file. :
if (function_exists('openprovider_additional_fields'))
    $additionaldomainfields = openprovider_additional_fields();
  • [Optional] Upload <Module directory>/modules/addons/openprovider to <WHMCS directory>/modules/addons

Basic Configurations

  • Navigate to Setup > Products/Services > Domain Registrars and activate Openprovider.

Screenshot_20210203_174612

  1. Enter the credentials for an API user.
  2. Click Save
  3. Navigate to Setup > Products/Services > Domain Pricing and select Openprovider as registrar for the TLD which you want to sell via Openprovider Screenshot_20210203_180350

That's all you need to do to get started selling domains from Openprovider! Additional configurations can be found below.

Optional and Advanced configurations

Import prices

Lookup provider and domain name spinning

  • Click "change" to Choose Openprovider as the lookup provider Screenshot_20210203_180725 Screenshot_20210203_181056

  • Choose "configure" to select namespinning options

Enable premium domains

First Make sure that the currency that you are using to pay Openprovider is configured in Setup > Payments > Currencies (and click on Update Exchange Rate). Otherwise WHMCS will not use premium fee correctly, potentially meaning that your client will pay significantly less for the domain.

  1. Enable Support premium domains
  2. Save Changes.

Allow additional DNS records

If you plan on allowing your end users to edit their own DNS records, and want them to be able to create all record types supported by Openprovider, you can make some modifications to the WHMCS templates as described here:

Allow end users to edit DNSSEC records

  • Upload the contents of <Module directory>/custom-pages to the top level of your WHMCS folder i.e. <your WHMCS directory>/
  • Navigate to the target client profile > domains select the desired domain and under management tools activate "DNS management" ![image-20210203184624766](docs/img/activate DNS management.png)
  • The below option will appear in the domain details page of the chosen domain

Screenshot_20210203_183243

Configure TLDs which don't allow locking (.nl, .be, .eu, .es)

Not all TLDs allow domain locking, but WHMCS assumes that this option is available for all domains. As a result, end users will see a warning "you domain is unlocked" when they visit the domain details page. You can hide this option with the following changes to your template files.

  • Open clientareadomaindetails.tpl in the template you are using and replace
{if $lockstatus eq "unlocked"}

with

{$domainSplit = "."|explode:$domain}
{$domainTld = $domain|replace: $domainSplit.0 : ""}
{if $lockstatus eq "unlocked" && $domainTld != '.eu' && $domainTld != '.nl' && $domainTld != '.be'  && $domainTld != '.es'}

Configure tag management

Set up tag management to send custom emails to the end users of your resellers.

Configure the Openprovider cron sync

If you are concerned that the "out of the box" domain sync included by WHMCS is not sufficient and would like more granular control over domain sync, you can configure the Openprovider sync script.

Decide whether to use Openprovider Auto-renew

Various options exist for managing domain renewals. A detailed explanation of your options can be found here

Custom DNS Templates

  • Create a custom DNS template in the Openprovider control panel (DNS management > Manage DNS templates),
  • Put the name of it in the advanced configuration file and any domain created with the Openprovider nameservers will have a DNS zone automatically created on Openprovider nameservers according to your DNS template.

Troubleshooting

If there are any connectivity issues with Openprovider, or API commands are not working for some reason, the first troubleshooting step should be to look at the API logs. Navigate to Utilities > Logs > Module Logs ​or <WHMCS directory>/admin/systemmodulelog.php​ and you can find the raw API commands being sent and received by your WHMCS modules. The responses should contain some information about how the problem can be solved.

alt text\

FAQ

Common issues and solutions for them can be found here.

op-whmcs7's People

Contributors

coriaweb avatar dependabot[bot] avatar lennarttd avatar mrkoopie avatar sibgatulin-danila avatar soberoctober avatar wmetge avatar wyler-m avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.