Everything you'd want to know before you install.
A detailed look at how Empty Cart Button — PrestaShop 8 & 9 works, why we built it the way we did, and the thinking behind the features above.
Why an 'Empty cart' button?
When a customer has filled their cart and then changes their mind, removing items one by one is tedious, especially on mobile. A single clear button reduces that friction: the customer starts over with a clean cart in one click, without leaving the store.
Everything is cleared, truly
The module removes all products from the cart, including their combinations and customizations, as well as any discount vouchers and cart rules applied. The cart returns to a fully empty state, ready for a new purchase.
Theme-independent
The button is injected with JavaScript via an asset-loading hook that is always called, then placed inside the cart block. It therefore appears even on custom themes that do not fire the usual cart page display hooks.
Confirmation and security
A confirmation prompt, enabled from the back office, prevents accidental clearing. The clear action runs through an AJAX request protected by a token tied to the current cart and only affects the current session's cart.
Built for PrestaShop 8 and 9
The module runs natively on PrestaShop 8 and 9, in single and multistore setups, with no Composer dependency and no SQL table added. The button text and confirmation message are translatable across the five languages.
There are no reviews yet.