Commerce Quantity control using rules

Categories

Component ID

1269302

Component name

Commerce Quantity control using rules

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This is a demo module showing how to enforce a maximum quantity a user can order per product (line item) using rules.
All the module does is create a new rule “max order quantity” that enforces a maximum quantity of 5.
You can use this approach to create more complex custom rules for controlling the quantities users can order.

Also checkout RSpliet's sandbox: Commerce Product limit for another approach based on the Commerce Stock.

Also note that in the future it version 2 of the stock module may open new approaches to quantity control, see Commerce_stock Roadmap for more information