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

Prem Tiwari - - Code Snippets, WordPress Snippets

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.


About: Prem Tiwari

Prem Tiwari is the founder of and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

Tags: , , , , ,