Is it possible to overwrite Magento core functionality in this way? -
Mage_Sales_Block_Order_Total {
protected function _initTotals(){
//this is core
}
}
and overwrite it with this -
//This Totals class path would be Mage_Sales_Block_Order_Totals
//but in local codePool
//now is there a need to create a rewrite in config.xml and register module
//in app/etc/ if I would do it this way? Since local codePool is loaded
//first
Totals extends Mage_Sales_Block_Order_Totals {
protected function _initTotals(){
//changed core functionality
}
}