OdooWiki OCA HUB

Website Sale Cart Selectable

website_sale_cart_selectable folder_open OCA/e-commerce open_in_new
Website License: AGPL-3

This module allows you to enable or disable the "Add to cart" button in the e-commerce on a per-product basis.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a per-product switch that hides the "Add to Cart" button on your website shop. When switched off, customers can still view the product page but cannot add it to the cart.

This module gives you a new checkbox on each product called 'Display "Add to Cart" Button'. It is switched on by default, so existing products keep behaving as before.

Where you find it: - On the product form, in the same area as the website public categories, you can tick or untick the checkbox. - On the website shop, the product card no longer shows the add-to-cart button when the checkbox is off. - On the product detail page, the whole call-to-action block (including the quantity selector) is hidden when the checkbox is off.

Business behaviour: - The system checks the checkbox before allowing a product to be added to the cart; if it is off, adding to cart is refused. - The setting is not copied when a product is duplicated, so each copy starts with the default value (on).

Areas touched: - product.template and product.product are extended with the new field and the add-to-cart check. - The website shop product card and product page templates are modified to respect the setting.

This is useful for products you want to display for information only, such as coming-soon items, catalogue-only references, or products sold through another channel.

Depends on

website_sale
Models and fields (1)
  • product.template · extends an existing modelwebsite_btn_addtocart_published (Display "Add to Cart" Button)

Text generated by AI (DeepSeek) from reading the Odoo 16.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: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 15.0

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

terminal Installation and usage

OCA documentation · Odoo 16.0

To use this module, you need to:

  • Go to menu Website -> Products -> Products
  • Edit or create one.
  • Within the eCommerce tab, there will be a new field named Display "Add to Cart" Button
  • Set it or unset it to enable or disable the Add To Cart button in that product.

No verified information in OCA: Installation, Configuration.

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.