One Click Empty Cart
Add an Empty Cart button to WooCommerce with AJAX, undo toast, confirmation prompt, and custom redirect. Works on both classic and block cart.
One Click Empty Cart for WooCommerce adds a clean, fully customisable “Empty Cart” button to the WooCommerce cart page. Instead of removing items one by one, customers can clear everything instantly. Plus, an Undo option gives them a safety net if they change their mind. The plugin works with both the classic shortcode cart and the newer WooCommerce block cart.
Who is this for? Any WooCommerce store. It is especially useful for stores with large catalogues, where customers often want to start their cart over.
How the empty cart button works
When a customer clicks the button, the plugin empties the cart via AJAX with no full page reload. A nonce secures every request. The plugin also triggers a WooCommerce fragment refresh, so your header mini-cart widgets update automatically.
You decide how cautious the empty cart action should be. For example, you can show a browser confirmation dialog before clearing. You can also enable the Undo toast, which lets customers restore all items within a window you choose, from 2 to 30 seconds. The plugin keeps the cart snapshot in page memory only, so the undo option disappears when the customer leaves the page.
Style it your way
Choose from three button styles: Outline, Solid, or Text link. Then set a custom accent colour and button label. You can place the button above the cart table, below it, or next to the coupon field.
After clearing, customers can stay on the cart page. Alternatively, you can send them to the shop, the homepage, or a custom URL.
Classic cart, block cart, and HPOS
The plugin supports the classic cart and, from v1.1.0, the WooCommerce block cart. It is also compatible with WooCommerce High-Performance Order Storage (HPOS). You will find all settings under WooCommerce → Settings → Products → Empty Cart Button.
Want more ways to improve your cart and checkout? Browse all our WooCommerce plugins.
Key features
Does the Undo feature use session storage?
No. The cart snapshot is held in page memory only. If the customer navigates away, the undo option is gone — the expected behaviour.
Does it work with the WooCommerce block cart?
Yes — full block cart support is included from v1.1.0 via a compiled block extension.
Does the mini-cart header update after emptying?
Yes — the plugin triggers WooCommerce fragment refresh so all mini-cart widgets update automatically.
No reviews yet. If you have bought this plugin, you can be the first to review it.
Write a review