[FIX] Coupon expired message no show

For Articles relating to more than one ISC version
Post Reply
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

[FIX] Coupon expired message no show

Post by Martin » 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:

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.

Post Reply