Adding customized business contexts to preview

Edit the HCL Commerce configuration file to add a customized business context to preview.

Procedure

  1. Open the HCL Commerce configuration file.
  2. Within the file, find text similar to the following section:
    
    <HttpAdapter deviceFormatId="-1"
    deviceFormatType="browser"
    deviceFormatTypeId="-1"
    enabled="true"
    factoryClassname="com.ibm.commerce.content.adapter.previewhttpadapter.PreviewHttpAdapter"
    name="PreviewHttpAdapter" >
    <ReferenceContexts>
    <Context name="com.ibm.commerce.context.preview.PreviewContext"
    />
    </ReferenceContexts>
    </HttpAdapter>
    
  3. Add your customized context within the <ReferenceContexts> tag. For example:
    
      <Context
    name="com.ibm.commerce.context.globalization.GlobalizationContext" 
    />
    

What to do next

Package your changes to the HCL Commerce configuration file for deployment.