Commit 87217fc3 authored by John Punzalan's avatar John Punzalan

Update predispatch

parent 7352aace
......@@ -67,6 +67,12 @@ class Exa_OPCheckCoupon_OnepageController extends Mage_Checkout_Controller_Actio
$checkCode = Mage::getSingleton('checkout/session')->getQuote()->getAppliedRuleIds();
if (empty($checkCode)) {
$getCurrentAction = Mage::app()->getRequest()->getActionName();
if ($getCurrentAction == "success") {
return $this;
}
Mage::getSingleton('checkout/session')->addError($this->__('Coupon Code is required'));
$this->_redirect('checkout/cart');
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment