I'm using the default onepage checkout in Magento 1.9. My application has a customized checkout UI which requires me to "shrink" the order summary table. Where it the file for this table stored? Unfortunately, CSS won't do the trick because I need to remove 2 columns and adjust the colspan of the rows in the footer. Tracing billing.save() after saving the billing form, I followed the code to Mage/Checkout/controllers/OnepageController.php which contains:

 protected function _getReviewHtml()
        return $this->getLayout()->getBlock('root')->toHtml();

But I don't understand how _getReviewHtml() gets the review order summary by grabbing the root block. Can somebody please explain how this results in the html for the order summary table in the review step of onepage checkout and how can I modify the structure of the table?

1 Answer 1


Main reason is function savePaymentAction().

Whenever,this function is called that time magento

is load layout handler checkout_onepage_review on basic of when you choosed payment method does not have redirection url .

Like Cash on Delivery,Check memo,credit card save etc

if (empty($result['error']) && !$redirectUrl) {
/* call review step */
                $result['goto_section'] = 'review';
                $result['update_section'] = array(
                    'name' => 'review',
                    'html' => $this->_getReviewHtml()
  • Thanks, Amit. Just to make sure I understand, are you saying that when _getReviewHtml() is called, Magento loads checkout_onepage_review by default if there is no redirection url provided? If so, 1) what files should I look through to trace this code? I want to understand this behavior and 2) how can I modify the structure of the order summary table?
    – Vee
    Jul 27, 2015 at 1:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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