We have recently worked on backed for one of customer who wants additional information in comment history form so we have override the following layout in order to make it work.
We have override both sales_order_view.xml with order_history block name.
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="order_history"> <action method="setTemplate"> <argument name="template" xsi:type="string">Codedecorator_Learn::order/view/history.phtml</argument> </action> </referenceBlock> </body> </page>
You can now copy the history.phtml from the core and paste in your module and you can easy customize it or add new fields in your form.
Let’s us know that above code snippets helped your or not. If you have any doubt or any queries. Please do comment in our blog post.