Renamed the trigger
Changed to applied_coupon_in_checkout to avoid unexpected behaviour
This commit is contained in:
parent
fe3395cd6b
commit
faf05c00c2
|
@ -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 } );
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue