Created
December 20, 2018 13:13
-
-
Save edoardo-mb/b20a4664506b87beaac27d0371c83776 to your computer and use it in GitHub Desktop.
Add custom message to cart and checkout
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 custom message to cart and checkout | |
add_action('woocommerce_before_cart', 'mb_add_cart_checkout_message'); | |
add_action( 'woocommerce_before_checkout_form', 'mb_add_cart_checkout_message', 12 ); | |
function mb_add_cart_checkout_message() { | |
echo '<div style="border-color: #000000;border-radius: 4px;border-width: 2px;border-style: solid;padding: 30px 20px 20px 20px;margin: 0 0 2em;background: #000;color: #fff;"> | |
<h4 style=" text-align: center; font-weight: 700; color: #fff;">Gli ordini ricevuti dal 22 dicembre 2018 al 2 gennaio 2019 saranno spediti dal 3 gennaio 2019.</h4></div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment