Populating Option Default and Min/Max Quantity Using Numeric Expression
You must have an existing option product. You must also create an attribute group named Summary of WattHoursrequired for SunHome. Following is a list of attributes in the group:
- Total daily WattHours required
- WattHours Required for 3 days
- Battery capacity
Each attribute has the data type defined as number. You must derive the values for options using numeric expressions. You must also create an option group with the options. Based on our scenario, this section outlines the procedure for an option group SunHome Component Quantity with options, Number of Solar Panels and Number of Batteries whose values are derived from the attributes above.
The expressions are built and the option quantity field is populated with the value that the expressions retrieve.
After completing this process, you must run the Criteria Maintenance job for all expression fields. Refer to Running the Criteria Maintenance Job for Expression Fields.