How do I override the review tab on OnePage Checkout

How do I override the review tab on OnePage Checkout

October 12, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How do I override the review tab on OnePage Checkout

How to Override the Review Tab on OnePage Checkout

If you’re looking to customize the review tab of OnePage Checkout in Magento, you’ve come to the right place! In this blog post, we’ll walk through the process step-by-step and ensure that your new template is loaded correctly.

Understanding the Current Setup

First, let’s take a closer look at the current setup defined in checkout.xml:

<block type="core/text_list" name="checkout.onepage.review.totals">
    <block type="checkout/onepage_review_totals" name="checkout.onepage.review.totals" as="totals"/>
</block>

This block contains the totals of your order (tax, shipping, etc.) which are displayed on the review tab. We’ll need to override this block with our custom template.

Creating Your Custom Template

Create a new file at app/design/frontend/{location}/{theme}/template/checkout/review.phtml. This is where you can add all the modifications you want for the review tab.

For example, let’s say we want to remove the tax row from the order summary. In your custom review.phtml file:

<?php if (count($this->getTotals()) > 0): ?>
    <table id="summary-review-table">
        <?php foreach ($this->getTotals() as $total) : ?>
            <?php if ($total['code'] != 'tax') : ?>
                <tr>
                    <th class="label"><?php echo $this->escapeHtml($total['title']) ?></th>
                    <td class="amount">
                        <?php if ($total['value'] >= 0): ?>
                            <?php echo $this->helper('checkout')->formatPrice($total['value']) ?>
                        <?php else: ?>
                            (<?php echo $this->helper('checkout')->formatPrice($total['value']) ?>)
                        <?php endif; ?>
                    </td>
                </tr>
            <?php endif; ?>
        <?php endforeach; ?>
    </table>
<?php endif; ?>

Overriding the Block

Now, we need to update local.xml or your theme’s layout file to remove the default review.phtml and load our custom one.

Add the following lines inside the <checkout_onepage_index> block:

<remove name="checkout.onepage.review" />
<block type="core/text_list" name="custom_checkout.onepage.review.totals">
    <block type="core/template" name="custom_checkout.onepage.review.totals" template="checkout/review.phtml"/>
</block>

Here’s what we’re doing:

  • We use the <remove> tag to remove the default checkout_onepage_review block.
  • Then, we define a new block called custom_checkout.onepage.review.totals which uses our custom template located at checkout/review.phtml.

Conclusion

With these changes, your custom review tab should now be loaded instead of the default one. This is a powerful way to modify the checkout process according to your specific needs.

Remember that this is just an example—you can make any modifications you want within your custom template file. The possibilities are endless!

Don’t forget that Magento development requires careful testing and version control. For more advanced techniques, check out Laravel Company’s guide on Magento theme development.

Happy coding!

Checkout Database Themes Orders

Our network