Showing results for 
Search instead for 
Did you mean: 

Add content to Order View Magento 2

Add content to Order View Magento 2

I'm trying to add content to Magento 2 Admin page; specifically the "Order and Account" section of the Information page in "Order View".

I've done the following but my content is not rendering

  1. created my_module (this is working - I see it in enabled modules and other functions are working)
  2. Created layout file within my_module


<?xml version="1.0"?>
<page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="content"> <block class="Magento\Sales\Block\Adminhtml\Order\View\Info" name="my_module_name" template="my_module::list.phtml"/> </referenceContainer> </body> </page>

3. Created template file within my_module (my\module\view\adminhtml\templates\list.phtml)

<h1><?php echo __('Latest Orders') ?></h1> <?php /** @var $post \\Model\Post */ echo 'hello';?>


The above template does not appear on the Order admin page. What am I doing wrong?