Support » Plugin: WooCommerce » Hide “Added to Your Cart” Message

  • Resolved rebajaslocascom


    Hello! With the new WooCommerce update (3.9), the code I used to hide the “Product added to cart” message stopped working.

    I currently use a temporary solution, which is a CSS code that hides ALL messages related to products.

    Like the one added to the cart, updated cart, etc.

    The code is the following:

    .woocommerce-message {
        display: none;

    However, what I need is only to hide the product message added to the cart.

    Anyone who can help me please?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @rebajaslocascom

    Try this filter
    add_filter( 'wc_add_to_cart_message_html', '__return_false' );

    This will need to go into your functions.php file and be sure its added in a child-theme so when updating your theme you don’t loose the filter.

    Thread Starter rebajaslocascom


    Hi Robin!! Thanks for the code, it worked perfectly.

    You’re the best!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide “Added to Your Cart” Message’ is closed to new replies.