maniahost Posted June 7, 2008 Share Posted June 7, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted June 7, 2008 Share Posted June 7, 2008 Yes that's easy. create the package, make it hidden, then grab the direct link code from the product page (pricing I think) and hard code that into the link on your custom or external page. 0 Quote Link to comment Share on other sites More sharing options...
maniahost Posted June 7, 2008 Author Share Posted June 7, 2008 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)! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.