Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Last active March 26, 2022 15:18
Show Gist options
  • Save xlplugins/23e529134411548d5c6948b446b9c377 to your computer and use it in GitHub Desktop.
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
<?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