parent
2505abeb21
commit
93e21a09c7
|
@ -162,8 +162,9 @@
|
||||||
if ( variation ) {
|
if ( variation ) {
|
||||||
form.$form.trigger( 'found_variation', [ variation ] );
|
form.$form.trigger( 'found_variation', [ variation ] );
|
||||||
} else {
|
} else {
|
||||||
window.alert( wc_add_to_cart_variation_params.i18n_no_matching_variations_text );
|
|
||||||
form.$form.trigger( 'reset_data' );
|
form.$form.trigger( 'reset_data' );
|
||||||
|
form.$form.find( '.single_variation' ).after( '<p class="wc-no-matching-variations woocommerce-info">' + wc_add_to_cart_variation_params.i18n_no_matching_variations_text + '</p>' );
|
||||||
|
form.$form.find( '.wc-no-matching-variations' ).slideDown( 200 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue