Page 1 of 1

[FIX] Coupon expired message no show

Posted: Fri Sep 05, 2014 10:09 am
by Martin
This fixes a long standing bug in the ISC code version 6.x and probably earlier

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
				);
After, Add:

Code: Select all

				return false;
You will now find that any expired coupons will now display an inline error message and not the blank JS message box pop-out.