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.


If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Article Tags: , , , , ,