Jump to content

Looking for what action hooks to use...


kpedana

Recommended Posts

I currently have products set to use the module Auto Release module, and if I manually click one of the 4 Module Commands my action hooks fire perfectly. However, if I manually add (as an admin) an order, regardless if I price override it to $0 or let it use the real price and then "Add Payment"... none of my action hooks fire. I am trying to use AfterModuleCreate as the hook, and I have the product(s) set to "Automatically setup the product as soon as the first payment is received" so I'm unsure if that's causing the issue or not.

 

So, all of the variables that are available to "AfterModuleCreate", "AfterModuleSuspend", "AfterModuleUnsuspend" and "AfterModuleTerminate" are exactly what I need. What I'm looking to do is insert entries specific to the product in question, to a DB when a product is first "created" (and paid), update entries when a product is "suspended", update entries when a product is "unsuspended" and finally when a product is "terminated". All of them work great when I manually click the module commands, but I figured those same commands were all ran automatically at those points as well except they don't seem to?

 

I hope I don't need to be using Invoice specific hooks, and then having to use other internal API functions to get all of the same info those 4 hooks provide juse to do this. :-/

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