Hello
I am trying to customize my Dolibarr installation at my company’s needs.
I have currently two questions.
Is there a way in Dolibarr to create code overrides, to avoid editing core files and doing updates easily?
I can’t manage to find parts of code of the tabs in modules like fichinder, commande, societe. For example in fichinder/card.php can’t find the code above <div class="refidno">, like pagination, tabbar, statusref. Obviously they’re in other file, but I 'm missing it, although I 'm reading the wiki
In many cases, if you need to perform additional actions after certain events happen (e.g. a bill gets marked as paid), there are triggers available. In this case, the trigger BILL_PAYED can be used within a custom module to perform additional actions.
To modify/extend functionality performed by Dolibarr, you can use hooks.
The Wiki provides a good step by step explanation of how an own module can be created and a module builder is part of Dolibarr, which helps you with the required steps. But depending on your experience level, there is still some learning curve.
However, if you absolutely need to make changes in the core files, it might help to use git and also make future updates based on git to help with merge conflicts and avoid overrides.
hello ,
i would like to ask if there is a way to overwrite an index file like for exemple compta\facture\index.php
it doesn’t containe any hooks , also its possible if i did a copy directly inside custom like so custom\compta\facture\index.php
but if i replace it under my custome module like so custom\my_module\compta\facture\index.php
it doesn’t work , is there is a way to make my modifications on index.php using my_module ?
Hello, all dolibarr files include main.inc.php
Maybe you should try to use the hook printMainArea
I never did it but it might be a good idea.
You have to test the $_SERVER[‘ineverknowwhichentry’] to match the compta/facture/index.php and then print your content and exit; it should do the job.
please tell me if it works.