coupon message set invalid if null
This commit is contained in:
parent
414315fde0
commit
4a77204aff
|
@ -376,7 +376,8 @@ class WC_Coupon {
|
|||
if ( $valid ) {
|
||||
return true;
|
||||
} else {
|
||||
$error_code = self::E_WC_COUPON_INVALID_FILTERED;
|
||||
if ( is_null( $error_code ) )
|
||||
$error_code = self::E_WC_COUPON_INVALID_FILTERED;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue