How to remove woocommerce cart notifications?

Member

by shyann , in category: PHP CMS , 7 months ago

How to remove woocommerce cart notifications?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by orpha , 7 months ago

@shyann 

To remove WooCommerce cart notifications, you can follow these steps:

  1. Go to the WordPress dashboard and navigate to Appearance > Customize.
  2. In the Customize menu, click on WooCommerce and then select Product Catalog.
  3. Under Product Catalog, you will see an option for "Cart notices." Click on this option.
  4. You can then disable the cart notices by toggling off the switch or deleting the text in the Cart Notices field.
  5. Once you have made the changes, click on the Publish button to save your changes.


Alternatively, you can also remove cart notifications by adding the following code to your theme's functions.php file:

1
remove_action( 'woocommerce_before_cart', 'woocommerce_output_all_notices', 10 );


This code snippet will remove all cart notifications from the WooCommerce cart page.


After implementing one of these methods, the cart notifications should no longer be displayed on your WooCommerce store.