If the user navigates to the cart page when there is nothing in their cart, they will see a cart notification, “Your cart is currently empty.” To change that particular cart notification, check out our guide on how to change this here. This guide however shows you how to add new text to the cart page when it’s empty.
/**
* Snippet Name: WooCommerce Show Custom Text On Empty Cart Page
* Snippet Author: ecommercehints.com
*/
add_action( 'woocommerce_cart_is_empty', 'ecommercehints_empty_cart_text' );
function ecommercehints_empty_cart_text() {
echo 'You are seeing this text because the cart is empty 😐';
}