gcphost Posted June 9, 2011 Share Posted June 9, 2011 Hi all I need to make a hook that can disable auto-activation of a product. The hook would determine if a user was a bad user - and would then prevent their package from auto-activating thus requiring manual activation. I tried AcceptOrder but didnt see any results, so I am left wondering what to do with it. My goal is this: user orders hook checks the users location if the location is one of a few in an array the order will be set to manual activation, not auto accepted I am happy to also cancel the order if auto activation cant be disabled. If someone can point me to a few hooks - or ideas - on how to do this, I'd be great-full. Basically I am trying to disable auto activation of a free trial product from Russia and Romania - the two largest abusers of my free trial. This is the only valid solution I can come up with. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
gcphost Posted June 9, 2011 Author Share Posted June 9, 2011 Hi I did start testing shortly after writing this - with AfterShoppingCartCheckout - as I have used this before, I seem to be able to gather the information I need with this - and I guess I could simply use the API to cancel, or suspend, the users order - then notify both admins and client that the order requires manual approval. Still open to suggestions. 0 Quote Link to comment Share on other sites More sharing options...
gcphost Posted June 9, 2011 Author Share Posted June 9, 2011 Well in a few hours I managed to write a hook to do this, thanks anyway! http://forum.whmcs.com/showthread.php?p=189832#post189832 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.