Function to remove “Feedback: How easy was it…” pop-up snackbars
-
Hello, our clients manage their own Woo sites with restricted permissions. How can I disable the “give feedback: How easy was it to update an order?” and the other feedback snackbar components that pop up, specifically related to this woocommerce feature. Thanks!
-
Hi there!
By default, WooCommerce does not ask for feedback related to order changes. It seems like these feedback prompts are coming from a third-party plugin. To hide the order feedback, I would suggest checking the plugin settings that are generating the feedback and see if there is an option to disable it.
Could you please share a screenshot of where exactly you are seeing these snackbar components? This will help us determine if they are coming from WooCommerce or a plugin.
Please note that you can also hide these notifications using customization. If you need more in-depth support or want to consider professional assistance for customization, I can recommend?WooExperts?and?Codeable.io?as options for getting professional help. Alternatively, you can also ask your development questions in the??WooCommerce Community Slack?as custom code falls outside our usual?scope of support.
Hello, it looks like it is all coming from WooCommerce. Here is the “How easy was it to _____?” I was mentioning inside the Woo github:
woocommerce/packages/js/customer-effort-score/src/store/actions.js
https://github.com/search?q=repo%3Awoocommerce%2Fwoocommerce++%22How+easy+was+it%22&type=code
And now all of my stores are just giving the “Error loading misc recommendations” popup every time I visit an order or analytics page, which is coming from this:woocommerce/plugins/woocommerce/client/admin/client/marketing/data/resolvers.js
https://github.com/woocommerce/woocommerce/blob/cd6d8423632fe680f08ba39ec20830c0a6a7b8f3/plugins/woocommerce/client/admin/client/marketing/data/resolvers.js#L44
Could you please help me remove these marketing data collection and customer effort store data collection functions? They are popping up for our customers using their own store and look like bugs and features we have implemented for them.
Maybe I can figure it out with remove_action but maybe there is a setting somewhere for this. Thanks!Hi @jdarbuckle,
One of the links you provided isn’t working, and the other leads to WooCommerce repo without offering any clear explanation of what you want us to see. To assist you further, could you please share a screenshot of both instances on your website?
A screenshot will help us better understand what you’re referring to and allow us to offer more specific assistance. I look forward to your response.
Hello, I deeply apologize, I was moving too fast yesterday. Here is my detailed problem, thank you for your understanding and help.
Over the last few months when I view an edit-order screen on any of our WooCommerce sites, this “snackbar (as it seems to be called in the DOM)” pops up and asks me to give feedback on how easy it was to update my order:
https://drive.google.com/file/d/1zUN2sPff7uwy6eq8Frz23ncD2mscncW8/view?usp=drive_link
I searched the Github for that text, and came across this code:
https://drive.google.com/file/d/1Qc5tDG3d5VP_9Qq1LFjeSueMpzKOgJdR/view?usp=drive_link
Inside: /src/Internal/Admin/CustomerEffortScoreTracks.php
So that was my first request, how can I potentially disable this consistent data collection pop-up on my stores, which are all managed by clients and they are confused where this popup comes from, and thinks we are asking that information as the website developer. So they may also be concerned about where their data is going.
Then, I returned to this thread because of the last week or so, when I would visit the analytics page or other Woo admin pages, there would be the same snackbar popup but it would say:
“Error loading misc recommendations”
And I tried to make that come up today, but I couldn’t, so perhaps that has been fixed, but I also searched Github for that text and found it here:
https://drive.google.com/file/d/1m3vUdvVlyCpT5cXBsYNzTszZ0EocmVRt/view?usp=drive_link
Inside: /client/admin/client/marketing/data/resolvers.js
So I am hoping there is a function to disable these marketing data collection features which are confusing to our client and sometimes buggy. I hope I have my facts straight and do appreciate you if there is anything I can do to help.Hi @jdarbuckle,
Thank you for sharing the additional information and detailed explanation. What you’re referring to is indeed the Snackbar. In WooCommerce, it is used within the WordPress admin interface to deliver quick, actionable messages—such as requesting feedback through the Customer Effort Score (CES) survey (“How easy was it to update an order?”) or displaying error messages.
By default, WooCommerce does not provide an option to turn off these notifications, but there are ways to disable them. Option 1: Hide the Snackbar Using CSS
The simplest method is to hide the snackbar with CSS. When the snackbar appears, inspect its code, locate its class or ID, and use CSS to set it to
display: none
. Here’s an example:.woocommerce-layout__snackbar {
display: none !important;
}You can use filters to disable the CES pop-ups and marketing notifications in WooCommerce. Below are examples:
- Disable Customer Effort Score (CES) Pop-ups:
add_filter('woocommerce_admin_features', function($features) { return array_diff($features, ['ces']); });
- Disable Snackbar for Misc Recommendations:
add_filter('woocommerce_admin_features', function($features) { return array_diff($features, ['marketing']); });
- Disable All CES Pop-ups:
add_filter('woocommerce_admin_features', function( $features ) {
return array_filter($features, function( $feature ) {
return $feature !== 'customer-effort-score-tracks'; // Remove CES tracking feature
});
});Alternatively, you can use JavaScript event listeners to modify or disable Snackbar behavior dynamically.
While these solutions can be implemented independently, hiring a professional WooCommerce developer might be the most effective way to ensure the changes are applied correctly and won’t cause unintended issues. However, the CSS method is the quickest and least technical, as it works at the browser level without altering WooCommerce code.
It’s also a good idea to explain to your clients about the pop-up, reassuring them that they don’t need to interact with it and can simply close it.
Thank you Moses! Appreciate the snippets. Closed ??
- You must be logged in to reply to this topic.