Jump to content

Domain addons


wdele

Recommended Posts

Hi,

 

I offer hosting and of course optionally a domain name. So far, that works but there's just one problem.

 

When a client buys hosting + domain name, he doesn't need the 'DNS management' addon. However, it is shown as an addon when buying a domain name in WHMCS and that confuses clients.

 

When a client buys a domain name but NOT hosting, he does need the 'DNS management' addon. So in that case, it should be shown.

 

How can I achieve this?

 

Thanks! :)

Link to comment
Share on other sites

it might depend on which order form you're using, but it would generally be in configuredomains.tpl

 

{if $domain.dnsmanagement}

I haven't tried this, but the following may work...

 

{if $domain.dnsmanagement and !$domain.hosting}

so if DNS Management is enabled for a tld, but no hosting is chosen (e.g., it's just a domain), it should show... if hosting has been added for the domain, then the DNS addon shouldn't be shown.

Link to comment
Share on other sites

it might depend on which order form you're using, but it would generally be in configuredomains.tpl

 

{if $domain.dnsmanagement}

I haven't tried this, but the following may work...

 

{if $domain.dnsmanagement and !$domain.hosting}

so if DNS Management is enabled for a tld, but no hosting is chosen (e.g., it's just a domain), it should show... if hosting has been added for the domain, then the DNS addon shouldn't be shown.

 

Thanks, that works!

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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