Develop > Presentation layer > Customize IBM Sales Center > Customizing Sales Center support for large shopping carts
Enable and disabling the doInventory parameter for order commands
You can enable or disable the doInventory parameter for IBM Sales Center order commands at the command level. By default, the doInventory parameter is set to Y.
To enable or disable the doInventory parameter:
Procedure
- Open the SyncSalesOrderBODMapping.xml file found in the WC_EAR\xml\messaging\ directory.
- To enable the doInventory parameter:
- Add a Constant element into the body of the OrderItemAddCmd command element...
<Command CommandName="com.ibm.commerce.orderitems.commands.OrderItemAddCmd"> <Constant Field="doInventory">Y</Constant> </Command>
- Make the same update to the Command element of the OrderItemUpdateCmd as follows:
<Command CommandName="com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd"> <Constant Field="doInventory">Y</Constant> </Command>
- Make the same update to the Command element of the OrderItemDisplayCmd as follows:
<Command CommandName="com.ibm.commerce.orderitems.commands.OrderItemDisplayCmd"> <Constant Field="doInventory">Y</Constant> </Command>
- To disable the doInventory parameter:
- Update the <Constant Field="doInventory"> element in the OrderItemAddCmd element by entering an "N" into the body of the element as follows:
<Command CommandName="com.ibm.commerce.orderitems.commands.OrderItemAddCmd"> <Constant Field="doInventory">N</Constant> </Command>
- Make the same update to the Command element of the OrderItemUpdateCmd as follows:
<Command CommandName="com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd"> <Constant Field="doInventory">N</Constant> </Command>
- Make the same update to the Command element of the OrderItemDisplayCmd as follows:
<Command CommandName="com.ibm.commerce.orderitems.commands.OrderItemDisplayCmd"> <Constant Field="doInventory">N</Constant> </Command>
- Restart the WCS instance.
Related concepts
Performance improvements for large shopping cart
Related tasks
Enable and disabling large shopping cart performance enhancements