Skip to Content
author's profile photo Former Member
Former Member

Deactivate functions in an add-on as per client's requirements

Is it possible to create an add-on with differents functionalities that could be activated or deactivated depending on the need of each client? We could activate certain functions in the code and create a different installer depending on what the client is interested in.

Let me give you an example.

We have an add-on that has a function of importing journal entries into SAP's database and another function is updating our own database when changes are made into the SAP's employes table (OHEM). These two functions are not related or complementary. Now, not all clients would be interested in getting these two functionalities, they might need either one of them or both. Can we deactivate certain functions in the code and make an installer for the add-on based on what different clients require?

The idea behind this is to avoid making many add-ons for clients where only one add-on would be required.

Thanks for your help.

Pierre

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Aug 26, 2009 at 08:26 PM

    Hi Pierre,

    It's certainly possible to have different functionality within the same add-on and turn it on or off according to the site or company it is running on. Rather than having different installers, I recommend you control access to the various bits of functionality by building a license mechanism in to your add-on. Each user site would license just the parts they wish to use. When the add-on is running, it would read the license file settings and only run the functionality that was licensed.

    Kind Regards,

    Owen

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 26, 2009 at 08:26 PM

    Hi Pierre,

    It's certainly possible to have different functionality within the same add-on and turn it on or off according to the site or company it is running on. Rather than having different installers, I recommend you control access to the various bits of functionality by building a license mechanism in to your add-on. Each user site would license just the parts they wish to use. When the add-on is running, it would read the license file settings and only run the functionality that was licensed.

    Kind Regards,

    Owen

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2009 at 10:04 PM

    Hi Pierre,

    Like Owen said, yes, it's possible.

    My approach was to create a "setup" form where the Administrator can turn on and off the desired Addon functionalities.

    Regards,

    Vítor Vieira

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.