Adding Custom Checkout Message Woocommerce.

Ever wanted to add a custom message or Notification on the Checkout Page . Like

  • Free Shipping world wide or
  • We usually take 2 Business days for processing

Or some kind of notification so the customers would know that before placing order .

Below is a simple solution for it .

What access/tools you would require ?

FTP Client or File manager to edit your themes functions.php file

Child Theme (Recommended)

Any file editor (Notepad | Notepad++ | Sublime Text or any of your choice)

Step 1 :

Open your themes functions.php file .

(You can usually find this file by going to your installation folder and navigating to ROOT/wp-content/themes/THEME_NAME or THEME_NAME-child)

Step 2 :

Add following line to the file

add_action(‘woocommerce_before_checkout_form’, ‘monarch_checkout_message’);

function monarch_checkout_message( ) {
echo ‘<div class=”monarch_checkout_message”><h4 style=”font-size: 20px;color: #ff0000;”>Please allow 2 Business days for the order to process before the order is shipped out. If you need urgent delivery, call <a href=tel:”123 456 7890″>123 456 7890</a> before placing the order. Thanks !</h4>
</div>’; }

 

In the above code you can change the <h4> tags to any tag you want based on your preference and also change style options to better suit your needs .

Step 3 :

Replace your functions.php file with the modified file.

Step 4 : Enjoy !!

 

Checkout our blog section to see more useful tips.

Buy Avada