How to Display Message When Country, State, or Postcode is Not Filled in Cart Page

If you want to display the custom message to the customer on the cart page if they have not filled the country, state, and postcode, then keep your close attention on this post as I am going to share how to display the message when country, state, or postcode is not filled in cart page.

This is very simple code snippet to display the custom message on the cart page. Add the following code in Appearance => Editor => functions.php.

After adding the above snippet in your functions.php file, then your cart page will look like below screenshot when the country, state, or postcode not filled.

custom-message-cart

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , ,

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.

Solved Programs