Jump to content

Allow free Domain DNS without invoice


JelleG

Recommended Posts

Hi,

 

We want to offer free DNS Management inside the Client Area, that are influance the DNS settings by our registrar.

But by default this option is not enabled by WHMCS and when it is enabled it creates an invoice for $0,00.

 

So I would like to solve this.

 

1:

The best solution will be, to enable DNS Management by default, when a new domain is registered.

This should also not create an invoice, because we offer it for free.

 

Is this something I can achieve by an action hook? And if so, how should that action hook look like.

 

2:

The other option that is possible, but that is not a very nice way, is to disable the invoice when enabling the DNS management inside the client area.

So when a client use the "Buy this option for $0,00" inside the domaindetail page, it should only enable the DNS management and should not create an invoice for this.

 

How can I solve this issue?

Link to comment
Share on other sites

We want to offer free DNS Management inside the Client Area, that are influance the DNS settings by our registrar.

But by default this option is not enabled by WHMCS and when it is enabled it creates an invoice for $0,00.

 

So I would like to solve this.

 

1:

The best solution will be, to enable DNS Management by default, when a new domain is registered.

This should also not create an invoice, because we offer it for free.

i've been racking my brain for half an hour trying to remember the thread where i'd answered a similar question... eventually it came to me:

 

https://forum.whmcs.com/showthread.php?117126-Cart-workflow-for-buying-domain-addons-after-purchase-only

 

Is this something I can achieve by an action hook? And if so, how should that action hook look like.

frankly, it's probably easier to follow the thread above - either pass it as a hidden field, or tick the checkbox by default by editing the template.

 

they'd still be invoiced for it, but it will just be another item in the invoice generated for the domain registration, so not a problem (I assume!).

 

2:

The other option that is possible, but that is not a very nice way, is to disable the invoice when enabling the DNS management inside the client area.

So when a client use the "Buy this option for $0,00" inside the domaindetail page, it should only enable the DNS management and should not create an invoice for this.

the problem with that is I think it's the invoice creation and, more specifically, it's subsequently being marked as paid, that triggers the enabling of DNSM in the client area.

 

if it were me, what i'd be tempted to do would be to edit the template as above - that takes care of new customers.... and then run a SQL query to update the database setting for existing customers - that should enable the DNSM option in the client area (if allowed by the registrar) without triggering an invoice to the client.

 

https://forum.whmcs.com/showthread.php?104227-DNS-management-to-all-domains

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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