I want to do some customisation to cart on submit coupon code from cart, for this I added controller_action_postdispatch_checkout_cart_couponPost event and there I want to get coupon code and check its validation, if it is not valid then I want to apply some custom discount to cart.

But How to get coupon code here and check validity of it in event controller_action_postdispatch_checkout_cart_couponPost ?

1 Answer 1


Take a look at \Mage_Checkout_CartController::couponPostAction at how Magento natively deals with the coupon codes.

  • Hello @nikola99, Mage::app()->getRequest()->getParam('coupon_code') working for getting coupon_code but how to check its validity? Jan 16, 2017 at 4:30

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.