Skip to Content

Disable Add to Cart Button

by

8.42

16.0 0
Live Preview
Required Apps eCommerce (website_sale)
Website (website)
Discuss (mail)
Invoicing (account)
Technical Name sh_ecommerce_grey_out_add_to_cart_btn
License OPL-1
You bought this module and need support ? Click here!
Technical Name sh_ecommerce_grey_out_add_to_cart_btn
License OPL-1

Introduction

This module enables administrators to restrict online purchases by greying out or disabling the Add to Cart button on various ecommerce product views in Odoo. Whether on the product grid, detail view, wishlist, or comparison page, the module helps improve content protection and user experience. It’s especially valuable for businesses that want to control purchase behavior without removing product visibility.

Key Features

  • Disable or grey out the Add to Cart button on the product grid

  • Disable or grey out the Add to Cart button on the product detail page

  • Apply the same behaviour on the compare products page

  • Apply the same behaviour on the wishlist page

  • Lightweight, focused solution to control ecommerce interactions

Benefits

  • Prevents unintended online purchases by restricting purchase actions

  • Maintains consistent product visibility while limiting actions for specified users

  • Improves user experience by clearly indicating actionable restrictions

  • Quick to implement—no heavy custom configuration needed

Compatibility & Technical Details

  • Technical Name: sh_ecommerce_grey_out_add_to_cart_btn

  • License: OPL-1 (Odoo Proprietary License v1.0)

  • Required Modules: Website (website), eCommerce (website_sale), Discuss (mail), Invoicing (account)

  • Installation Steps:

    1. Place the module folder into your Odoo add-ons directory.

    2. Update the apps list in Odoo.

    3. Install the module via the Apps menu.

Odoo Proprietary License v1.0
This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.