As suggested kept original event and created new event 'woocommerce_variation_has_changed' for after selection has been fully applied. #6833

This commit is contained in:
boohoogal 2014-12-11 10:00:53 +00:00
parent ff86dec284
commit 538d514cc0
2 changed files with 5 additions and 3 deletions

View File

@ -76,7 +76,9 @@
else
$variation_form.find( 'input[name=variation_id]' ).val( '' ).change();
$variation_form.trigger( 'check_variations', [ '', false ] );
$variation_form
.trigger( 'woocommerce_variation_select_change' )
.trigger( 'check_variations', [ '', false ] );
$( this ).blur();
@ -85,7 +87,7 @@
}
// Custom event for when variation selection has been changed
$variation_form.trigger( 'woocommerce_variation_select_change' );
$variation_form.trigger( 'woocommerce_variation_has_changed' );
} )

File diff suppressed because one or more lines are too long