Merge pull request #10682 from EmilEriksen/master
Change AJAX add coupon generic error notice type
This commit is contained in:
commit
2b20a5cbc1
|
@ -214,7 +214,7 @@ class WC_AJAX {
|
||||||
$coupon = wc_clean( $_POST['coupon'] );
|
$coupon = wc_clean( $_POST['coupon'] );
|
||||||
|
|
||||||
if ( ! isset( $coupon ) || empty( $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 {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue