Configuring Order boundaries to prevent unbound exceptions
The Order Management subsystem defines business object values for shopping carts, requisition lists, return merchandise authorizations (RMAs), and order history. The default values are defined in the xml/config/com.ibm.commerce.order/wc-admin-component.xml file. You can change these values to meet your business needs.
Procedure
- Open the xml/config/com.ibm.commerce.order/wc-admin-component.xml file.
The default values are shown in the following code snippet:
Where:<_config:extendedconfiguration> <_config:configgrouping name="ShoppingCartThreshold"> <_config:property name="size" value="10000" /> <_config:property name="quantity" value="10000" /> <_config:property name="defaultPageSize" value="100" /> <_config:property name="maximumPageSize" value="100" /> </_config:configgrouping> <_config:configgrouping name="RequisitionListThreshold"> <_config:property name="size" value="10000" /> <_config:property name="quantity" value="10000" /> </_config:configgrouping> <_config:configgrouping name="RMAThreshold"> <_config:property name="size" value="2000" /> <_config:property name="quantity" value="2000" /> </_config:configgrouping> <_config:configgrouping name="OrderHistoryThreshold"> <_config:property name="defaultPageSize" value="100" /> <_config:property name="maximumPageSize" value="100" /> </_config:configgrouping> <_config:configgrouping name="RMAHistoryThreshold"> <_config:property name="defaultPageSize" value="100" /> <_config:property name="maximumPageSize" value="100" /> </_config:configgrouping> </_config:extendedconfiguration>
- ShoppingCartThreshold
- size
- The maximum number of order items that can be added to the shopping cart.
- quantity
- The maximum amount of one specific order item that can be added
to the shopping cart (related to UOM, default UOM: C62.). You can specify multiple quantity thresholds for different UOMs. For example:
<_config:property name="quantity_C1" value="100" /> <_config:property name="quantity_C2" value="1000" /> <_config:property name="quantity_C3" value="10000" />
- defaultPageSize
- The number of order items that are displayed on the shopping cart page when no paging parameters are passed.
- maximumPageSize
- The maximum number of order items that are displayed on the shopping cart page.
- RequisitionListThreshold
- size
- The maximum number of order items that can be added to a requisition list.
- quantity
- The maximum amount of one specific order item that can be added
to a requisition list. You can specify multiple quantity thresholds for different UOMs. For example:
<_config:property name="quantity_C1" value="100" /> <_config:property name="quantity_C2" value="1000" /> <_config:property name="quantity_C3" value="10000" />
- RMAThreshold
- size
- The maximum number of items to be returned.
- quantity
- The maximum amount of one specific order item to be returned.
- OrderHistoryThreshold
- defaultPageSize
- The number of orders that are displayed on the order history page when no paging parameters are passed.
- maximumPageSize
- The maximum number of orders that are displayed on the order history page.
- RMAHistoryThreshold
- defaultPageSize
- The number of RMA displayed on the return history page when no paging parameters are passed.
- maximumPageSize
- The maximum number of orders that are displayed on the return history page.
- Save and close the file.