php - Magento - Display payment fee on the order page (admin backend) -


during checkout process can use addtotal method on address object add payment fee displayed user.

$address->addtotal(array (     'code'  => $this->getcode(),     'title' => mage::helper('payment')->__('invoice fee'),     'value' => $fee )); 

is there equivilent on order/invoice object in administration backend? if not, how can display payment fee on order page (backend)? i've got payment fee in sales_flat_order table.

in backend must provide sort of block.

config.xml

<config>     ...     <adminhtml>         <layout>             <updates>                 <your_module>                     <file>yourlayout.xml</file>                 </your_module>             </updates>         </layout>     </adminhtml> </config> 

design/adminhtml/default/default/layout/yourlayout.xml

<layout>     <adminhtml_sales_order_view>         <reference name="order_totals">             <block type="adminhtml/sales_order_totals_item" name="invoice_fee" template="your/module/total.phtml" />         </reference>     </adminhtml_sales_order_view>  </layout> 

design/adminhtml/default/default/template/your/module/total.phtml

<tr>     <td class="label"><?php echo $this->__('invoice fee') ?></td>     <td class="emph"><?php echo $this->displaypriceattribute('invoice_fee', true) ?></td> </tr> 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -