Jump to content

Where to hook into domain checker


prradox

Recommended Posts

I want to streamline the process of ordering a new domain from my website to achieve the following:

1. Use POST variables so I can easily send the request from my website to WHMCS

2. in the WHMCS cart page, check if a domain is available

3. *IF* the domain is *NOT* available, remain at the result cart.php page

3b. *IF* the domain *IS* available, automatically add it to the cart with a 1 year registration plan and then redirect the user to /cart.php?a=view screen

 

So far, I have found a way to have the 1 year automatically picked and the user directed to the domain configuration page, but this bypasses the domain checker which is not acceptable as it would falsely imply a user can register a domain that is unavailable.  I can alternately use POST variable to send the desired domain to the checker, but the user then has to manually click add to cart, then checkout, then selection options, etc, which is what I'm trying to avoid.

 

Is there any way to achieve the steps I outlined above?  I tried adding some javascript to /scripts.js in the domain checker function, but it doesn't appear to fire for some reason.  I'm new to WHMCS so I must be doing something wrong with that attempt.

 

Any help is appreciated!

Link to comment
Share on other sites

On 19/01/2019 at 05:43, prradox said:

Is there any way to achieve the steps I outlined above?

I would have thought that if using default templates, 1, 2 & 3 would occur automatically... 3b is the tricky part and possibly, under certain circumstances, not even solvable... e.g for some TLDs (.uk would be one), the user will *have* to be directed to the domain configuration page otherwise the registration would be invalid and fail.

plus the whole point of them seeing the results is to allow them to choose additional or alternate domains - so you could end up streamlining the process to the point where it becomes more time-consuming for the user.

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