[FIX] Coupon expired message no show
Posted: Fri Sep 05, 2014 10:09 am
This fixes a long standing bug in the ISC code version 6.x and probably earlier
Open: includes/classes/class.quote.php
Find:
After, Add:
You will now find that any expired coupons will now display an inline error message and not the blank JS message box pop-out.
Open: includes/classes/class.quote.php
Find:
Code: Select all
if (isc_mktime() > $expires) {
throw new ISC_QUOTE_EXCEPTION(
sprintf(GetLang('InvalidCouponExpired'), date(GetConfig('DisplayDateFormat'), $coupon['couponexpires'])),
ISC_QUOTE_EXCEPTION::COUPON_EXPIRED_TIME
);
Code: Select all
return false;