kjavitz Posted September 3, 2013 Share Posted September 3, 2013 Hi, I want to restrict our free trial signups to only 1 per ip address. Is there any API for this or suggestions you have on how to accomplish it? 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted September 3, 2013 Share Posted September 3, 2013 You could add this restriction by creating a ShoppingCartValidateCheckout hook. The hook would need to check and see if there is a free trial item in the cart and if there is lookup the ip address in tblorders joined with tblhosting (so you can check for the product id) and return an error if it is found and it will prevent the users form being able to checkout. http://docs.whmcs.com/Hooks:Order_Process#ShoppingCartValidateCheckout 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.