Enabling fix JR56189

With JR56189, FIELD1 and FIELD2 columns of the OFFER table are returned by default for the price REST API. But if you want the FIELD1 and FIELD2 columns to be returned to calls from the display_price REST API, then you need to change a property in the price configuration file.

Before you begin

Install 8.0.0.14 or 8.0.1.6 or later.

Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
  2. Create an extended price configuration file (wc-admin-component.xml) if one does not exist.

    If this folder exists and contains an extended version of the wc-admin-component.xml file, then open the file and skip to step 4. Otherwise, complete the following sub-steps.

    1. Go to the following directory:
      • workspace_dir\WC\xml\config
    2. In the config folder, create a com.ibm.commerce.price-ext folder so the path looks like this:
      • workspace_dir\WC\xml\config\com.ibm.commerce.price-ext
    3. Create an empty wc-admin-component.xml file in the com.ibm.commerce.price-ext folder. This file is your extended configuration file.
  3. Add the basic XML elements for the extended file:
    1. Open your empty wc-admin-component.xml file in an XML editor.
    2. Copy the following code into the file:
      <?xml version="1.0" encoding="UTF-8"?>
      <_config:DevelopmentComponentConfiguration
      	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      	xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-component.xsd "
      	xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config">
      
          <_config:extendedconfiguration>
      
      	
          </_config:extendedconfiguration>
      	
      </_config:DevelopmentComponentConfiguration>
  4. Within the <_config:extendedconfiguration> block, add the following extended configuration.
    <_config:configgrouping name="GetCustomizedFieldsForOffer">
        <_config:property name="enabled" value="true"/>
    </_config:configgrouping>
    Note: By default, the property value is set to false. If you want to FIELD1 and FIELD2 columns to be returned to calls from the display_price REST API, then set the value to true.
  5. Save and close the custom configuration file.
  6. Restart the WebSphere Commerce test server and test your configuration changes.
  7. Deploy the extended file to the production environment.