How can we add simple button to comm/card.php ?

Hi,

We just want to call an external php script with the client code - for instance “mybutton.php?clientcode=CU1801-0560”. Is there a simple example somewhere?

Thanks!

It is enough to go into the search and ask there

Using the search function, I do not find sufficient information.
I think the correct way to implement this is to use hooks.

  1. Create a new module using the module builder.
  2. Create file with class, both named ActionsYourModuleName
  3. Add method to this class, e.g. addMoreActionButtons($parameters, &$object, &$action, $hookmanager), the function returns 0 to add on the original code.
  4. In file modYourModuleName.class.php add context to array ‘hooks’, e.g. ‘thirdpartycomm’
  5. Disable and Enable your module to have the hook context established.