Last active
March 26, 2022 15:18
-
-
Save xlplugins/23e529134411548d5c6948b446b9c377 to your computer and use it in GitHub Desktop.
Remove Woocommerce Key down event from Input (This event cause shipping method reloading when customer filling address) #address_complete #remove_events #update_order_review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wfacp_internal_css', function () { | |
?> | |
<script> | |
window.addEventListener('load', function () { | |
(function ($) { | |
$('form.checkout').off('keydown', '.address-field input.input-text, .update_totals_on_change input.input-text'); | |
})(jQuery); | |
}); | |
</script> | |
<?php | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment