Renamed the trigger

Changed to applied_coupon_in_checkout to avoid unexpected behaviour
This commit is contained in:
kolyasapphire 2019-08-23 16:15:57 +03:00
parent fe3395cd6b
commit faf05c00c2
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ jQuery( function( $ ) {
$form.before( code );
$form.slideUp();
$( document.body ).trigger( 'applied_coupon', [ data.coupon_code ] );
$( document.body ).trigger( 'applied_coupon_in_checkout', [ data.coupon_code ] );
$( document.body ).trigger( 'update_checkout', { update_shipping_method: false } );
}
},