Jump to content
  • 0

Both addon and provisioning module


xXCalleManXx

Question

Hi,

Is it possible to create a module that is both an addon and a provisioning module?

My goal is to use some of WHMCS's hooks and create my own product module.

It seems like when i have registered my addon as a provisioning module, the hook ClientLogin won't trigger.

What is the best approach here? Thanks 🙂

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

That's not currently possible! We have a module which has to be both an addon and server module, the way we got around that was to put all of the logic into the addon module, and just have the server module require the file from the addon.

That way, customers only have to upgrade the addon module and never touch the server one, and the addon module can handle all the logic and hooks etc.

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
Answer this question...

×   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