Website Building » WooCommerce » How Do I Remove WooCommerce Product Has Been Added to Cart Message?

How Do I Remove WooCommerce Product Has Been Added to Cart Message?

Last updated on January 12, 2023 @ 11:49 am

When you add a product to your shopping cart in WooCommerce, a message appears at the top of the page that says “Product has been added to your cart“. This message can be styled using CSS, but if you want to remove it completely, you can do so with a simple plugin or by editing your theme’s code.

Here’s how to remove the WooCommerce “Product has been added to your cart” message:

Install and activate the “Remove Add to Cart” plugin.

Remove Add To Cart Message Plugin WordPress

That’s it! The message will be gone from now on.

If you don’t want to use a plugin, you can also remove the message by adding some code to your theme’s “functions.php” file:

Click-on Appearance Theme Editor Theme Functions under Theme Files WordPress

"add_filter( 'wc_add_to_cart_message', '__return_false' );"

 Conclusion

That’s all there is to it! Now you know how to remove the default WooCommerce “Product has been added to your cart” message. If you want more control over how this message appears, you can always style it with CSS.

PRO TIP: If you are planning to remove the WooCommerce “Product has been added to cart” message, be aware that this could potentially cause issues with your store. If customers do not see this message, they may not realize that their product has been added to their cart, and may not proceed to checkout. This could lead to lost sales and frustrated customers.
Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.