1 hour ago, ComGrafPL said:
Thank you, but that is not what I mean. We do not just want to change a translations of the comments, but we want to be able to add/change the actual form fields without having to touch core code. But since the form fields are currently being defined (hard coded) in the class CustomerFormatter, apparently it's not possible.
So... I seem to kind of have answered my own question here... the form field definition is hard coded in that class and the method getFormat() has no 'hook' to amend those fields except for adding an 'override' for that class in a module, which is being discouraged by Prestashop, sigh.
That is not the correct way to define a form and/or it's fields, hard coded in a PHP class. The form fields should be defined in a mendable xml or json file, or in a template if anything, but -definitely not- -hard coded- in a class, that is really and seriously very bad coding practice.
This is becoming increasingly frustrating with newer versions of Prestashop since 1.7. Fewer and fewer options to customize, while at the same time lots of layers of unmendable complexity are being added to the core code and the basic theme ... very annoying.