Jump to content

Auto Select a Package on Domain search?


maniahost

Recommended Posts

Hi All,

 

Just wondering whether anyone can suggest a way of manipulating the integration code for WHMCS that let's the client order a domain direct from another page of your site, so that it also auto selects a particular package?

 

The reason I ask is that we have one or 2 packages that rather than having listed on the cart page, we prefer to keep hidden, so would be good if they could be automatically selected depending on which domain registration box the client had come from.

 

Any ideas? Thanks in advance.

Link to comment
Share on other sites

Thanks for the reply Zorro67.

 

I know we can do that, but what I'm actually after (perhaps didn't explain properly before sorry) is something like the below:

 

<form action="http://www.website.co.uk/clients/cart.php?a=add&domain=register" method="post">

Domain: <input type="text" name="sld" size="20"> <select name="tld">

<option>.com</option>

<option>.co.uk</option>

</select>

<input type="submit" value="Go">

</form>

 

but which automatically adds the relevant product and shows the domain checker results as normal. Therefore I *think* we need something as below:

 

<form action="http://www.website.co.uk/clients/cart.php?a=add&pid=0000000011&domain=register" method="post">

Domain: <input type="text" name="sld" size="20"> <select name="tld">

<option>.com</option>

<option>.co.uk</option>

</select>

<input type="submit" value="Go">

</form>

 

In testing this seems to work. Can anyone here confirm I've got that right?

 

Thanks in advance (again)!

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