Jump to content
  • 0

How do you enable Add-On Feature mode in a provisioning module?


ANO

Question

I am currently working on a provisioning module for a custom application which has numerous features customers can purchase, config options are too messy with the amount of available options and they also do not show individual line items on the invoice like addons do so are not really an option here. Technically a standalone product addon can be made to work but it is not as clean as the intended purpose  of an add-on feature (Provision an add-on feature to a parent service with the same module)

The Add-On Feature mode for Addon's looks to be the ideal solution for this but it is currently only used by the cPanel and Plesk modules and I have been unable to find any documentation or examples on how to use it in your own module.
Can anyone provide some insight into how this works?
 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

It looks like you are trying to use the Addon Feature mode in WHMCS to allow customers to purchase additional features for a product or service. In WHMCS, an Addon is a product or service that can be added to a primary product or service as an additional purchase. The Addon Feature mode allows you to create Addons that are linked to a specific product or service and are only available for purchase when the primary product or service is purchased.

To use the Addon Feature mode in your own module, you will need to implement the following hooks in your module:

CreateProductAddon: This hook is called when a new Addon is created in the WHMCS admin area. It allows you to define the Addon's name, description, and other details.

ProductAddonActivate: This hook is called when an Addon is activated for a specific product or service. It allows you to perform any necessary actions to enable the Addon for the product or service.

ProductAddonSuspend: This hook is called when an Addon is suspended for a specific product or service. It allows you to perform any necessary actions to disable the Addon for the product or service.

ProductAddonTerminate: This hook is called when an Addon is terminated for a specific product or service. It allows you to perform any necessary actions to remove the Addon from the product or 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
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