Download page Populating Option Group Min/Max Quantities Using Numeric Expression.
Populating Option Group Min/Max Quantities Using Numeric Expression
Configure options for a product
Select the product that you want to assign numeric field expressions to.
Click Product Console, scroll down to the Catalog section, and click Manage Bundles/Options.
To associate an expression to min/max total quantity of an option group, select an Option Group.
Select one or both of the following fields to add an expression.
Min Total Quantity
Max Total Quantity
The expression builder opens.
Click Insert Field. To retrieve the fields for building the expression, click Insert Field and choose Product attributes or Line Item. Line Item allows you to get access to fields at Product and Quote objects as well. Ensure that the return value of your numeric expression is of type Number. For our SunHome Product, we can use this to enforce minimum quantity selection for the option group Wiring.