Skip to content

Commit

Permalink
reverted mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Apr 6, 2023
1 parent 5c314bf commit c1af310
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/code/core/Mage/SalesRule/Model/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,6 @@ 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()) {
Expand Down

0 comments on commit c1af310

Please sign in to comment.