Skip to content

Instantly share code, notes, and snippets.

@pramodjodhani
Created January 24, 2024 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pramodjodhani/4e9846657f32573a80a3f4c668d39a95 to your computer and use it in GitHub Desktop.
Save pramodjodhani/4e9846657f32573a80a3f4c668d39a95 to your computer and use it in GitHub Desktop.
Iconic WDS - compatiblity with CartFlows.
/**
* 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