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!
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!
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.