I'm a learning addon developer. I have been trying to solve this for a long time, how do you properly override a core template file from a module? At the moment I'm overriding the entire file by copying the template file in the override folder from my module on installation:
From:
/modules/<module>/views/templates/admin/products/informations.tpl
To:
/override/controllers/admin/templates/products/informations.tpl
Overriding the whole file just to add an input field seems pretty rough though.
This works just fine, but I'm worried because if the user installs some other module that wants to use the same file and it corrupts or Prestashop's new version changes the file and it doesn't support the new version anymore. In every way that feels like a dirty solution to the problem.
Is there a way to override just a part of the file and maybe directly from the module folder? Is there any better way to do this? How do you do this?