I am trying to update order summary block on payment method change but it display
Fatal error: Call to a member function toHtml() on boolean in C:\xampp\htdocs\young\app\code\local\Mage\Checkout\controllers\OnepageController.php on line 172
170 protected function _getReviewHtml()
171 {
172 return $this->getLayout()->getBlock('root')->toHtml();
173 }
public function orderupdateAction()
{
if ($this->_expireAjax()) {
return;
}
$result['goto_section'] = 'review';
$result['update_section'] = array(
'name' => 'review',
'html' => $this->_getReviewHtml()
);
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
}