I have added coupon code for free shipping in the Shopping Cart Price Rules (Magento, but I don't see any coupon code field in a cart or checkout process.

I have checked checkout.xml file and proper line exists

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


It looks like coupon functionality was removed from coupon.phtml file, which contains now only

<!-- coupon code removed-->

Can someone could to provide proper file for that Magento version?


1 Answer 1


You can download Magento from here then click on Release Archives tab and find the release version that you're looking for and download it, then extract it, then copy coupon.phtml from base theme app/design/frontend/base/default/template/checkout/cart/coupon.phtml to your active theme folder.

Or just copy the following code:

<form id="discount-coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post">
    <div class="discount">
        <h2><?php echo $this->__('Discount Codes') ?></h2>
        <div class="discount-form">
            <label for="coupon_code"><?php echo $this->__('Enter your coupon code if you have one.') ?></label>
            <input type="hidden" name="remove" id="remove-coupone" value="0" />
            <div class="input-box">
                <input class="input-text" id="coupon_code" name="coupon_code" value="<?php echo $this->htmlEscape($this->getCouponCode()) ?>" />
            <div class="buttons-set">
                <button type="button" title="<?php echo $this->__('Apply Coupon') ?>" class="button" onclick="discountForm.submit(false)" value="<?php echo $this->__('Apply Coupon') ?>"><span><span><?php echo $this->__('Apply Coupon') ?></span></span></button>
                <?php if(strlen($this->getCouponCode())): ?>
                    &nbsp; <button type="button" title="<?php echo $this->__('Cancel Coupon') ?>" class="button" onclick="discountForm.submit(true)" value="<?php echo $this->__('Cancel Coupon') ?>"><span><span><?php echo $this->__('Cancel Coupon') ?></span></span></button>
                <?php endif;?>
<script type="text/javascript">
var discountForm = new VarienForm('discount-coupon-form');
discountForm.submit = function (isRemove) {
    if (isRemove) {
        $('remove-coupone').value = "1";
    } else {
        $('remove-coupone').value = "0";
    return VarienForm.prototype.submit.bind(discountForm)();
  • Added that code to the coupon.phtml file, refreshed layouts, cleared cache and still no coupon code field. May 1, 2014 at 17:22
  • Well, it looks like that cart.phtml doesn't have coupon functionality as well :\ May 1, 2014 at 17:31
  • Just a note - I'm using one page checkout layout. May 1, 2014 at 18:00
  • @JackTheKnife are you still having problem with coupon form?
    – Aboodred1
    May 1, 2014 at 19:03
  • Yes - coupon cannot be applied. Even I have try to add fixed discount but it doesn't work at all. More here: magento.stackexchange.com/questions/19155/… May 1, 2014 at 19:05

Your Answer

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

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