Jump to content

Avoid order delivery after invoice paid


ghasemy50

Recommended Posts

Actually the correct hook for that is PreModuleCreate. The example at the hook documentation is already pretty clear about how to abort the service creation.

But note that this hook is not executed for domains. For domains you have to use the following hooks:

I guess you want to check the order manually and then activate it. Since the hook would always prevent creation even if you try it as admin, you need to add another condition to the code. My suggestion would therefore be that you check in the hook whether the hook was triggered by an admin (e.g. via the PHP session), and if so, you allow the creation of the service.

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