Missing form in magento 1.9 onepage checkout -- not using theme OnePageCheckout

Missing form in magento 1.9 onepage checkout -- not using theme OnePageCheckout

October 18, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Missing form in magento 1.9 onepage checkout -- not using theme OnePageCheckout

Title: Adding a Coupon Form Back to Magento 1.9 Onepage Checkout

Hello developers! In this post, I’ll guide you through adding back the missing coupon form in your Magento 1.9 onepage checkout when using the default Magento checkout instead of the theme-provided one.

The Problem

You’re using a theme with an installed onepagecheckout, but due to specific business requirements, you need to revert to using the default Magento checkout. This switch leaves you without a coupon form on your checkout page. The required block definition is missing in your local.xml file under the onepagecheckout_index_index layout update.

Understanding the Current Layout

Let’s first understand what’s currently happening with your layouts:

Onepage Checkout Layout (in onepagecheckout.xml or local.xml)

<block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="onepagecheckout/onepage/coupon.phtml"/>

This is the block definition for the coupon form, but it’s being called under the wrong layout handle (onepagecheckout_index_index) instead of checkout_cart_index where you need it.

Magento Checkout Layout (in checkout.xml or local.xml)

<reference name="content">
    <block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
</reference>

This is the correct placement of the coupon block, but it’s not being called in your current layout setup.

Adding the Coupon Block to Magento Checkout

To add the coupon form back to your checkout page, you need to create a new local.xml file if one doesn’t exist or edit an existing one. Add the following code under the <layout> element:

<default>
    <checkout_cart_index>
        <reference name="content">
            <!-- Place this block before the review section -->
            <block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
        </reference>
    </checkout_cart_index>
</default>

This code will add the coupon form block to your checkout page under the checkout_cart_index layout handle. Make sure to place this block before your review section.

Placing the Coupon Form in the Review Section

If you want to place the coupon form specifically in the review section, you’ll need to modify your review block definition and add the coupon block as a child:

<reference name="content">
    <block type="checkout/onepage_review" name="review.form">
        <!-- Add this child block -->
        <block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="checkout/cart/coupon.phtml"/>
    </block>
</reference>

This will place the coupon form inside your review section.

Conclusion

Adding back the missing coupon form to your Magento 1.9 checkout involves understanding and manipulating layout handles in your local.xml file. By correctly defining the block type, name, and template, you can reintegrate the coupon functionality into your checkout process.

Remember, when working with Magento layouts, it’s essential to keep track of which layout handle is being called and where specific blocks are defined. This knowledge will help you maintain a clean and functional layout structure for your store.

At Laravel Company, we provide expert Magento development services, including checkout customizations and optimization. If you need further assistance or want to discuss your project with our team of experienced developers, feel free to reach out!

Happy coding!

Magento 1 Checkout Themes Configuration

Our network