• Resolved ajaaskel

    (@ajaaskel)


    The Undo message after removing a product from shopping cart annoys some users.
    1) How to disable that functionality or hide it?
    2) Could developers make delete confirmation a setup option (on/off) in the future?

    • This topic was modified 4 years ago by ajaaskel. Reason: typo
    • This topic was modified 4 years ago by ajaaskel.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support laceyrod a11n

    (@laceyrod)

    Automattic Happiness Engineer

    Hi there,

    Thanks for reaching out!

    1) How to disable that functionality or hide it?

    You can hide the notice by adding the following code to your theme’s functions.php file:

    add_filter('woocommerce_cart_item_removed_notice_type', '__return_null');

    If you aren’t familiar with code/templates and resolving potential conflicts that may result from making any changes, I would recommend adding the snippet with a plugin like Code Snippets: https://wordpress.org/plugins/code-snippets/

    2) Could developers make delete confirmation a setup option (on/off) in the future?

    This might not be a bad idea to suggest as an enhancement request. You can submit one in our public repository here: https://github.com/woocommerce/woocommerce/issues/new/choose

    Thanks!

    Thread Starter ajaaskel

    (@ajaaskel)

    Hi,
    you are welcome!
    I appended the code to functions.php of my theme. It works even too efficiently: It makes also “Return to Shop” (I guess) button to disappear. Without that side effect it would be ok.
    Can you fix the code to disable only that “confirm Undo” thing, not hide the needed “Continue shopping” button at the cart? (I don’t know the exact name of that button in English since it’s in Finnish).

    Plugin Support laceyrod a11n

    (@laceyrod)

    Automattic Happiness Engineer

    Howdy,

    Thanks for clarifying. When you add that snippet, are you saying it removes this “Return to Shop” button here?: https://d.pr/i/P5zfiG

    Or are you saying it removes the “Continue Shopping” link as seen here?: https://d.pr/i/x6sTAi

    In either case, adding that code snippet does not hide this on my test site, so I’d like to confirm.

    Thanks!

    Plugin Support EtienneP a11n

    (@etiennep)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to disable or mute only Undo message at shopping cart?’ is closed to new replies.