The code I am using is:

    $this->addColumn('grand_total', array(
        'header' => Mage::helper('sales')->__('Total'),
        'index' => 'grand_total',
        'filter_index' => 'sfo.grand_total',
        'type' => 'currency',
        'currency' => 'order_currency_code'

This should render the price as [£/$][00.00] and not as 000.0000 as it is now. How do I make it to two decimal places?



Try this way:

$store = Mage::app()->getStore();
    'header'=> Mage::helper('sales')->__('Total'),
    'index' => 'grand_total',
    'type'  => 'price',
    'currency_code' => $store->getBaseCurrency()->getCode()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.