How to Add a Shipping Notice on WooCommerce Checkout


WooCommerce, as I’ve probably said before, is fantastic. You can use it to setup a fully functional ecommerce website, with all the added benefits of the WordPress platform. However, I had a client ask me to add a notice to the checkout page that explained a bit more about the shipping they offers. I thought this would be a simple matter (given how comprehensive WooCommerce otherwise is), but strangely enough I couldn’t find any way to do this from within the admin. However, there’s a nice easy way to do it if you have access to your functions.php file. All you need to do is add the following line:


function notice_shipping() {
echo '<p>Orders will be dispatched within one working day unless otherwise stated.</p>';
}

add_action( 'woocommerce_before_order_notes', 'notice_shipping' );

I have opted to display ‘Orders will be dispatched within one working day unless otherwise stated.’ as my text, but you can change this however you wish. If you want to go a step further, you can opt to embolden this:


function notice_shipping() {
echo '<p><strong>Orders will be dispatched within one working day unless otherwise stated.</strong></p>';
}

add_action( 'woocommerce_before_order_notes', 'notice_shipping' );

Going one step further, you can add your own class to make things really simple for your css:


function notice_shipping() {
echo '<p class="checkoutText">Orders will be dispatched within one working day unless otherwise stated.</p>';
}

add_action( 'woocommerce_before_order_notes', 'notice_shipping' );

By styling the .checkoutText class in your CSS you can make the new checkout text stand out however you want.