PrestaShop Free

Empty Cart Button — PrestaShop 8 & 9

An 'Empty cart' button on the cart page: customers clear everything in one click.

Give your customers a simple, instant way to empty their entire cart — products and discount vouchers included — right from the cart page, with no manual refresh.

PrestaShop 8 & 9 Multistore 5 languages Theme-independent Free
  • 30-day refund
  • 12 months updates
  • 24h support
www.datafirefly.com/en/
Bouton Vider le Panier — PrestaShop 8 & 9
v1.2.2 · updated 2026-06-07
What it does

The short version.

01

One-click clearing

A single button on the cart page removes all items and all discount vouchers at once, with no product-by-product handling.

02

Theme-independent

The button is injected with JavaScript via an always-present hook: it shows up even when the theme does not fire the cart page display hooks.

03

Optional confirmation

Enable a confirmation prompt before clearing to prevent accidental clicks.

04

Multilingual labels

Button text and confirmation message are translatable across the 5 languages and editable from the back office.

The long version

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.

§ 01

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.

§ 02

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.

§ 03

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.

§ 04

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.

§ 05

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.