cancel
Showing results for 
Search instead for 
Did you mean: 

Adding column remains to be paid in orders in the administration

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Adding column remains to be paid in orders in the administration

Following a cash problem, we must rework all the invoices with an amount due.

So I try to allow my client to see these amounts via orders in the administration.

Thanks to this tutorial I created a column but it does not fill.

 

https://stackoverrun.com/fr/q/3927047

 

/app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php

 

I added the column:

 

$this->addColumn('Payment Information', array(
'header' => Mage::helper('sales')->__('Order Totals'),
'index' => 'Payment Information',
'width' => '80px',
));


https://mega.nz/#!EIdlHQAR!8codmts0Ql-WawhSoARxgs6WU4DQu_6SHUbWtOpUhUg


https://mega.nz/#!5AVTFaZJ!GgsO2qEckmHglhvOQkX4EvSW8dIw4YkW6OGGLvWAY8w

 

Code info.phtml file that displays the field on the invoice I was inspired for the code of the column.

 

<?php echo $this->getItemsHtml() ?>
<div class="clear"></div>

<div class="box-left">
<div class="entry-edit">
<div class="entry-edit-head">
<h4><?php echo Mage::helper('sales')->__('Comments History') ?></h4>
</div>
<fieldset><?php echo $this->getChildHtml('order_history') ?></fieldset>
</div>
</div>
<div class="box-right entry-edit">
<div class="entry-edit-head"><h4><?php echo Mage::helper('sales')->__('Order Totals') ?></h4></div>
<div class="order-totals"><?php echo $this->getChildHtml('order_totals') ?></div>
</div>
<div class="clear"></div>

 

Can you help me? I galley a little in php