Jump to content

Hook to disable auto activation


gcphost

Recommended Posts

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!

Link to comment
Share on other sites

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.

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