Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Website
  3. Configurable Cart Default Quantity Per Category v 18.0
  4. Sales Conditions FAQ

Configurable Cart Default Quantity Per Category

by ndd https://duong-odoo-apps.odoo.com
Odoo

$ 31.62

v 18.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • eCommerce (website_sale)
• Website (website)
• Invoicing (account)
• Discuss (mail)
Lines of code 85
Technical Name d_website_sale_cart_quantity
LicenseOPL-1
Websitehttps://duong-odoo-apps.odoo.com
Versions 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • eCommerce (website_sale)
• Website (website)
• Invoicing (account)
• Discuss (mail)
Lines of code 85
Technical Name d_website_sale_cart_quantity
LicenseOPL-1
Websitehttps://duong-odoo-apps.odoo.com
Versions 17.0 18.0
  • Description
  • License

CONFIGURABLE CART QUANTITY PER CATEGORY

Configurable Cart Quantity Per Category

Set custom default cart quantities for each product category with smart hierarchy inheritance

This module allows you to configure default cart quantity for each product public category instead of using a fixed hard-coded value.

Perfect for businesses that sell different types of products requiring different default quantities - from single luxury items to bulk consumables.

Key Features

  • Category-based Configuration: Set different default quantities for different product categories
  • Easy Backend Management: Configure quantities directly from the product category form
  • Dynamic Frontend Updates: Real-time quantity updates when customers browse different products
  • Smart Fallback System: Automatic fallback to quantity 1 if no configuration is found

Demo Video

Demo video for configurable cart quantity per category

How to Configure

Category Configuration
  1. Go to Website > Configuration > eCommerce > Product Categories
  2. Select the category you want to configure
  3. Set the "Default Cart Quantity" field:
    • Value > 0: Category will use this specific quantity
    • Value = 0 or empty: Category will inherit from parent category
  4. Save and test on your website frontend

Configuration Tips:

  • Start with Parent Categories: Set default quantities for main categories first (e.g., Furniture = 2)
  • Override When Needed: Only set values for child categories when you need different behavior
  • Use 0 for Inheritance: Leave child categories at 0 to automatically inherit from parents
  • Test the Hierarchy: Check products assigned to different category levels to verify inheritance works correctly

Use Cases

Food & Beverages

Set default quantity to 2 for drinks, 1 for main dishes

Home & Garden

Set quantity 4 for light bulbs, 1 for furniture

Electronics

Set quantity 1 for phones, 2 for accessories

Fashion

Set quantity 1 for clothing, 3 for socks

Smart Category Hierarchy Logic

The module uses an intelligent priority system that respects category parent-child relationships:

Priority Order for Default Quantity:

  1. Child Category First: If product is assigned to a specific category (e.g., "Furniture Couches") and it has a default quantity > 0, use that value
  2. Parent Category Fallback: If child category has no value (0 or empty), look up the hierarchy to parent categories (e.g., "Furniture")
  3. System Default: If no category in the hierarchy has a configured value, use quantity 1

Example Scenario:

Category Hierarchy:
Furniture (default_cart_quantity = 2)
├── Furniture Couches (default_cart_quantity = 0) → inherits 2 from parent
├── Furniture Tables (default_cart_quantity = 1) → uses own value 1
└── Furniture Chairs (default_cart_quantity = 3) → uses own value 3

Product Assignment Results:
• Product A → assigned to "Furniture Couches" → Default Quantity: 2 (inherited from Furniture)
• Product B → assigned to "Furniture Tables" → Default Quantity: 1 (own value)
• Product C → assigned to "Furniture Chairs" → Default Quantity: 3 (own value)
• Product D → assigned to "Furniture" only → Default Quantity: 2 (parent value)
				

How It Works:

  • Automatic Inheritance: Child categories automatically inherit from parents when their value is 0 or empty
  • Override Capability: Set any value > 0 in child category to override parent inheritance
  • Multi-level Support: Works with unlimited category depth (grandparent → parent → child → grandchild...)
  • Real-time Updates: Changes to parent categories automatically affect children with no custom values

SUPPORT EMAIL

contact me for support duongodooapps@gmail.com

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with