MACscr Posted September 14, 2014 Share Posted September 14, 2014 I have my own domain availability script that is not currently integrated into whmcs, but I would like to be able to link the user to whmcs in order to purchase it. The problem is that if I use "cart.php?a=add&pid=1&sld=example&tld=.com" as have seen suggested by others, it pretty much checks availability again and has the user select the domain if they want to purchase it. They already did that step with my script. Any suggestions for remotely adding a domain to a users cart, but a little farther down the line in the purchase process so it doesnt have to be searched/selected again? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 14, 2014 Share Posted September 14, 2014 this can be done this way, i tried it but you need to make tests too: http://demo.whmcs.com/cart.php?a=add&domain=register&domains[]=typeyourdomainhere.com&domainsregperiod[typeyourdomainhere.com]=1 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted September 14, 2014 Author Share Posted September 14, 2014 Thanks. I completely forgot that obviously years would need to be picked before adding it to the card. Wonder if there is a way to just skip availability search then and go straight to the number of years pick page. lol 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 14, 2014 Share Posted September 14, 2014 Thanks. I completely forgot that obviously years would need to be picked before adding it to the card. Wonder if there is a way to just skip availability search then and go straight to the number of years pick page. lol did it work with you? in your customized code you can use hidden element to specify register period. 0 Quote Link to comment Share on other sites More sharing options...
Bohica93 Posted October 18, 2022 Share Posted October 18, 2022 Hi, This no longer seems to work on ver 8.5 I get the following error: Error: Call to undefined function cartPreventDuplicateDomain() Any suggestions? 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.