Odoo eCommerce Quantity Lock is a free Odoo add-on that lets selected website products be added to the cart only once with quantity 1. It is useful for licences, subscriptions, setup packages, deposits and other one-per-cart products where customer-editable quantity would create an incorrect order.
A product-template setting hides quantity controls in the website user interface, while server-side cart protection keeps the locked product at quantity 1 even when a technical cart update is attempted.
What the module does
- adds the “Lock eCommerce Quantity” setting to the product template;
- hides quantity controls for locked products on the product page, cart, product configurator and suggested product flows;
- does not add the same product template to the cart again, but keeps the existing cart line unchanged;
- shows the customer “Product already in cart.” when the same product is added again;
- keeps the locked product quantity at 1 on the server side;
- allows the locked product to be removed from the cart.
Technical information
- Odoo add-on technical name: esrap_website_sale_quantity_lock
- Odoo dependency: website_sale
- licence: OPL-1
- price: free