[Support request] How to remove the “Cart Update” notice on the Cart page

Home Forums Support [Support request] How to remove the “Cart Update” notice on the Cart page

Home Forums Support How to remove the “Cart Update” notice on the Cart page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2369393
    xinghui

    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

    #2369420
    Fernando
    Customer Support

    Hi Xinghui,

    Would you like to remove both “Cart Updated” and “Have a coupon” text boxes?

    #2369423
    xinghui

    Hi,Fernando,yes!remove both

    #2369443
    Fernando
    Customer Support

    Try adding this in Appearance > Customize > Additional CSS:

    .woocommerce-cart .woocommerce-notices-wrapper {
        display: none;
    }
    #2369446
    xinghui

    Thank you,has taken effect

    #2369455
    Fernando
    Customer Support

    You’re welcome!

    #2370725
    xinghui

    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

    #2370743
    Fernando
    Customer Support

    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

    #2370760
    xinghui

    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

    #2371043
    David
    Staff
    Customer Support

    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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.