I was originally using a custom theme for our Magento CE however we decided to switch to use the default theme/pages for the checkout process. However I noticed that the discount code input box is not visible on the one page checkout?

I added the below code to the payment.phtml page. However our issue is when a user types in a coupon code and clicks apply they are redirected to the view cart page where they are presented with the success message.

      echo $this->getLayout()->createBlock('checkout/cart_coupon')->setTemplate('checkout/cart/coupon.phtml')->toHtml(); 

I am wondering how to make it so that the user will not be re-directed to the view cart page and instead stay on the checkout page to have the discount code applied.

1 Answer 1


This will not work as you did currently. you will need to do a code to make it work with onepage checkout process.

You can use this free extension for your requirement.



  • thank you. I used the first plugin listed and it works great
    – Jayreis
    Oct 30, 2015 at 15:50

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.