Created
July 16, 2014 18:24
-
-
Save atwellpub/1535f1d55e08849b024f to your computer and use it in GitHub Desktop.
Temporary fix for Woocommerce 'proceed to checkout' bug while Inbound Now tools are installed.
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
<?php | |
/** | |
* Removes tracking class 'wpl-track-me' from woocommerce cart display form' | |
*/ | |
add_action('wp_footer' , 'remove_cart_tracking_class'); | |
function remove_cart_tracking_class() { | |
?> | |
<script type='text/javascript'> | |
jQuery( document ).ready(function() { | |
jQuery('input[name="proceed"]').closest("form").removeClass('wpl-track-me'); | |
}) | |
</script> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment