diff --git a/app/code/core/Mage/SalesRule/Model/Validator.php b/app/code/core/Mage/SalesRule/Model/Validator.php index 246507a7c6c..8698d0534e2 100644 --- a/app/code/core/Mage/SalesRule/Model/Validator.php +++ b/app/code/core/Mage/SalesRule/Model/Validator.php @@ -179,6 +179,11 @@ protected function _canProcessRule($rule, $address) $rule->setIsValidForAddress($address, false); return false; } + // check coupon expiration + if ($coupon->hasExpirationDate() && ($coupon->getExpirationDate() < Mage::getModel('core/date')->date())) { + $rule->setIsValidForAddress($address, false); + return false; + } // check per customer usage limit $customerId = $address->getQuote()->getCustomerId(); if ($customerId && $coupon->getUsagePerCustomer()) {