Created
January 24, 2024 06:32
-
-
Save pramodjodhani/4e9846657f32573a80a3f4c668d39a95 to your computer and use it in GitHub Desktop.
Iconic WDS - compatiblity with CartFlows.
This file contains 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
/** | |
* Iconic WDS - compatiblity with CartFlows. | |
*/ | |
add_action( | |
'wp_footer', | |
function() { | |
if ( ! is_checkout() ) { | |
return; | |
} | |
?> | |
<script> | |
jQuery(document.body).on( 'updated_checkout', function() { | |
setTimeout( () => jQuery("#jckwds-fields").removeClass('woocommerce-billing-fields'), 500 ); | |
} ); | |
</script> | |
<?php | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment