Created
December 14, 2020 04:18
-
-
Save permanart/9d3313470d0aee0b210bb94eae84872f to your computer and use it in GitHub Desktop.
Auto Open Coupon Field WooCommerce
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
add_action( 'wp_footer', 'woocommerce_show_coupon', 99 ); | |
function woocommerce_show_coupon() { | |
echo ' | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
$(\'.checkout_coupon\').show(); | |
}); | |
</script> | |
'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment