Introduced in Feature Pack 2

Enabling subscription support in the order component

In order to enable subscription support in the order component, the order configuration file must be updated.

About this task

To change any properties in the order component configuration file wc-admin-component.xml, you must create a customized version of the file in a new folder. The customized version of the file must contain only the changed properties.

Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
  2. Expand the WC project
  3. Expand the xml folder
  4. Right-click on the config folder and select New > Folder
  5. Name the folder com.ibm.commerce.order-ext

    If this folder exists and contains a customized version of the wc-admin-component.xml file, then open the file and skip to step 8

  6. Right-click on the com.ibm.commerce.order-ext folder and select New > File
  7. Enter wc-admin-component.xml as the file name
  8. Double-click the file wc-admin-component.xml to open it

    • If the file existed, click the source tab and locate the <_config:extendedconfiguration> section and paste the following within it:
       <_config:configgrouping name="SubscriptionConfig">
             	<!--  Enable Subscription by setting the enable value to Y -->
                  <_config:property name="enable" value="Y"/>
              </_config:configgrouping>
      
    • If the file has just been created, click the source tab and enter the following text in the file:
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <_config:DeploymentConfiguration
          xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-admin-component.xsd">
          <_config:extendedconfiguration>
              <_config:configgrouping name="SubscriptionConfig">
             	<!--  Enable Subscription by setting the enable value to Y -->
                  <_config:property name="enable" value="Y"/>
              </_config:configgrouping>
          </_config:extendedconfiguration>
      </_config:DeploymentConfiguration>
  9. Save the file
  10. Restart the WebSphere Commerce Server.