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

  1. Open the SyncSalesOrderBODMapping.xml file found in the WC_EAR\xml\messaging\ directory.

  2. To enable the doInventory parameter:

    1. 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>
      

    2. 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>
      

    3. 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>
      

  3. To disable the doInventory parameter:

    1. 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>
      

    2. 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>
      

    3. 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>
      

  4. Restart the WCS instance.


Related concepts

Performance improvements for large shopping cart


Related tasks

Enable and disabling large shopping cart performance enhancements


+

Search Tips   |   Advanced Search