Tutorials > Program model > Web services > Customize Web 2.0 and Web services to support customization of the OrderItem noun using the UserData field

< Previous | Next >


Update the order shopping flow to include the customized code

In this step, you update the order shopping flow to include the customized code.


Procedure

  1. Register the new commands

    1. Open a browser and type the following URL: http://localhost/webapp/wcs/admin/servlet/db.jsp.

    2. In the input box, enter the following SQL statement to register the new commands:

      INSERT INTO CMDREG(STOREENT_ID, INTERFACENAME, CLASSNAME, TARGET)
      VALUES
      (0,'com.ibm.commerce.orderitems.commands.ExtendOrderItemProcessCmd', 'com.mycompany.commerce.customization.order.MyExtendOrderItemProcessCmdImpl','Local');
      
      UPDATE CMDREG SET CLASSNAME ='com.mycompany.commerce.customization.order.ExtComposeOrderDetailsCmdImpl'
      WHERE INTERFACENAME='com.ibm.commerce.order.facade.server.commands.ComposeOrderCmd+IBM_Details';
      

  2. Register the new Client API

    1. In WebSphere Commerce Developer, open the Enterprise Explorer view, and expand Stores > WebContent > WEB-INF.

    2. Open struts-config-ext.xml.

    3. Copy the following text into the bottom of the file, before the <struts-config> tag:

      <plug-in className="com.ibm.commerce.struts.ComponentPlugIn">
             
      <set-property property="componentId" value="order"/>
             
      <set-property property="clientFacadeClassName"
      value="com.mycompany.commerce.customization.order.MyOrderFacadeClient"/>
      </plug-in>
      

    4. Save and close the file.

< Previous | Next >


+

Search Tips   |   Advanced Search