Trigger removed_coupon_in_checkout event after coupon removal on checkout

This commit is contained in:
Pan Seba 2020-05-18 13:16:30 +02:00
parent 8b0d4ef050
commit d5952d3b00
1 changed files with 1 additions and 0 deletions

View File

@ -657,6 +657,7 @@ jQuery( function( $ ) {
if ( code ) {
$( 'form.woocommerce-checkout' ).before( code );
$( document.body ).trigger( 'removed_coupon_in_checkout', [ data.coupon_code ] );
$( document.body ).trigger( 'update_checkout', { update_shipping_method: false } );
// Remove coupon code from coupon field