websphere-commercewcs

OrderItemAddCmd vs OrderItemUpdate command WCS


OrderItemAddCmd can add new items to the cart & order,ortderItems table. But to add items to an existing order Can we use OrderItemAddCmd or OrderItemUpdateCmd has to be used?


Solution

  • OrderItemUpdate is actually an extension of OrderItemAdd and can do anything Add can do. That said, OrderItemAdd WILL add new items to existing orders.

    http://www-01.ibm.com/support/knowledgecenter/SSZLC2_6.0.0/com.ibm.commerce.developer.doc/refs/rosorderitemupdate.htm?lang=en