BLACK
Upto 80% OFF
Limited time sale
FRIDAY

Ends in

Days
Hours
Minutes
Seconds
Edit Added To Your Cart Message in WooCommerce

Remove Or Edit “Added to Your Cart Message’’

Share This Post...

In WooCommerce, you have the flexibility to remove or customize the ‘Added to Your Cart’ message displayed when a product is added to the cart. With a few lines of code added to your theme’s functions.php file, you can completely eliminate this message or tailor it to better suit your website’s unique needs and branding.

Let’s explore both methods for applying these codes.

Method 1: Completely Remove the Message

remove-message

To completely remove the “Added to Your Cart” message, you can add the following code to your theme’s functions.php file:

PHP
 /**
  * @snippet        To Remove "added to your cart" message" 
  * @author          Cool Plugins
  * @compatible  WooCommerce 5
  */
  add_filter( 'wc_add_to_cart_message_html', '__return_null' );

Method 2: Customize the Message

If you want to edit the message rather than remove it entirely, you can use the following code to change the message to something else:

PHP
  /**
  * @snippet        To Remove "added to your cart" message" 
  * @author          Cool Plugins
  * @compatible  WooCommerce 5
  */
  add_filter( 'wc_add_to_cart_message_html', 'cool_change_add_to_cart_message' );

  function cool_change_add_to_cart_message() {
    $cart_message = 'Great choice!' ;
    return $cart_message;
  }
Share This Post...
Table of Content
Customize 'Added to Cart' Messages
Easily remove or personalize the “Added to Your Cart” notification in WooCommerce using simple code snippets or dedicated plugins
Days
Hours
Minutes
Seconds
Translation Addons Bundle
Annual Subscription For 1 Website
$x
$x
/ 1 Year
0% Discount Applied
Renew Yearly

1 year subscription of plugin updates and premium support.

POPULAR
Translation Addons Bundle
Lifetime Subscription For 1 Website
$x
$x
/ One Time
0% Discount Applied

Pay once and get lifetime plugin updates and premium support.

🔥 Limited-Time Discount Offer! Ending in:
Days
Hours
Minutes
Seconds
Money Back Guarantee
0 Days
Active Installs
0 +
5 Star Reviews
0 +
wait... we have a special
Bundle Discount for You!
UP TO
80%
DISCOUNT
Hurry! This limited-time deal will end soon.
28800