Created
February 23, 2016 18:20
-
-
Save OscarAbadFolgueira/5648fa93dfe7cd397b50 to your computer and use it in GitHub Desktop.
WooCommerce Snippet: Añadir texto o html en la parte superior del checkout (finalizar compra)
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
/** | |
* This WordPress code snippet adds some text or html at the top of the checkout page of your WooCommerce | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
*/ | |
add_action( 'woocommerce_before_checkout_form', 'add_checkout_top_text', 11 ); | |
function add_checkout_top_text() { | |
wc_print_notice( '<h3 style="color:red;">Solo te queda un paso más para finalizar la compra!!</h3>' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment