Website Sale Default Quantity
by Odoo DevHouse https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse$ 25.00
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
| Lines of code | 105 |
| Technical Name |
website_default_qty |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
| Lines of code | 105 |
| Technical Name |
website_default_qty |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
Website Sale Default Quantity
Set a custom default quantity for each product on your website - perfect for bulk items, wholesale products, and faster checkout
- PerâProduct Default Quantity - Set a custom default quantity for each product on its form.
- User Modification Detection - Once a customer manually changes the quantity, the default is no longer applied - respects user intent.
- Validation Enforced - Default quantity cannot be less than 1.
The module adds a website default qty field to each product template and intelligently applies it on the website:
- Backend: On each product template form, a new "Default Website Quantity" field allows you to set a custom default (minimum 1).
- Frontend - Initial Load: When the product page loads, the quantity input is automatically set to the product's default quantity.
- User Respect: If the customer manually changes the quantity, the module stops overriding it - preserving their choice.
This is perfect for products typically sold in multiples (e.g., packs of 6, wholesale quantities, subscription boxes).
BEFORE - Without Module
Quantity always defaults to 1 - customer must manually increase for bulk purchases
â Customer must type "5" every time - extra clicks, friction, potential errors
AFTER - With Website Sale Default Quantity Module
Quantity preâfilled with productâspecific default - customer can adjust if needed
â Default 5 units - one less click, faster checkout, higher average order value
Backend - Default Quantity Field
New "Default Website Quantity" field on the product template form
Installation Steps
- Copy the module folder to your Odoo addons directory.
- Update the apps list: Apps â Update Apps List.
- Search for "Website Sale Default Quantity" and click Install.
- Go to any product form and set the default quantity.
- Visit the product page - quantity will be preâfilled with your default.
Note: The module works immediately after installation. No additional configuration needed.
Step-by-Step Instructions
Step 1: Set Default Quantity on a Product
Navigate to Sales â Products â Products. Open a product (or create a new one). In the Sales tab, find the "Default Website Quantity" field. Enter a value (e.g., 6, 12, 24). Save the product.
Step 2: View on Website
Visit the product page on your website. The quantity input will be preâfilled with your default value.
Step 3: Customer Experience
The customer sees the default quantity. They can:
- Accept it and click "Add to Cart" (faster checkout)
- Manually change it to a different quantity
Wholesale / Bulk Products
Products sold in case packs (e.g., 12 bottles, 24 cans) default to the case quantity.
Subscription Boxes
Default to the number of months in a subscription (e.g., 3âmonth prepaid).
Example: Default 3 (quarterly subscription)B2B Ordering
Business customers often order minimum quantities - default to the MOQ (Minimum Order Quantity).
Example: Default 50 (MOQ for wholesale)Event Tickets
Default to the number of tickets a customer typically buys (e.g., family of 4).
Example: Default 4 (family pack)Catering / Food Service
Items sold in service quantities (e.g., 50 plates, 100 napkins).
Example: Default 100 (bulk catering pack)Construction Materials
Materials sold in project quantities (e.g., 500 bricks, 10 bags of cement).
Example: Default 500 (pallet quantity)Need Custom Logic or Have Questions?
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.
Please log in to comment on this module