Remove / Hide Product ‘has been added to your cart’ in WooCommerce.

Hello, guys in this amazing article I am going to show you that how you can remove the product that has been added to your cart pop up on your WooCommerce store in the WordPress website. You only need a single code from which you can remove or hide the particular popup on the checkout page ok so this is going to be so simple and easy so let’s start

add_filter( 'wc_add_to_cart_message_html', '__return_false' );

By using the above code you can remove the checkout page message or pop up in your woocommerce Store checkout page on your WordPress website it is very easy to use and you just need to paste this code in your function.php in WordPress theme editor.

How to remove ‘has been added to your cart’

Step 1. Go to your WordPress website dashboard
Step 2. Click on theme editor under the appearance


Step 3. Now click function.php on your particular theme


Step 4. Paste the code below at the end of lines of codes

add_filter( 'wc_add_to_cart_message_html', '__return_false' );

Step 5. Click on Update File now its ready and message is now removed or hidden

Why we need to remove this message

The reason we need to remove this ‘product has been added to cart’ to popup message in the WordPress website is that when we use plugins like tutor LMS or any other plugin which uses for Commerce we have to remove this added to cart feature because we want to sell the product directly to the customer without showing that the product is in the cart so that’s the need we have to remove or hide this message on the woocommerce store in your WordPress website

Leave a Comment