Woocommerce checkout page notices

·

woocommerce

Hello to all, welcome to therichpost.com. In this post, I am sharing the code for Woocommerce checkout page notices. Woocommerce is the most popular e-commerce plugin for WordPress.

With this hook, you can add custom notification on woocommerce checkout page. 
I have also shared the code  for woocommerce cart page noticies on previous post.
Here is the code and you need to add this into your theme’s functions.php file:
add_action('woocommerce_before_checkout_form', 'my_custom_message');
function my_custom_message() {
        wc_print_notice( __('Enter your custom message'), 'notice' );
}

 This is it. If you have any query related to woocommerce then do comment or email me.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.