OdooWiki OCA HUB

Website Sale Empty Cart

website_sale_empty_cart folder_open OCA/e-commerce open_in_new
Uncategorised License: AGPL-3

This module adds a button in the website cart that let users remove all the selected products at once

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds an optional "Empty Cart" button on the website shop cart page so shoppers can remove all products from their cart in one click.

This module gives website shoppers a quick way to clear their whole cart instead of deleting products one by one.

  • A new "Empty Cart" button appears on the website shop cart page, next to the express checkout area, when the option is enabled.
  • Clicking it removes every product line currently in the cart and reloads the cart page.
  • The button is controlled by a new setting, "Cart Empty Button", found in the Website settings under the shop checkout section. It can be turned on or off per website.
  • The setting is stored on the website record and is also exposed on res.config.settings, so administrators can enable or disable it from the standard settings screen.
  • The feature is implemented by extending the existing shop cart route and the express checkout template, so it blends into the normal website sale flow.

No other automatic behaviour, email, or scheduled action is added by this module.

Depends on

website_sale
Models and fields (2)
  • website · extends an existing modelcart_empty_button (Is the cart empty button enabled?)
  • res.config.settings · extends an existing modelcart_empty_button (Is the cart empty button enabled?)

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 18.0

To configure this module, you need to:

  • To enable (or disable) the cart empty button for a website, go to Website / Configuration / Settings. Then search the "Cart Empty Button" and edit its value.

To use this module, you need to:

  • Go to the "/shop/cart" path of your server website. Example: "http://localhost:8069/shop/cart"
  • You will see your cart. If it is empty, go to "Shop" and add some products.
  • Click on the "Empty Cart" button.
  • You will see the cart with no products.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.