Change AJAX add coupon generic error notice type
This commit is contained in:
parent
930798779a
commit
a0ae25ca24
|
@ -214,7 +214,7 @@ class WC_AJAX {
|
|||
$coupon = wc_clean( $_POST['coupon'] );
|
||||
|
||||
if ( ! isset( $coupon ) || empty( $coupon ) ) {
|
||||
wc_add_notice( __( 'Sorry there was a problem removing this coupon.', 'woocommerce' ) );
|
||||
wc_add_notice( __( 'Sorry there was a problem removing this coupon.', 'woocommerce' ), 'error' );
|
||||
|
||||
} else {
|
||||
|
||||
|
|
Loading…
Reference in New Issue