How to customize the "The cart is empty" message
WooCommerce Fast Cart normally hides all links to the popup cart when the cart is empty. However, there are situations where a customer may see an empty cart - for example, if they remove all items from their cart.
To customize the message which appears in this scenario, add the following code snippet, replacing the text "Now start adding products to your cart!" with whatever you want to appear. If you're not sure how to use this, then see our article on adding code snippets or use our customization service.
add_action( 'wp_footer', 'custom_empty_cart_js' ); function custom_empty_cart_js() { ?> <script type="text/javascript"> document.addEventListener("wc-fast-cart|open", function(e) { if (jQuery('.wfc-cart-empty').length) { jQuery('.wfc-cart-empty').html('<p class="cart-empty">Now start adding products to your cart!</p>'); } }); </script> <?php }
If searching the knowledge base hasn't answered your question, please contact support.