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.


Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

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.