I want to modify the backend template design/adminhtml/default/default/template/sales/order/create/totals.phtml
Its gonna be part of a module so I've implement the rewrite in the modules layout update file (app/design/adminhtml/default/default/layout/xentas_sales.xml
)
<?xml version="1.0"?>
<layout version="0.1.0">
<!-- Backend create order -->
<adminhtml_sales_order_create_index>
<!-- Overwrite totals template -->
<reference name="data">
<block type="adminhtml/sales_order_create_totals" name="totals">
<action method="unsetChild"><name>totals</name></action>
<action method="setTemplate">
<template>xentas_sales/sales/order/create/totals.phtml</template>
</action>
</block>
</reference>
</adminhtml_sales_order_create_index>
</layout>
But the new template only shows up if I refresh the "create new order" page in backend. It does not show up when I load the page in the first place.
I experience the same issue if I overwrite app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals.php
and add to its _construct method setTemplate('...');
So it looks like there is some kind of sort order issue? How can I override an adminhtml template without creating my own admin theme and make sure its get overwritten by page load and not only by page refresh?
Thanks!