Jump to content

Allowing Domain Registration on only certain products


Recommended Posts

Hello Everyone,


We are currently setting up an integration with wordpress and I am pretty much there bar one thing that I can't seem to get my head around.


I have 2 products, a free product and a paid for product. All my customers will signup for a free product first and then upgrade to the paid product after 14 days.


What I need to happen is when a customer signs up for the free product, they only have the option to choose a subdomain but when they upgrade to the paid account they then can pick a domain to register as well. I don't want free users purchasing a domain.


The guys over at support suggested using this hook https://developers.whmcs.com/hooks-reference/shopping-cart/#shoppingcartvalidatecheckout

I am new to whmcs and hooks so not sure where to start or how hooks even work. I have read up on the documentation and am still unclear.


Is anyone around able to help me get a hook sorted so that if they try and register a domain on a free package it returns a "friendly" error. A better alternative would be to not display the domain register bit when signing for a free account and only show it when signing up for a paid account.


Any Help Appreciated.


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.

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