magento-1.5magento

Change Order Totals block in Admin > Sales > Order > View


I'm trying to edit the order totals temporarily on the fly. See screenshot of what I'm trying to edit. I have looked at the events, but none I could find that wouldn't affect the rest of the sites, nor could I find the page that handles this.

Any help with this?

Order View
(source: ctrlv.in)


Solution

  • The easiest way to identify the page that handles this is turn on the template hints for the admin area by executing the following query against the magento db

    INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/debug/template_hints', 1), ('default', 0, 'dev/debug/template_hints_blocks', 1);
    

    You'll then be able to determine the relevant template to override.

    In this case it's /adminhtml/default/default/template/sales/order/totals.phtml

    You can turn off the template hints by running

    UPDATE core_config_data SET value = 0 WHERE path like 'dev/debug/template_hints%';