Archived topic
How to remove the "Cart Update" notice on the Cart page
9 replies · Started by xinghui on October 10, 2022
When I click the quantity addition or subtraction on the shopping cart page, the shopping cart update message prompt will pop up. How to delete this prompt?
this is my image url:https://i.postimg.cc/hvYXcz2V/Update.jpg
Hi Xinghui,
Would you like to remove both "Cart Updated" and "Have a coupon" text boxes?
Hi,Fernando,yes!remove both
Try adding this in Appearance > Customize > Additional CSS:
.woocommerce-cart .woocommerce-notices-wrapper {
display: none;
}
Thank you,has taken effect
You're welcome!
Hello, I now find that although the 'Cart Updated' notice is hidden now, when I click on the 'plus' or 'minus' button in the product item, the page will refresh and slide up a bit. Is there any way to remove it? This sliding function
You can click the '+' or '-' of Quantity on my cart page, the page will refresh after clicking, how to remove this refresh function
my problem image url:https://i.postimg.cc/9QgMSP6y/delete-Update-function.jpg
Can you try adding this PHP snippet?:
add_filter( 'wc_add_to_cart_message_html', '__return_false' );
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
I added this code in the function of the child theme but it doesn't seem to work
img URL:https://i.postimg.cc/DZbNDy3d/ADD-UPDATE-CART.jpg
Hi there,
As you're using Javascript to fake click the cart update button then you can't avoid the page refreshing and the Notice being displayed.
You would need to speak to Woocommerce support on how to change that behaviour.